Entity Class Reference

#include <basic/universe/Entity.h>

Inherited by ObjectBase, and RobotBase.

Inheritance diagram for Entity:

Inheritance graph
[legend]
Collaboration diagram for Entity:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Entity (FrameManager *frameManager)
 Entity (const Entity &right)
virtual ~Entity ()
virtual EntityClone () const =0
virtual bool IsInterfering (const Entity *entity) const =0
virtual void SetBaseFrame (const unsigned int baseFrame)
virtual void SetFrameManager (FrameManager *frameManager)
Matrix4x4 GetTransform () const
virtual bool CanCheckInterference (const Entity *entity) const =0
unsigned int BaseFrame () const
void SetName (const char *name)
const char * GetName () const
virtual bool DeserializeEntity (IfstreamWithComments &is)

Protected Attributes

unsigned int baseFrame
char * name
FrameManagerframeManager

Detailed Description

Definition at line 43 of file Entity.h.


Constructor & Destructor Documentation

Entity::Entity FrameManager frameManager  ) 
 

Definition at line 6 of file Entity.cpp.

References SetName().

Here is the call graph for this function:

Entity::Entity const Entity right  ) 
 

Definition at line 15 of file Entity.cpp.

References GetName(), and SetName().

Here is the call graph for this function:

Entity::~Entity  )  [virtual]
 

Definition at line 28 of file Entity.cpp.

References baseFrame, frameManager, and name.


Member Function Documentation

unsigned int Entity::BaseFrame  )  const
 

Definition at line 63 of file Entity.cpp.

References baseFrame.

Referenced by CD_Swiftpp::AddEntityToSwiftScene(), CD_Vcollide::AddEntityToVcollide(), CD_Simple::IsInterfering(), MPK::Segment::IsInterfering(), CD_Solid::MarkIndexEntityRelationship(), and Range_Sensor::Serialize().

virtual bool Entity::CanCheckInterference const Entity entity  )  const [pure virtual]
 

Implemented in Range_Sensor, Mesh, MPK_Box, MPK_Cylinder, MPK::Segment, MPK_Sphere, ObjectGroup, and R_OpenChain.

Referenced by ObjectGroup::CanCheckInterference(), and ObjectGroup::IsInterfering().

virtual Entity* Entity::Clone  )  const [pure virtual]
 

Implemented in Range_Sensor, Mesh, MPK::Segment, MPK_Sphere, ObjectBase, ObjectGroup, GL_Box, GL_Cylinder, GL_Group, GL_Mesh, GL_Range_Sensor, GL_Segment, GL_Sphere, R_OpenChain, and RobotBase.

bool Entity::DeserializeEntity IfstreamWithComments is  )  [virtual]
 

Definition at line 89 of file Entity.cpp.

References IfstreamWithComments::GetSolidLine(), name, and SetName().

Referenced by RobotBase::Deserialize().

Here is the call graph for this function:

const char * Entity::GetName  )  const
 

Definition at line 80 of file Entity.cpp.

References name.

Referenced by Entity(), and Range_Sensor::Serialize().

Matrix4x4 Entity::GetTransform  )  const
 

Definition at line 55 of file Entity.cpp.

References baseFrame, frameManager, and FrameManager::GetTransformRelative().

Referenced by Range_Sensor::AddBoxToDepthMap(), Range_Sensor::AddCylinderToDepthMap(), Range_Sensor::AddMeshToDepthMap(), Range_Sensor::AddSphereToDepthMap(), Range_Sensor::Generate_Ray_Array(), CD_Swiftpp::IsInterfering(), MPK_Sphere::IsInterfering(), Mesh::IsInterfering(), CD_Swiftpp::QueryContactDetermination(), and Range_Sensor::Range_Sensor().

Here is the call graph for this function:

virtual bool Entity::IsInterfering const Entity entity  )  const [pure virtual]
 

Implemented in Range_Sensor, Mesh, MPK_Box, MPK_Cylinder, MPK::Segment, MPK_Sphere, ObjectBase, ObjectGroup, and R_OpenChain.

void Entity::SetBaseFrame const unsigned int  baseFrame  )  [virtual]
 

Reimplemented in ObjectGroup.

Definition at line 41 of file Entity.cpp.

Referenced by DH_Link::AddObject(), ServerBase::AddObstacle(), Range_Sensor::Deserialize(), and ObjectGroup::SetBaseFrame().

void Entity::SetFrameManager FrameManager frameManager  )  [virtual]
 

Reimplemented in ObjectGroup.

Definition at line 48 of file Entity.cpp.

References frameManager.

Referenced by Universe::AddEntity(), CD_BasicStyle::CD_BasicStyle(), and ObjectGroup::SetFrameManager().

void Entity::SetName const char *  name  ) 
 

Definition at line 71 of file Entity.cpp.

Referenced by Octree_Data_Fuser::Convert(), DH_Link::DeSerialize(), Range_Sensor::Deserialize(), DeserializeEntity(), and Entity().


Member Data Documentation

unsigned int Entity::baseFrame [protected]
 

Reimplemented in ObjectGroup.

Definition at line 100 of file Entity.h.

Referenced by BaseFrame(), GetTransform(), MPK_Sphere::IsInterfering(), MPK::Segment::IsInterfering(), and ~Entity().

FrameManager* Entity::frameManager [protected]
 

Definition at line 113 of file Entity.h.

Referenced by R_OpenChain::AddToolFrame(), RobotBase::DeserializeAbstract(), GetTransform(), MPK_Sphere::IsInterfering(), SetFrameManager(), ObjectGroup::SetFrameManager(), and ~Entity().

char* Entity::name [protected]
 

Definition at line 105 of file Entity.h.

Referenced by DeserializeEntity(), GetName(), and ~Entity().


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