Movable object class.
More...
Movable object class.
- Author
- Sylvain DOREMUS
- Version
- 0.1
- Date
- 09/02/2010
◆ MovableObject()
C3D_API Castor3D::MovableObject::MovableObject |
( |
Castor::String const & |
p_name, |
|
|
Scene & |
p_scene, |
|
|
eMOVABLE_TYPE |
p_type, |
|
|
SceneNodeSPtr |
p_sn |
|
) |
| |
Constructor.
- Parameters
-
[in] | p_name | The name |
[in] | p_scene | The parent scene |
[in] | p_sn | Parent node |
[in] | p_type | MovableObject type |
◆ ~MovableObject()
virtual C3D_API Castor3D::MovableObject::~MovableObject |
( |
| ) |
|
|
virtual |
◆ AttachTo()
virtual C3D_API void Castor3D::MovableObject::AttachTo |
( |
SceneNodeSPtr |
p_node | ) |
|
|
virtual |
◆ Detach()
C3D_API void Castor3D::MovableObject::Detach |
( |
| ) |
|
Detaches the movable object from it's parent.
◆ GetName()
Castor::String const& Castor3D::MovableObject::GetName |
( |
| ) |
const |
|
inline |
Retrieves the object name.
- Returns
- The value
References m_name.
◆ GetParent()
SceneNodeSPtr Castor3D::MovableObject::GetParent |
( |
| ) |
const |
|
inline |
Retrieves the parent node.
- Returns
- The value
References m_pSceneNode.
◆ GetType()
Retrieves the object type.
- Returns
- The value
References m_type.
◆ SetName()
void Castor3D::MovableObject::SetName |
( |
Castor::String const & |
p_name | ) |
|
|
inline |
Sets the object name.
- Parameters
-
References m_name.
◆ m_name
Castor::String Castor3D::MovableObject::m_name |
|
protected |
◆ m_notifyIndex
uint32_t Castor3D::MovableObject::m_notifyIndex = 0 |
|
protected |
The node change notification index.
◆ m_pSceneNode
SceneNodeWPtr Castor3D::MovableObject::m_pSceneNode |
|
protected |
◆ m_strNodeName
Castor::String Castor3D::MovableObject::m_strNodeName |
|
protected |
◆ m_type
Movable object type.
Referenced by GetType().
The documentation for this class was generated from the following file: