Track::SegmentConnection Class Reference

A description of an end of a TrackMesh that should be covered over by another track mesh. More...

#include <SegmentConnection.h>

List of all members.

Public Member Functions

 SegmentConnection (unsigned int cross_section_id, btTransform transform)
 Construct from normal variables.
 SegmentConnection (std::istream &source)
 Construct by reading data from a stream.
virtual ~SegmentConnection ()
 destructor
unsigned int get_cross_section_id () const
 Get the cross section id.
const btTransform & get_transform () const
 Get the transformation of the cross section from the origin of.

Protected Attributes

unsigned int cross_section_id
btTransform transform


Detailed Description

A description of an end of a TrackMesh that should be covered over by another track mesh.

There is two basic components, an unsigned integer which identifies the cross section, and a transformation. We can pick stuff with the same cross section and transform them so the cross sections line up and there are no holes.

Definition at line 27 of file SegmentConnection.h.


Constructor & Destructor Documentation

Track::SegmentConnection::SegmentConnection ( unsigned int  cross_section_id,
btTransform  transform 
)

Construct from normal variables.

Parameters:
cross_section_id A name for the shape of the cross section around the hole that is used throught the theme.
transform A transform from the TrackMeshes' origin to the cross section's origin, so that the cross section lies across the xz plane.

Definition at line 17 of file SegmentConnection.cpp.

Track::SegmentConnection::SegmentConnection ( std::istream &  source  ) 

Construct by reading data from a stream.

Parameters:
source The stream to read from. It will be advanced to the end of the SegmentConnection's description.

Definition at line 24 of file SegmentConnection.cpp.

Track::SegmentConnection::~SegmentConnection (  )  [virtual]

destructor

Definition at line 39 of file SegmentConnection.cpp.


Member Function Documentation

unsigned int Track::SegmentConnection::get_cross_section_id (  )  const

Get the cross section id.

Returns:
id that is used in the theme to identify the shape of the hole that needs to be matched to fill the holes in TrackMeshes.

Definition at line 43 of file SegmentConnection.cpp.

const btTransform & Track::SegmentConnection::get_transform (  )  const

Get the transformation of the cross section from the origin of.

Returns:
transformation from the origin to the xz plane of the cross section of the hole.

Definition at line 48 of file SegmentConnection.cpp.


Member Data Documentation

unsigned int Track::SegmentConnection::cross_section_id [protected]

Definition at line 59 of file SegmentConnection.h.

btTransform Track::SegmentConnection::transform [protected]

Definition at line 60 of file SegmentConnection.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:18 2010 by Doxygen version 1.4.7 for Racer version svn335.