visad.bom.annotations
Class ScreenAnnotatorJ3D
java.lang.Object
visad.bom.annotations.ScreenAnnotator
visad.bom.annotations.ScreenAnnotatorJ3D
public class ScreenAnnotatorJ3D
- extends ScreenAnnotator
Take descriptions of geometry primatives in Screen Coordinates
and draw them onto a VisAD display directly. The objects should then
stay on the same screen position.
Enables thing like scale bars, tables, logos, etc to be independent
of data manipulation tranformations.
Method Summary |
void |
draw()
Traverses all the data objects and transforms them into
Shape3D objects and adds them to a BranchGoup
which it then attaches to the scene graph. |
void |
makeVisible(boolean on)
Set the visibility flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScreenAnnotatorJ3D
public ScreenAnnotatorJ3D(DisplayImpl display)
- Construct a ScreenAnnotatorJ3D for the given
DisplayImpl
.
- Parameters:
display
- the VisAD Display for the ScreenAnnotatorJ3D.
makeVisible
public void makeVisible(boolean on)
- Set the visibility flag.
- Specified by:
makeVisible
in class ScreenAnnotator
- Parameters:
on
- true
to display, false
to undisplay.
draw
public void draw()
throws VisADException
- Traverses all the data objects and transforms them into
Shape3D
objects and adds them to a BranchGoup
which it then attaches to the scene graph.
- Specified by:
draw
in class ScreenAnnotator
- Throws:
VisADException
- if LabelJ3D
throws the exception.