I'd like to implement labels for axes of a
graph, and for the tick marks of the axes.
The graph and the axes share
the same TransformGroup. The scaling may be non-uniform; for example, the
scaling for Z could be significantly lower than for X and Y. The scaling can
change.
I'd like to display these labels without the fonts getting
resized by the transform, but _with_ their position and orientation affected by
the transform.
The best solution I've thought of so far is to have each label
underneath its own TG, and have a WakeupOnTransformChange respond to the parent
TG by setting the scales on the label TG's to the inverse of the parent TG's
scale:
<pre>
:TG
/ \
Axes:BG Graph:BG
...
:BG
/...\
TG TG //
Label-specific TGs
| |
Text2D Text2D // Labels
</pre>
Is there an easier way?
================================================================================ Andrew R. Thomas-Cramer Home: [EMAIL PROTECTED] http://www.execpc.com/~artc/ Work: [EMAIL PROTECTED] 608.287.1043 "Pa-pa" -- Zachary Thomas-Cramer, age
11-1/2
months.
================================================================================ |
- [JAVA3D] Removing child from ViewPlatformTransform Andrew R. Thomas-Cramer
- [JAVA3D] Removing child from ViewPlatformTran... Alejandro Bugacov
- Re: [JAVA3D] Removing child from ViewPlat... Patrick van Bergen