Home | Download | Screen shots | Discussion | Documentation |
---|
Inheritance diagram for openvrml::vrml97_node::transform_node:
Public Member Functions | |
transform_node (const node_type &type, const scope_ptr &scope) | |
Construct. | |
virtual | ~transform_node () throw () |
Destroy. | |
virtual void | render (openvrml::viewer &viewer, rendering_context context) |
Render the node. | |
virtual const openvrml::bounding_volume & | bounding_volume () const |
Get the bounding volume. | |
virtual const mat4f & | transform () const throw () |
Get the transformation associated with the node as a matrix. | |
Private Member Functions | |
void | process_set_center (const field_value &value, double timestamp) throw (std::bad_cast) |
set_center eventIn handler. | |
void | process_set_rotation (const field_value &value, double timestamp) throw (std::bad_cast) |
set_rotation eventIn handler. | |
void | process_set_scale (const field_value &value, double timestamp) throw (std::bad_cast) |
set_scale eventIn handler. | |
void | process_set_scaleOrientation (const field_value &value, double timestamp) throw (std::bad_cast) |
set_scaleOrientation eventIn handler. | |
void | process_set_translation (const field_value &value, double timestamp) throw (std::bad_cast) |
set_translation eventIn handler. | |
void | recalc_bsphere () |
Recalculate the bounding volume. | |
void | update_transform () const throw () |
Update transform. | |
Private Attributes | |
sfvec3f | center |
center exposedField. | |
sfrotation | rotation |
rotation exposedField. | |
sfvec3f | scale |
scale exposedField. | |
sfrotation | scaleOrientation |
scaleOrientation exposedField. | |
sfvec3f | translation |
translation exposedField. | |
mat4f | transform_ |
Cached copy of this node's transformation. | |
bool | transform_dirty |
Flag to indicate whether transform_ needs to be updated. | |
viewer::object_t | xformObject |
A handle to the renderer's representation of the Transform. | |
Friends | |
class | transform_class |
Class object for Transform instances. |
|
Construct.
Reimplemented from openvrml::transform_node. |
|
Get the bounding volume.
Reimplemented from openvrml::vrml97_node::group_node. |
|
set_center eventIn handler.
|
|
set_rotation eventIn handler.
|
|
set_scale eventIn handler.
|
|
set_scaleOrientation eventIn handler.
|
|
set_translation eventIn handler.
|
|
Render the node.
Reimplemented from openvrml::vrml97_node::group_node. |
|
Get the transformation associated with the node as a matrix.
Implements openvrml::transform_node. |
|
Update transform.
If transform_dirty is
|