Home | Download | Screen shots | Discussion | Documentation |
---|
Public Member Functions | |
transform_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope) | |
Construct. | |
virtual | ~transform_node () throw () |
Destroy. | |
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 | |
virtual void | do_render_child (openvrml::viewer &viewer, rendering_context context) |
Render the node. | |
void | recalc_bsphere () |
Recalculate the bounding volume. | |
void | update_transform () const throw () |
Update transform. | |
Private Attributes | |
center_exposedfield | center_ |
center exposedField. | |
rotation_exposedfield | rotation_ |
rotation exposedField. | |
scale_exposedfield | scale_ |
scale exposedField. | |
scale_orientation_exposedfield | scale_orientation_ |
scaleOrientation exposedField. | |
translation_exposedfield | 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 nodes. | |
Classes | |
class | center_exposedfield |
center exposedField implementation. More... | |
class | rotation_exposedfield |
rotation exposedField implementation. More... | |
class | scale_exposedfield |
scale exposedField implementation. More... | |
class | scale_orientation_exposedfield |
scaleOrientation exposedField implementation. More... | |
class | translation_exposedfield |
translation exposedField implementation. More... |
openvrml::vrml97_node::transform_node::transform_node | ( | const node_type & | type, | |
const boost::shared_ptr< openvrml::scope > & | scope | |||
) |
Construct.
type | the node_type associated with the instance. | |
scope | the scope that the new node will belong to. |
Reimplemented from openvrml::transform_node.
openvrml::vrml97_node::transform_node::~transform_node | ( | ) | throw () [virtual] |
const bounding_volume & openvrml::vrml97_node::transform_node::bounding_volume | ( | ) | const [virtual] |
Get the bounding volume.
Reimplemented from openvrml::vrml97_node::group_node.
const mat4f & openvrml::vrml97_node::transform_node::transform | ( | ) | const throw () [virtual] |
Get the transformation associated with the node as a matrix.
Implements openvrml::transform_node.
void openvrml::vrml97_node::transform_node::do_render_child | ( | openvrml::viewer & | viewer, | |
rendering_context | context | |||
) | [private, virtual] |
Render the node.
viewer | a Viewer. | |
context | the rendering context. |
Reimplemented from openvrml::vrml97_node::group_node.
void openvrml::vrml97_node::transform_node::recalc_bsphere | ( | ) | [private] |
void openvrml::vrml97_node::transform_node::update_transform | ( | ) | const throw () [private] |
Update transform.
If transform_dirty is true
, resynchronize the cached matrix transform with the node fields; otherwise do nothing.
class openvrml::vrml97_node::transform_node::transform_class [friend] |
Class object for Transform nodes.
center exposedField.
rotation exposedField.
scale exposedField.
transform_node::scale_orientation_exposedfield openvrml::vrml97_node::transform_node::scale_orientation_ [private] |
scaleOrientation exposedField.
transform_node::translation_exposedfield openvrml::vrml97_node::transform_node::translation_ [private] |
translation exposedField.
mat4f openvrml::vrml97_node::transform_node::transform_ [mutable, private] |
Cached copy of this node's transformation.
openvrml::vrml97_node::transform_node::transform_dirty [mutable, private] |
Flag to indicate whether transform_ needs to be updated.
A handle to the renderer's representation of the Transform.