|
| cBaseObject (tUInt32 nId) |
| Constructor. More...
|
|
virtual | ~cBaseObject () |
| Destructor.
|
|
tUInt32 | GetId () |
| Returns the id of the object. More...
|
|
tResult | Update () |
| Base Implementation sets the updated property to true. More...
|
|
tBool | IsUpdated () |
| Returns whether or not this object has been updated since the last Reset call. More...
|
|
tResult | Reset () |
| Resets the updated property to false. More...
|
|
virtual tResult | SetHistory (tBool bEnabled, tUInt32 nCount=0) |
| Enables or disable the history trail of this object. More...
|
|
virtual tResult | SetMotionVector (tBool bEnabled) |
| Enables or disables the motion vector. More...
|
|
virtual tResult | SetPosition (tFloat64 fPosX, tFloat64 fPosY, tFloat64 fPosZ) |
| Sets the position of the object. More...
|
|
osg::Vec3d | GetPosition () |
| Returns the current position. More...
|
|
virtual tResult | SetRotation (tFloat64 fRotX, tFloat64 fRotY, tFloat64 fRotZ) |
| Sets the rotation (attitude) of the object. More...
|
|
osg::Vec3d | GetRotation () |
| Returns the current rotation. More...
|
|
virtual tResult | SetSize (tFloat64 fSizeX, tFloat64 fSizeY, tFloat64 fSizeZ) |
| Sets the dimensions of the object. More...
|
|
osg::Vec3d | GetSize () |
| Returns the current size. More...
|
|
virtual tResult | SetColor (tFloat64 fRed, tFloat64 fGreen, tFloat64 fBlue, tFloat64 fAlpha) |
| Sets the color of the object. More...
|
|
virtual tResult | SetMotion (tFloat64 fMotionX, tFloat64 fMotionY, tFloat64 fMotionZ) |
| Sets the motion vector of the object. More...
|
|
osg::Vec3d | GetMotion () |
| Returns the current motion vector. More...
|
|
virtual tResult | SetSelected (tBool bSelected) |
| Gives the object a chance to change its appearance when being selected or unselected. More...
|
|
virtual tBool | IsSelected () |
| Returns the selected property of the object. More...
|
|
|
tUInt32 | m_nId |
| internal Id
|
|
osg::ref_ptr< osg::PositionAttitudeTransform > | m_pTransform |
| The transform that applies the translation and rotation to the box.
|
|
osg::ref_ptr< osg::ShapeDrawable > | m_pDrawable |
| The drawable for the box.
|
|
osg::ref_ptr< osg::Box > | m_pBox |
| The box that represents the object.
|
|
osg::ref_ptr< osg::Geometry > | m_pHistoryGeom |
| Geometry object used for rendering the history trail.
|
|
osg::ref_ptr< osg::DrawArrays > | m_pHistoryArray |
| This will do the actual drawing of the history trail.
|
|
osg::ref_ptr< osg::Geometry > | m_pMotionGeom |
| Geometry object used for rendering the motion vector.
|
|
osg::ref_ptr< osg::DrawArrays > | m_pMotionArray |
| This will do the actual drawing of the motion vector.
|
|
osg::Vec3d | m_vPos |
| The current position of the object.
|
|
osg::ref_ptr< osg::Vec3Array > | m_pPositionHistory |
| This will store old positions for drawing the history trail.
|
|
tUInt32 | m_nHistorySize |
| The maximum amount of positions in the m_pPositionHistory array.
|
|
osg::ref_ptr< osg::Vec3Array > | m_pMotionVector |
| The start and end point of the motion vector.
|
|
osg::ref_ptr< osg::Vec4Array > | m_pColorArray |
| The color array used for drawing the history trail and the motion vector.
|
|
tBool | m_bHistory |
| Whether or not to show the history trail.
|
|
tBool | m_bMotionVector |
| Whether or not to show the motion vector.
|
|
tBool | m_bSelected |
| Whether or not this object is selected.
|
|
tBool | m_bUpdated |
| Whether or not this object has been updated.
|
|
std::unique_ptr< cImplementation > | m_pImplementation |
| D-Pointer implementation.
|
|
Base class for objects that can be managed with cBaseObjectScene.
If you want to extend its functionality subclass this class. You can create your own nodes and add them either with addChild at the root of this object or with m_pTransform->addChild at the transformation node which manages the shapes position and rotation.
You can find the implementation of this class in src/3dscenedisplay/mixinlib/baseobject.cpp
Definition at line 39 of file baseobject.h.