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

openvrml::coordinate_node Class Reference

Abstract base class for coordinate nodes. More...

Inheritance diagram for openvrml::coordinate_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual const coordinate_node * to_coordinate () const throw ()
 Cast to a coordinate_node.

virtual coordinate_node * to_coordinate () throw ()
 Cast to a coordinate_node.

virtual const std::vector<
vec3f > & 
point () const=0 throw ()
 Get the points encapsulated by this node.


Protected Member Functions

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


Detailed Description

Abstract base class for coordinate nodes.


Constructor & Destructor Documentation

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

Destroy.

Implemented in openvrml::vrml97_node::coordinate_node.

openvrml::coordinate_node::coordinate_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::coordinate_node.


Member Function Documentation

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

Get the points encapsulated by this node.

Returns:
the array of points for this node.

Implemented in openvrml::vrml97_node::coordinate_node.

coordinate_node * openvrml::coordinate_node::to_coordinate  )  throw () [virtual]
 

Cast to a coordinate_node.

Returns:
a pointer to this coordinate_node.

Reimplemented from openvrml::node.

const coordinate_node * openvrml::coordinate_node::to_coordinate  )  const throw () [virtual]
 

Cast to a coordinate_node.

Returns:
a pointer to this coordinate_node.

Reimplemented from openvrml::node.