csMetaObject3D Class Reference
#include <vosobject3d.hh>
Inheritance diagram for csMetaObject3D:

Detailed Description
Definition at line 67 of file vosobject3d.hh.
Public Member Functions
- csMetaObject3D (VOS::VobjectBase *superobject)
- virtual ~csMetaObject3D ()
- csVosA3DL * getVosA3DL ()
- virtual void Setup (csVosA3DL *vosa3dl, csVosSector *sect)
- VUtil::Task * GetSetupTask (csVosA3DL *vosa3dl, csVosSector *sect)
- void updateMaterial ()
- csRef< csVosObject3D > GetCSinterface ()
- VUtil::vRef< csMetaMaterial > getMetaMaterial ()
- virtual void notifyChildInserted (VOS::VobjectEvent &event)
- virtual void notifyChildRemoved (VOS::VobjectEvent &event)
- virtual void notifyChildReplaced (VOS::VobjectEvent &event)
- virtual void notifyPropertyChange (const VOS::PropertyEvent &event)
- virtual void syncPosition (bool setCollider)
- virtual void syncOrientation (bool setCollider)
- virtual void changeMaterial (iMaterialWrapper *mat)
- virtual bool supportsPhysics ()
- virtual void applyForce (double x, double y, double z)
- virtual void applyTorque (double x, double y, double z)
- virtual void getLinearVelocity (double &x, double &y, double &z)
- virtual void getAngularVelocity (double &x, double &y, double &z)
- virtual void moveTo (double x, double y, double z, double timestep)
- void doMoveTo (const csVector3 &vec, float timestep)
- void setupCollider ()
- void setupCollider (bool coldet, double gravity)
Static Public Member Functions
- static VOS::MetaObject * new_csMetaObject3D (VOS::VobjectBase *superobject, const std::string &type)
Protected Attributes
- bool alreadyLoaded
- csRef< csVosObject3D > csvobj3d
- csRef< csVosA3DL > vosa3dl
- csRef< csVosSector > sector
- VUtil::vRef< csMetaMaterial > metamaterial
- bool htvalid
- csColliderActor collider_actor
- bool setupCA
- bool wasZero
Constructor & Destructor Documentation
| csMetaObject3D::csMetaObject3D | ( | VOS::VobjectBase * | superobject | ) |
| virtual csMetaObject3D::~csMetaObject3D | ( | ) | [virtual] |
Member Function Documentation
| virtual void csMetaObject3D::applyForce | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) | [virtual] |
Apply an instantaneous linear force vector to this object.
- Parameters:
-
x component of vector y component of vector z component of vector
Reimplemented from A3DL::Object3D.
| virtual void csMetaObject3D::applyTorque | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) | [virtual] |
Apply an instantaneous angular torque to this object.
The direction of the vector specifies the axis, the length of the vector specifies the magnitude, and the direction of rotation is determined by the "right hand" rule.
- Parameters:
-
x component of vector y component of vector z component of vector
Reimplemented from A3DL::Object3D.
| virtual void csMetaObject3D::changeMaterial | ( | iMaterialWrapper * | mat | ) | [virtual] |
| void csMetaObject3D::doMoveTo | ( | const csVector3 & | vec, | |
| float | timestep | |||
| ) |
| virtual void csMetaObject3D::getAngularVelocity | ( | double & | x, | |
| double & | y, | |||
| double & | z | |||
| ) | [virtual] |
Fetch the current angular velocity of this object.
The direction of the vector specifies the axis, the length of the vector specifies the magnitude, and the direction of rotation is determined by the "right hand" rule.
- Parameters:
-
x component of vector y component of vector z component of vector
Reimplemented from A3DL::Object3D.
| csRef<csVosObject3D> csMetaObject3D::GetCSinterface | ( | ) |
| virtual void csMetaObject3D::getLinearVelocity | ( | double & | x, | |
| double & | y, | |||
| double & | z | |||
| ) | [virtual] |
Fetch the current linear velocity vector for this object.
- Parameters:
-
x component of vector y component of vector z component of vector
Reimplemented from A3DL::Object3D.
| VUtil::vRef<csMetaMaterial> csMetaObject3D::getMetaMaterial | ( | ) | [inline] |
Definition at line 99 of file vosobject3d.hh.
| VUtil::Task* csMetaObject3D::GetSetupTask | ( | csVosA3DL * | vosa3dl, | |
| csVosSector * | sect | |||
| ) |
| csVosA3DL* csMetaObject3D::getVosA3DL | ( | ) | [inline] |
Definition at line 90 of file vosobject3d.hh.
| virtual void csMetaObject3D::moveTo | ( | double | x, | |
| double | y, | |||
| double | z, | |||
| double | timestep | |||
| ) | [virtual] |
Reimplemented from A3DL::Object3D.
| static VOS::MetaObject* csMetaObject3D::new_csMetaObject3D | ( | VOS::VobjectBase * | superobject, | |
| const std::string & | type | |||
| ) | [static] |
| virtual void csMetaObject3D::notifyChildInserted | ( | VOS::VobjectEvent & | event | ) | [virtual] |
Called when a child has been inserted into the listened-to children list.
Implements VOS::ChildChangeListener.
Reimplemented in csMetaModel.
| virtual void csMetaObject3D::notifyChildRemoved | ( | VOS::VobjectEvent & | event | ) | [virtual] |
Called when a child has been deleted in the listened-to children list.
Implements VOS::ChildChangeListener.
Reimplemented in csMetaModel.
| virtual void csMetaObject3D::notifyChildReplaced | ( | VOS::VobjectEvent & | event | ) | [virtual] |
Called when a child has replaced another child in the listened-to children list.
Implements VOS::ChildChangeListener.
| virtual void csMetaObject3D::notifyPropertyChange | ( | const VOS::PropertyEvent & | event | ) | [virtual] |
Notification interface that a property has been changed.
Override this method in your subclass.
- Parameters:
-
event Event describing what happened. Note the 'const' declaration.
Implements VOS::PropertyListener.
Reimplemented in csMetaModel.
| virtual void csMetaObject3D::Setup | ( | csVosA3DL * | vosa3dl, | |
| csVosSector * | sect | |||
| ) | [virtual] |
Reimplemented in csMetaBillboard, csMetaClone, csMetaCone, csMetaCube, csMetaCylinder, csMetaModel, csMetaPolygonMesh, and csMetaSphere.
| void csMetaObject3D::setupCollider | ( | bool | coldet, | |
| double | gravity | |||
| ) |
| void csMetaObject3D::setupCollider | ( | ) |
| virtual bool csMetaObject3D::supportsPhysics | ( | ) | [virtual] |
- Returns:
- If true, applyForce/applyTorque will be fed into a physics engine and the object will have dynamic response. If false applyForce/applyTorque apply the change directly as a delta to the position/orientation property.
Reimplemented from A3DL::Object3D.
| virtual void csMetaObject3D::syncOrientation | ( | bool | setCollider | ) | [virtual] |
| virtual void csMetaObject3D::syncPosition | ( | bool | setCollider | ) | [virtual] |
| void csMetaObject3D::updateMaterial | ( | ) |
Member Data Documentation
bool csMetaObject3D::alreadyLoaded [protected] |
Definition at line 72 of file vosobject3d.hh.
csColliderActor csMetaObject3D::collider_actor [protected] |
Definition at line 78 of file vosobject3d.hh.
csRef<csVosObject3D> csMetaObject3D::csvobj3d [protected] |
Definition at line 73 of file vosobject3d.hh.
bool csMetaObject3D::htvalid [protected] |
Definition at line 77 of file vosobject3d.hh.
VUtil::vRef<csMetaMaterial> csMetaObject3D::metamaterial [protected] |
csRef<csVosSector> csMetaObject3D::sector [protected] |
Definition at line 75 of file vosobject3d.hh.
bool csMetaObject3D::setupCA [protected] |
Definition at line 79 of file vosobject3d.hh.
csRef<csVosA3DL> csMetaObject3D::vosa3dl [protected] |
bool csMetaObject3D::wasZero [protected] |
Definition at line 80 of file vosobject3d.hh.
The documentation for this class was generated from the following file:
- /home/tetron/hack/vos/libs/vos/csplugin/vosobject3d.hh