Document::NodePositionFinder Class Reference

Find or set the position of a vertex. More...

#include <MoveNodeDelta.h>

Inheritance diagram for Document::NodePositionFinder:

Document::PropertyDeltaIdentifier< btVector3 > List of all members.

Public Member Functions

 NodePositionFinder (std::size_t node_id)
 Create, associating with a vertex.
virtual void read (const Track::Track &track, btVector3 &position)
 Get the location of the associated vertex.
virtual void write (Track::Track &track, const btVector3 &new_position)
 Move the associated vertex.

Protected Attributes

std::size_t node_id
 The name of the vertex.

Detailed Description

Find or set the position of a vertex.

Definition at line 24 of file MoveNodeDelta.h.


Constructor & Destructor Documentation

Document::NodePositionFinder::NodePositionFinder ( std::size_t  node_id  ) 

Create, associating with a vertex.

Parameters:
node_id The name of the vertex to associate with.

Definition at line 18 of file MoveNodeDelta.cpp.


Member Function Documentation

void Document::NodePositionFinder::read ( const Track::Track track,
btVector3 &  position 
) [virtual]

Get the location of the associated vertex.

Parameters:
track The Track the associated vertex is in.
position Variable to set to the current position.

Implements Document::PropertyDeltaIdentifier< btVector3 >.

Definition at line 23 of file MoveNodeDelta.cpp.

void Document::NodePositionFinder::write ( Track::Track track,
const btVector3 &  new_position 
) [virtual]

Move the associated vertex.

Parameters:
track The Track containing the associated vertex.
new_position The location to move the associated vertex to.

Implements Document::PropertyDeltaIdentifier< btVector3 >.

Definition at line 28 of file MoveNodeDelta.cpp.


Member Data Documentation

std::size_t Document::NodePositionFinder::node_id [protected]

The name of the vertex.

Definition at line 43 of file MoveNodeDelta.h.


The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:17 2010 by Doxygen version 1.4.7 for Racer version svn335.