Universe Class Reference

#include <basic/universe/Universe.h>

Inherits CD_JointLimits.

Inherited by GL_Universe.

Inheritance diagram for Universe:

Inheritance graph
[legend]
Collaboration diagram for Universe:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Universe ()
 Universe (const Universe &right)
virtual ~Universe ()
void AddEntity (Entity *entity)
void AddLink (LinkBase *link)
FrameManagerGetFrameManager ()
const std::vector< Entity * > & GetAllEntities () const
const std::vector< LinkBase * > GetAllLinks () const
void SetConfiguration (const Configuration &configuration)
void Empty ()
virtual double JointMax (const unsigned int jointNum) const
virtual double JointMin (const unsigned int jointNum) const
virtual unsigned int DOF () const
virtual bool JointWraps (const unsigned int jointNum) const
Configuration GetConfiguration () const
const EntityGetEntity (const char *name) const
virtual CollisionDetectorBaseClone () const

Protected Member Functions

int TotalPolys () const

Protected Attributes

std::vector< Entity * > entities
std::vector< LinkBase * > links
FrameManager theFrameManager
int totalPolys

Detailed Description

Definition at line 17 of file Universe.h.


Constructor & Destructor Documentation

Universe::Universe  ) 
 

Definition at line 42 of file Universe.cpp.

Universe::Universe const Universe right  ) 
 

Definition at line 54 of file Universe.cpp.

References FrameManager::GetNumberOfFrames(), links, and theFrameManager.

Here is the call graph for this function:

Universe::~Universe  )  [virtual]
 

Definition at line 72 of file Universe.cpp.

References Empty().

Here is the call graph for this function:


Member Function Documentation

void Universe::AddEntity Entity entity  ) 
 

Definition at line 82 of file Universe.cpp.

References AddLink(), entities, RobotBase::GetAllLinks(), FrameManager::MarkToolFrame(), Entity::SetFrameManager(), and theFrameManager.

Referenced by AddLink(), ServerBase::AddObstacle(), CD_Range_Sensor::CD_Range_Sensor(), Octree_Data_Fuser::Convert(), PL_ATACE::CreateTrajectoryCD(), Octree_Data_Fuser::new_local_universe(), and ServerBase::ParseObstacleFile().

Here is the call graph for this function:

void Universe::AddLink LinkBase link  ) 
 

Definition at line 130 of file Universe.cpp.

References AddEntity(), LinkBase::Clone(), links, and LinkBase::objects.

Referenced by AddEntity(), and operator>>().

Here is the call graph for this function:

CollisionDetectorBase * Universe::Clone  )  const [virtual]
 

Implements CollisionDetectorBase.

Definition at line 310 of file Universe.cpp.

Referenced by Octree_Data_Fuser::Octree_Data_Fuser().

unsigned int Universe::DOF  )  const [virtual]
 

Implements CD_JointLimits.

Definition at line 261 of file Universe.cpp.

References links.

Referenced by CD_LinearDiscrete::CD_LinearDiscrete().

void Universe::Empty  ) 
 

Definition at line 211 of file Universe.cpp.

References entities.

Referenced by CD_Range_Sensor::CD_Range_Sensor(), Octree_Data_Fuser::new_local_universe(), ServerBase::OpenExampleFile(), operator>>(), ServerBase::R_ThreeCylinderRobot(), ServerBase::RefreshRobotFile(), and ~Universe().

const std::vector< Entity * > & Universe::GetAllEntities  )  const
 

Definition at line 162 of file Universe.cpp.

References entities.

Referenced by CD_BasicStyle::CD_BasicStyle(), CD_Range_Sensor::CD_Range_Sensor(), and Octree_Data_Fuser::new_local_universe().

const std::vector< LinkBase * > Universe::GetAllLinks  )  const
 

Definition at line 169 of file Universe.cpp.

References links.

Referenced by operator<<().

Configuration Universe::GetConfiguration  )  const
 

Definition at line 277 of file Universe.cpp.

References links, and VectorN::SetLength().

Referenced by CD_Range_Sensor::Take_Picture().

Here is the call graph for this function:

const Entity * Universe::GetEntity const char *  name  )  const
 

Definition at line 294 of file Universe.cpp.

References entities.

Referenced by ServerBase::GetRobot().

FrameManager * Universe::GetFrameManager  ) 
 

Definition at line 155 of file Universe.cpp.

References theFrameManager.

Referenced by CD_BasicStyle::CD_BasicStyle(), Octree_Data_Fuser::Convert(), Octree_Data_Fuser::new_local_universe(), and operator>>().

double Universe::JointMax const unsigned int  jointNum  )  const [virtual]
 

Implements CD_JointLimits.

Definition at line 241 of file Universe.cpp.

References LinkBase::JointMax(), and links.

Referenced by CD_LinearDiscrete::CD_LinearDiscrete().

Here is the call graph for this function:

double Universe::JointMin const unsigned int  jointNum  )  const [virtual]
 

Implements CD_JointLimits.

Definition at line 251 of file Universe.cpp.

References links.

Referenced by CD_LinearDiscrete::CD_LinearDiscrete().

bool Universe::JointWraps const unsigned int  jointNum  )  const [virtual]
 

Implements CD_JointLimits.

Definition at line 268 of file Universe.cpp.

References links.

void Universe::SetConfiguration const Configuration configuration  ) 
 

Definition at line 176 of file Universe.cpp.

References VectorN::Length(), and links.

Referenced by Octree_Data_Fuser::Convert(), and CD_Range_Sensor::Take_Picture().

Here is the call graph for this function:

int Universe::TotalPolys  )  const [protected]
 

Definition at line 194 of file Universe.cpp.

References entities, and totalPolys.


Member Data Documentation

std::vector<Entity*> Universe::entities [protected]
 

Definition at line 96 of file Universe.h.

Referenced by AddEntity(), GL_Universe::DrawFrame0(), GL_Universe::DrawNotFrame0(), Empty(), GetAllEntities(), GetEntity(), and TotalPolys().

std::vector<LinkBase*> Universe::links [protected]
 

Definition at line 102 of file Universe.h.

Referenced by AddLink(), DOF(), GetAllLinks(), GetConfiguration(), JointMax(), JointMin(), JointWraps(), SetConfiguration(), and Universe().

FrameManager Universe::theFrameManager [protected]
 

Definition at line 105 of file Universe.h.

Referenced by AddEntity(), GetFrameManager(), and Universe().

int Universe::totalPolys [protected]
 

Definition at line 107 of file Universe.h.

Referenced by TotalPolys().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 22:05:30 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO