Home | Download | Screen shots | Discussion | Documentation | Links |
---|
Inheritance diagram for Transform:
Public Methods | |
Transform (const NodeType &nodeType, const ScopePtr &scope) | |
Constructor. | |
virtual | ~Transform () throw () |
Destructor. | |
virtual void | render (Viewer &viewer, VrmlRenderContext context) |
Render the node. | |
virtual void | accumulateTransform (Node *) |
virtual void | inverseTransform (VrmlMatrix &) |
Get the inverse of the transformation applied by the Transform node as a matrix. | |
virtual const BVolume * | getBVolume () const |
Get the bounding volume. | |
void | getMatrix (VrmlMatrix &M) const |
Private Methods | |
void | processSet_center (const FieldValue &sfvec3f, double timestamp) throw (std::bad_cast) |
set_center eventIn handler. | |
void | processSet_rotation (const FieldValue &sfrotation, double timestamp) throw (std::bad_cast) |
set_rotation eventIn handler. | |
void | processSet_scale (const FieldValue &sfvec3f, double timestamp) throw (std::bad_cast) |
set_scale eventIn handler. | |
void | processSet_scaleOrientation (const FieldValue &sfrotation, double timestamp) throw (std::bad_cast) |
set_scaleOrientation eventIn handler. | |
void | processSet_translation (const FieldValue &sfvec3f, double timestamp) throw (std::bad_cast) |
set_translation eventIn handler. | |
void | recalcBSphere () |
Recalculate the bounding volume. | |
void | synch_cached_matrix () |
Private Attributes | |
SFVec3f | center |
center exposedField. | |
SFRotation | rotation |
rotation exposedField. | |
SFVec3f | scale |
scale exposedField. | |
SFRotation | scaleOrientation |
scaleOrientation exposedField. | |
SFVec3f | translation |
translation exposedField. | |
Viewer::Object | xformObject |
A handle to the renderer's representation of the Transform. | |
VrmlMatrix | M |
Cached copy of this node's transformation. | |
bool | M_dirty |
If true, we need to recalculate M. | |
Friends | |
class | TransformClass |
Class object for Transform instances. |
|
Constructor.
|
|
Destructor.
|
|
Cache a pointer to (one of the) parent transforms for proper rendering of bindables. Reimplemented from Group. |
|
Get the bounding volume.
Reimplemented from Group. |
|
Get a matrix representation (in VrmlMatrix format, same as OGL) of the transformation stored in the node fields.
|
|
Get the inverse of the transformation applied by the Transform node as a matrix.
Reimplemented from Node. |
|
set_center eventIn handler.
|
|
set_rotation eventIn handler.
|
|
set_scale eventIn handler.
|
|
set_scaleOrientation eventIn handler.
|
|
set_translation eventIn handler.
|
|
Recalculate the bounding volume.
Reimplemented from Group. |
|
Render the node.
Reimplemented from Group. |
|
Resynchronize the cached matrix |
|
Class object for Transform instances.
|
|
center exposedField.
|
|
Cached copy of this node's transformation. Currently this is used only by the culling code, but eventually all the matrix manipulation needs to be moved from the Viewer side over into core. |
|
If true, we need to recalculate M. Is this the same as Node::d_modified? No, since it's entirely a core-side issue, and has nothing to do with the viewer being out of date wrt the core scene graph. |
|
rotation exposedField.
|
|
scale exposedField.
|
|
scaleOrientation exposedField.
|
|
translation exposedField.
|
|
A handle to the renderer's representation of the Transform.
|