#include <Inventor/VRMLnodes/SoVRMLBillboard.h>
Inheritance diagram for SoVRMLBillboard:
The detailed class documentation is taken verbatim from the VRML97 standard (ISO/IEC 14772-1:1997). It is copyright The Web3D Consortium, and is used by permission of the Consortium:
Billboard { eventIn MFNode addChildren eventIn MFNode removeChildren exposedField SFVec3f axisOfRotation 0 1 0 # (-inf, inf) exposedField MFNode children [] field SFVec3f bboxCenter 0 0 0 # (-inf, inf) field SFVec3f bboxSize -1 -1 -1 # (0, inf) or -1,-1,-1 }
The Billboard node is a grouping node which modifies its coordinate system so that the Billboard node's local Z-axis turns to point at the viewer. The Billboard node has children which may be other children nodes. The axisOfRotation field specifies which axis to use to perform the rotation. This axis is defined in the local coordinate system. When the axisOfRotation field is not (0, 0, 0), the following steps describe how to rotate the billboard to face the viewer:
Public Member Functions | |
SoVRMLBillboard (void) | |
SoVRMLBillboard (int numchildren) | |
virtual void | doAction (SoAction *action) |
virtual void | callback (SoCallbackAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
virtual void | getBoundingBox (SoGetBoundingBoxAction *action) |
virtual void | getMatrix (SoGetMatrixAction *action) |
virtual void | pick (SoPickAction *action) |
virtual void | search (SoSearchAction *action) |
virtual void | GLRenderBelowPath (SoGLRenderAction *action) |
virtual void | GLRenderInPath (SoGLRenderAction *action) |
virtual void | GLRenderOffPath (SoGLRenderAction *action) |
virtual void | notify (SoNotList *list) |
Static Public Member Functions | |
void | initClass (void) |
Public Attributes | |
SoSFVec3f | axisOfRotation |
SoSFVec3f | bboxCenter |
SoSFVec3f | bboxSize |
Protected Member Functions | |
virtual | ~SoVRMLBillboard () |
|
Constructor. |
|
Constructor. numchildren is the expected number of children. |
|
Destructor. |
|
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoVRMLParent. |
|
This function performs the typical operation of a node for any action. Reimplemented from SoVRMLParent. |
|
Action method for SoCallbackAction. Simply updates the state according to how the node behaves for the render action, so the application programmer can use the SoCallbackAction for extracting information about the scene graph. Reimplemented from SoGroup. |
|
Action method for the SoGLRenderAction. This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method. Reimplemented from SoGroup. |
|
Action method for the SoGetBoundingBoxAction. Calculates bounding box and center coordinates for node and modifies the values of the action to encompass the bounding box for this node and to shift the center point for the scene more towards the one for this node. Nodes influencing how geometry nodes calculates their bounding box also overrides this method to change the relevant state variables. Reimplemented from SoGroup. |
|
Action method for SoGetMatrixAction. Updates action by accumulating with the transformation matrix of this node (if any). Reimplemented from SoGroup. |
|
Action method for SoPickAction. Does common processing for SoPickAction action instances. Reimplemented from SoGroup. |
|
Action method for SoSearchAction. Compares the search criteria from the action to see if this node is a match. Searching is done by matching up all criteria set up in the SoSearchAction -- if any of the requested criteria is a miss, the search is not deemed successful for the node.
Reimplemented from SoVRMLParent. |
|
Implements the SoAction::BELOW_PATH traversal method for the rendering action. Reimplemented from SoNode. |
|
Implements the SoAction::IN_PATH traversal method for the rendering action. Reimplemented from SoNode. |
|
Implements the SoAction::OFF_PATH traversal method for the rendering action. Reimplemented from SoNode. |
|
Notifies all auditors for this instance when changes are made. Reimplemented from SoVRMLParent. |
|
The axis of rotation for the geometry. |
|
The bounding box center hint. Default value is (0, 0, 0). |
|
The bounding box size hint. Default value is (-1, -1, -1). |