visad.bom.annotations
Class ScreenAnnotatorJ3D

java.lang.Object
  extended by visad.bom.annotations.ScreenAnnotator
      extended by 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.


Field Summary
 
Fields inherited from class visad.bom.annotations.ScreenAnnotator
things
 
Constructor Summary
ScreenAnnotatorJ3D(DisplayImpl display)
          Construct a ScreenAnnotatorJ3D for the given DisplayImpl.
 
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 visad.bom.annotations.ScreenAnnotator
add, clear, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenAnnotatorJ3D

public ScreenAnnotatorJ3D(DisplayImpl display)
Construct a ScreenAnnotatorJ3D for the given DisplayImpl.

Parameters:
display - the VisAD Display for the ScreenAnnotatorJ3D.
Method Detail

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.