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

Coordinate Class Reference

Coordinate node instances. More...

Inheritance diagram for Coordinate:

AbstractBase CoordinateNode Node Node List of all members.

Public Methods

 Coordinate (const NodeType &nodeType, const ScopePtr &scope)
 Constructor.

virtual ~Coordinate () throw ()
 Destructor.

virtual const MFVec3fgetPoint () const throw ()
 Get the points encapsulated by this node.


Private Methods

void setPoint (const FieldValue &mfvec3f) throw (std::bad_cast, std::bad_alloc)
void processSet_point (const FieldValue &mfvec3f, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_point eventIn handler.


Private Attributes

MFVec3f point

Friends

class CoordinateClass

Detailed Description

Coordinate node instances.


Constructor & Destructor Documentation

Coordinate const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

Parameters:
nodeType the NodeType associated with the node.
scope the Scope to which the node belongs.

~Coordinate   throw () [virtual]
 

Destructor.


Member Function Documentation

const MFVec3f & getPoint   const throw () [virtual]
 

Get the points encapsulated by this node.

Returns:
the MFVec3f array of points for this node.

Implements CoordinateNode.

void processSet_point const FieldValue   mfvec3f,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_point eventIn handler.

Parameters:
mfvec3f an array of vectors representing points.
timestamp the current time.
Exceptions:
std::bad_cast if mfvec3f is not an MFVec3f.
std::bad_alloc if memory allocation fails.