Main Page   Modules   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

openvrml::vrml97_node::normal_node Class Reference

Normal node instances. More...

Inheritance diagram for openvrml::vrml97_node::normal_node:

Inheritance graph
[legend]
Collaboration diagram for openvrml::vrml97_node::normal_node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 normal_node (const node_type &type, const scope_ptr &scope)
 Construct.

virtual ~normal_node () throw ()
 Destroy.

virtual const std::vector<
vec3f > & 
vector () const throw ()
 Get the array of normal vectors.


Private Member Functions

void process_set_vector (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_vector eventIn handler.


Private Attributes

mfvec3f vector_
 vector exposedField.


Friends

class normal_class
 Class object for Normal nodes.


Detailed Description

Normal node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::normal_node::normal_node const node_type type,
const scope_ptr scope
 

Construct.

Parameters:
type the node_type associated with the node.
scope the scope to which the node belongs.

Reimplemented from openvrml::normal_node.

openvrml::vrml97_node::normal_node::~normal_node  )  throw () [virtual]
 

Destroy.

Implements openvrml::normal_node.


Member Function Documentation

void openvrml::vrml97_node::normal_node::process_set_vector const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_vector eventIn handler.

Parameters:
value an mfvec3f value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an mfvec3f.
std::bad_alloc if memory allocation fails.

const std::vector< vec3f > & openvrml::vrml97_node::normal_node::vector  )  const throw () [virtual]
 

Get the array of normal vectors.

Returns:
the array of normal vectors.

Implements openvrml::normal_node.


Friends And Related Function Documentation

openvrml::vrml97_node::normal_node::normal_class [friend]
 

Class object for Normal nodes.


Member Data Documentation

mfvec3f openvrml::vrml97_node::normal_node::vector_ [private]
 

vector exposedField.