Home | Download | Screen shots | Discussion | Documentation |
---|
Abstract base class for transform nodes. More...
#include <openvrml/node.h>
Public Member Functions | |
virtual | ~transform_node ()=0 throw () |
Destroy. | |
const mat4f & | transform () const throw () |
Get the transformation associated with the node as a matrix. | |
Protected Member Functions | |
transform_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope) throw () | |
Construct. | |
Private Member Functions | |
virtual transform_node * | to_transform () throw () |
Cast to a transform_node . | |
virtual const mat4f & | do_transform () const =0 throw () |
Get the transformation associated with the node as a matrix. |
Abstract base class for transform nodes.
openvrml::transform_node::~transform_node | ( | ) | throw () [pure virtual] |
Destroy.
openvrml::transform_node::transform_node | ( | const node_type & | type, |
const boost::shared_ptr< openvrml::scope > & | scope | ||
) | throw () [protected] |
Construct.
[in] | type | the node_type associated with the node . |
[in] | scope | the scope the node belongs to. |
const openvrml::mat4f & openvrml::transform_node::transform | ( | ) | const throw () |
Get the transformation associated with the node
as a matrix.
This function delegates to do_transform
.
node
. openvrml::transform_node * openvrml::transform_node::to_transform | ( | ) | throw () [private, virtual] |
Cast to a transform_node
.
transform_node
. Reimplemented from openvrml::node.
const openvrml::mat4f & openvrml::transform_node::do_transform | ( | ) | const throw () [private, pure virtual] |
Get the transformation associated with the node
as a matrix.
node
.