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.
-
-
Constructor Summary
Constructors Constructor and Description ScreenAnnotatorJ3D(DisplayImpl display)Construct a ScreenAnnotatorJ3D for the givenDisplayImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw()Traverses all the data objects and transforms them intoShape3Dobjects and adds them to a BranchGoup which it then attaches to the scene graph.voidmakeVisible(boolean on)Set the visibility flag.-
Methods inherited from class visad.bom.annotations.ScreenAnnotator
add, clear, remove
-
-
-
-
Constructor Detail
-
ScreenAnnotatorJ3D
public ScreenAnnotatorJ3D(DisplayImpl display)
Construct a ScreenAnnotatorJ3D for the givenDisplayImpl.- Parameters:
display- the VisAD Display for the ScreenAnnotatorJ3D.
-
-
Method Detail
-
makeVisible
public void makeVisible(boolean on)
Set the visibility flag.- Specified by:
makeVisiblein classScreenAnnotator- Parameters:
on-trueto display,falseto undisplay.
-
draw
public void draw() throws VisADExceptionTraverses all the data objects and transforms them intoShape3Dobjects and adds them to a BranchGoup which it then attaches to the scene graph.- Specified by:
drawin classScreenAnnotator- Throws:
VisADException- ifLabelJ3Dthrows the exception.
-
-
DMelt 3.0 © DataMelt by jWork.ORG