Home | Download | Screen shots | Discussion | Documentation |
---|
Abstract base class for normal nodes. More...
#include <openvrml/node.h>
Public Member Functions | |
virtual | ~normal_node ()=0 throw () |
Destroy. | |
const std::vector< vec3f > & | vector () const throw () |
Get the array of normal vectors. | |
Protected Member Functions | |
normal_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope) throw () | |
Construct. | |
Private Member Functions | |
virtual normal_node * | to_normal () throw () |
Cast to a normal_node . | |
virtual const std::vector < vec3f > & | do_vector () const =0 throw () |
Get the array of normal vectors. |
Abstract base class for normal nodes.
openvrml::normal_node::~normal_node | ( | ) | throw () [pure virtual] |
Destroy.
openvrml::normal_node::normal_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 std::vector< openvrml::vec3f > & openvrml::normal_node::vector | ( | ) | const throw () |
Get the array of normal vectors.
This function delegates to do_vector
.
openvrml::normal_node * openvrml::normal_node::to_normal | ( | ) | throw () [private, virtual] |
const std::vector< openvrml::vec3f > & openvrml::normal_node::do_vector | ( | ) | const throw () [private, pure virtual] |
Get the array of normal vectors.