All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class java.media.j3d.Billboard
java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.Node
                   |
                   +----java.media.j3d.Leaf
                           |
                           +----java.media.j3d.Behavior
                                   |
                                   +----java.media.j3d.Billboard
  -  public class Billboard
  -  extends Behavior
The Billboard behavior node operates on a TransformGroup node to
 specify a transform that always aligns itself perpendicular to an axis
 as specified in world-coordinates or to a viewer's view
 vector---regardless, in either case, of transforms above the specified
 transform node in the scene graph.
 Billboard nodes provide the most benefit
 for complex, roughly-symmetric objects. A typical use might consist
 of a quadrilateral that contains a texture of a tree.
   
  -   ROTATE_ABOUT_AXIS ROTATE_ABOUT_AXIS
-   Specifies that rotation should be about the specified axis.
  
-   ROTATE_ABOUT_POINT ROTATE_ABOUT_POINT
-   Specifies that rotation should be about the specified point and
 that the children's Y-axis should match the view object's Y-axis.
   
  -   Billboard() Billboard()
-   Constructs a Billboard node with default parameters.
  
-   Billboard(TransformGroup) Billboard(TransformGroup)
-   Constructs a Billboard node with default parameters that operates
 on the specified TransformGroup node.
  
-   Billboard(TransformGroup, int, Vector3f) Billboard(TransformGroup, int, Vector3f)
-   Constructs a Billboard node with the specified axis and mode
 that operates on the specified TransformGroup node.
   
  -   getAlignmentAxis(Vector3f) getAlignmentAxis(Vector3f)
-   Gets the alignment axis and sets the parameter to this value
 
  
-   getAlignmentMode() getAlignmentMode()
-   Gets the alignment mode.
  
-   initialize() initialize()
-   Initialize method that sets up initial wakeup criteria.
  
-   processStimulus(Enumeration) processStimulus(Enumeration)
-   Process stimulus method that computes appropriate level of detail.
  
-   setAlignmentAxis(float, float, float) setAlignmentAxis(float, float, float)
-   Sets the alignment axis.
  
-   setAlignmentAxis(Vector3f) setAlignmentAxis(Vector3f)
-   Sets the alignment axis.
  
-   setAlignmentMode(int) setAlignmentMode(int)
-   Sets the alignment mode.
   
 ROTATE_ABOUT_AXIS
ROTATE_ABOUT_AXIS
 public static final int ROTATE_ABOUT_AXIS
  -  Specifies that rotation should be about the specified axis.
 
 ROTATE_ABOUT_POINT
ROTATE_ABOUT_POINT
 public static final int ROTATE_ABOUT_POINT
  -  Specifies that rotation should be about the specified point and
 that the children's Y-axis should match the view object's Y-axis.
 
   
 Billboard
Billboard
 public Billboard()
  -  Constructs a Billboard node with default parameters.
 The default alignment mode is ROTATE_ABOUT_AXIS rotation with the axis
 pointing along the Y axis.  The TransformGroup node
 is null.
 
 Billboard
Billboard
 public Billboard(TransformGroup tg)
  -  Constructs a Billboard node with default parameters that operates
 on the specified TransformGroup node.
 The default alignment mode is ROTATE_ABOUT_AXIS rotation with the axis
 pointing along the Y axis.
   
- 
    -  Parameters:
    
-  tg - the TransformGroup node that this Billboard
 node operates upon
  
 
 Billboard
Billboard
 public Billboard(TransformGroup tg,
                  int mode,
                  Vector3f axis)
  -  Constructs a Billboard node with the specified axis and mode
 that operates on the specified TransformGroup node.
   
- 
    -  Parameters:
    
-  tg - the TransformGroup node that this Billboard
 node operates upon
    -  mode - alignment mode, one of ROTATE_AXIS or
 ROTATE_ABOUT_POINT
    -  axis - the ray about which the billboard rotates
  
 
   
 setAlignmentMode
setAlignmentMode
 public final void setAlignmentMode(int mode)
  -  Sets the alignment mode.
   
- 
    -  Parameters:
    
-  mode - one of: ROTATE_ABOUT_AXIS or ROTATE_ABOUT_POINT
  
 
 getAlignmentMode
getAlignmentMode
 public final int getAlignmentMode()
  -  Gets the alignment mode.
   
- 
    -  Returns:
    
-  one of: ROTATE_ABOUT_AXIS or ROTATE_ABOUT_POINT
  
 
 setAlignmentAxis
setAlignmentAxis
 public final void setAlignmentAxis(Vector3f axis)
  -  Sets the alignment axis.
   
- 
    -  Parameters:
    
-  axis - the ray about which the billboard rotates
  
 
 setAlignmentAxis
setAlignmentAxis
 public final void setAlignmentAxis(float x,
                                    float y,
                                    float z)
  -  Sets the alignment axis.
   
- 
    -  Parameters:
    
-  x - the x component of the ray about which the billboard rotates
    -  y - the y component of the ray about which the billboard rotates
    -  z - the z component of the ray about which the billboard rotates
  
 
 getAlignmentAxis
getAlignmentAxis
 public final void getAlignmentAxis(Vector3f axis)
  -  Gets the alignment axis and sets the parameter to this value
   
- 
    -  Parameters:
    
-  axis - the vector that will contain the ray about which
 the billboard rotates
  
 
 initialize
initialize
 public void initialize()
  -  Initialize method that sets up initial wakeup criteria.
   
- 
    -  Overrides:
    
-  initialize in class Behavior
  
 
 processStimulus
processStimulus
 public void processStimulus(Enumeration criteria)
  -  Process stimulus method that computes appropriate level of detail.
   
- 
    -  Parameters:
    
-  criteria - an enumeration of the criteria that caused the
 stimulus
    
-  Overrides:
    
-  processStimulus in class Behavior
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index