Document::TrackAttachmentPositionFinder Class Reference

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

#include <MoveTrackAttachmentDelta.h>

Inheritance diagram for Document::TrackAttachmentPositionFinder:

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

Public Member Functions

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

Protected Attributes

std::size_t m_edge_name
 The name of the edge.
std::size_t m_attachment_name
 The name of the attachment.

Detailed Description

Find or set the position of a vertex.

Definition at line 24 of file MoveTrackAttachmentDelta.h.


Constructor & Destructor Documentation

Document::TrackAttachmentPositionFinder::TrackAttachmentPositionFinder ( std::size_t  edge_name,
std::size_t  attachment_name 
)

Create, associating with a vertex.

Parameters:
edge_name The name of the edge with the attachment on it.
attachment_nmae The name of the attachment.

Definition at line 20 of file MoveTrackAttachmentDelta.cpp.


Member Function Documentation

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

Get the location of the associated track attachment.

Parameters:
track The Track the associated vertex is in.
position Position of the TrackAttachment. The first component is how far along the edge's curve the point is on the scale of 0 (beginning) to 1 (end). The second component is the lateral position, and the third component is the vertical position.

Implements Document::PropertyDeltaIdentifier< btVector3 >.

Definition at line 27 of file MoveTrackAttachmentDelta.cpp.

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

Move the associated track attachment.

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 37 of file MoveTrackAttachmentDelta.cpp.


Member Data Documentation

std::size_t Document::TrackAttachmentPositionFinder::m_attachment_name [protected]

The name of the attachment.

Definition at line 52 of file MoveTrackAttachmentDelta.h.

std::size_t Document::TrackAttachmentPositionFinder::m_edge_name [protected]

The name of the edge.

Definition at line 50 of file MoveTrackAttachmentDelta.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.