orxonox::CollisionShape Class Reference

#include <src/orxonox/objects/collisionshapes/CollisionShape.h>

Inheritance diagram for orxonox::CollisionShape:

orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::BoxCollisionShape orxonox::CompoundCollisionShape orxonox::ConeCollisionShape orxonox::PlaneCollisionShape orxonox::SphereCollisionShape orxonox::WorldEntityCollisionShape

List of all members.

Public Member Functions

void calculateLocalInertia (float mass, btVector3 &inertia) const
 CollisionShape (BaseObject *creator)
btCollisionShape * getCollisionShape () const
const Quaternion & getOrientation () const
const Vector3 & getPosition () const
const Vector3 & getScale3D () const
bool hasTransform () const
bool notifyBeingAttached (CompoundCollisionShape *newParent)
void notifyDetached ()
void pitch (const Degree &angle)
void registerVariables ()
void roll (const Degree &angle)
void setOrientation (const Quaternion &orientation)
void setPosition (const Vector3 &position)
virtual void setScale (float scale)
virtual void setScale3D (const Vector3 &scale)
void updateShape ()
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
void yaw (const Degree &angle)
virtual ~CollisionShape ()

Protected Member Functions

virtual btCollisionShape * createNewShape () const =0
virtual void parentChanged ()
virtual void updateParent ()

Protected Attributes

btCollisionShape * collisionShape_
CompoundCollisionShapeparent_
unsigned int parentID_

Private Attributes

Quaternion orientation_
Vector3 position_
Vector3 scale_


Constructor & Destructor Documentation

orxonox::CollisionShape::CollisionShape ( BaseObject creator  ) 

orxonox::CollisionShape::~CollisionShape (  )  [virtual]


Member Function Documentation

void orxonox::CollisionShape::calculateLocalInertia ( float  mass,
btVector3 &  inertia 
) const

virtual btCollisionShape* orxonox::CollisionShape::createNewShape (  )  const [protected, pure virtual]

btCollisionShape* orxonox::CollisionShape::getCollisionShape (  )  const [inline]

const Quaternion& orxonox::CollisionShape::getOrientation (  )  const [inline]

const Vector3& orxonox::CollisionShape::getPosition (  )  const [inline]

const Vector3& orxonox::CollisionShape::getScale3D (  )  const [inline]

Referenced by XMLPort().

bool orxonox::CollisionShape::hasTransform (  )  const

bool orxonox::CollisionShape::notifyBeingAttached ( CompoundCollisionShape newParent  ) 

void orxonox::CollisionShape::notifyDetached (  ) 

void orxonox::CollisionShape::parentChanged (  )  [protected, virtual]

void orxonox::CollisionShape::pitch ( const Degree &  angle  )  [inline]

References orxonox::MT_Type::Quaternion.

Referenced by XMLPort().

void orxonox::CollisionShape::registerVariables (  ) 

void orxonox::CollisionShape::roll ( const Degree &  angle  )  [inline]

References orxonox::MT_Type::Quaternion.

Referenced by XMLPort().

void orxonox::CollisionShape::setOrientation ( const Quaternion &  orientation  )  [inline]

void orxonox::CollisionShape::setPosition ( const Vector3 &  position  )  [inline]

void orxonox::CollisionShape::setScale ( float  scale  )  [virtual]

References CCOUT.

Referenced by XMLPort().

void orxonox::CollisionShape::setScale3D ( const Vector3 &  scale  )  [virtual]

References CCOUT.

Referenced by XMLPort().

void orxonox::CollisionShape::updateParent (  )  [protected, virtual]

void orxonox::CollisionShape::updateShape (  ) 

void orxonox::CollisionShape::XMLPort ( Element &  xmlelement,
XMLPort::Mode  mode 
) [virtual]

void orxonox::CollisionShape::yaw ( const Degree &  angle  )  [inline]

References orxonox::MT_Type::Quaternion.

Referenced by XMLPort().


Member Data Documentation

btCollisionShape* orxonox::CollisionShape::collisionShape_ [protected]

Referenced by CollisionShape(), and hasTransform().

unsigned int orxonox::CollisionShape::parentID_ [protected]

Referenced by CollisionShape(), and hasTransform().

Referenced by CollisionShape().


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:22:23 2009 for Orxonox by  doxygen 1.5.6