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

openvrml::normal_node Class Reference

Abstract base class for normal nodes. More...

Inheritance diagram for openvrml::normal_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~normal_node ()=0 throw ()
 Destroy.

virtual const normal_node * to_normal () const throw ()
 Cast to a normal_node.

virtual normal_node * to_normal () throw ()
 Cast to a normal_node.

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


Protected Member Functions

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


Detailed Description

Abstract base class for normal nodes.


Constructor & Destructor Documentation

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

Destroy.

Implemented in openvrml::vrml97_node::normal_node.

openvrml::normal_node::normal_node const node_type type,
const scope_ptr scope
throw () [protected]
 

Construct.

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

Reimplemented in openvrml::vrml97_node::normal_node.


Member Function Documentation

normal_node * openvrml::normal_node::to_normal  )  throw () [virtual]
 

Cast to a normal_node.

Returns:
a pointer to this normal_node.

Reimplemented from openvrml::node.

const normal_node * openvrml::normal_node::to_normal  )  const throw () [virtual]
 

Cast to a normal_node.

Returns:
a pointer to this normal_node.

Reimplemented from openvrml::node.

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

Get the array of normal vectors.

Returns:
the array of normal vectors.

Implemented in openvrml::vrml97_node::normal_node.