#include <src/orxonox/objects/collisionshapes/ConeCollisionShape.h>
Public Member Functions | |
ConeCollisionShape (BaseObject *creator) | |
float | getHeight () const |
float | getRadius () const |
void | registerVariables () |
void | setHeight (float value) |
void | setRadius (float value) |
virtual void | XMLPort (Element &xmlelement, XMLPort::Mode mode) |
XML loading and saving. | |
virtual | ~ConeCollisionShape () |
Private Member Functions | |
btCollisionShape * | createNewShape () const |
Private Attributes | |
float | height_ |
float | radius_ |
orxonox::ConeCollisionShape::ConeCollisionShape | ( | BaseObject * | creator | ) |
References height_, radius_, RegisterObject, registerVariables(), and orxonox::CollisionShape::updateShape().
orxonox::ConeCollisionShape::~ConeCollisionShape | ( | ) | [virtual] |
btCollisionShape * orxonox::ConeCollisionShape::createNewShape | ( | ) | const [private, virtual] |
float orxonox::ConeCollisionShape::getHeight | ( | void | ) | const [inline] |
Referenced by XMLPort().
float orxonox::ConeCollisionShape::getRadius | ( | ) | const [inline] |
Referenced by XMLPort().
void orxonox::ConeCollisionShape::registerVariables | ( | ) |
Reimplemented from orxonox::CollisionShape.
References height_, radius_, orxonox::Synchronisable::registerVariable(), orxonox::VariableDirection::ToClient, and orxonox::CollisionShape::updateShape().
Referenced by ConeCollisionShape().
void orxonox::ConeCollisionShape::setHeight | ( | float | value | ) | [inline] |
Referenced by XMLPort().
void orxonox::ConeCollisionShape::setRadius | ( | float | value | ) | [inline] |
Referenced by XMLPort().
void orxonox::ConeCollisionShape::XMLPort | ( | Element & | xmlelement, | |
XMLPort::Mode | mode | |||
) | [virtual] |
XML loading and saving.
xmlelement | The XML-element | |
loading | Loading (true) or saving (false) |
Reimplemented from orxonox::CollisionShape.
References getHeight(), getRadius(), setHeight(), setRadius(), SUPER, and XMLPortParam.
float orxonox::ConeCollisionShape::height_ [private] |
Referenced by ConeCollisionShape(), createNewShape(), and registerVariables().
float orxonox::ConeCollisionShape::radius_ [private] |
Referenced by ConeCollisionShape(), createNewShape(), and registerVariables().