![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
#include <MovableObject.hpp>


Public Member Functions | |
| C3D_API | MovableObject (castor::String const &name, Scene &scene, MovableType type, SceneNode &node) |
| Constructor. | |
| C3D_API | MovableObject (castor::String const &name, Scene &scene, MovableType type) |
| Constructor. | |
| virtual C3D_API | ~MovableObject () noexcept |
| Destructor. | |
| C3D_API void | detach () |
| Detaches the movable object from it's parent. | |
| virtual C3D_API void | attachTo (SceneNode &node) |
| Attaches the movable object to a node. | |
| C3D_API void | markDirty () |
| Adds the object to dirty object list in the scene. | |
| C3D_API EngineRPtr | getEngine () const noexcept |
| SceneNode * | getParent () const noexcept |
| MovableType | getMovableType () const noexcept |
Public Member Functions inherited from castor::OwnedBy< Scene > | |
| Scene * | getOwner () const noexcept |
| void | setOwner (Scene &owner) noexcept |
Public Member Functions inherited from castor::NamedBaseT< T > | |
| NamedBaseT (T name) noexcept | |
| Constructor. | |
| T const & | getName () const noexcept |
| Retrieves the name. | |
| void | rename (T name) noexcept |
Protected Attributes | |
| MovableType | m_type |
| SceneNode * | m_sceneNode {} |
| OnSceneNodeChangedConnection | m_notifyIndex |
| bool | m_dirty { true } |
Protected Attributes inherited from castor::NamedBaseT< T > | |
| T | m_name |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< Scene > | |
| OwnedBy (Scene &owner) noexcept | |
| Constructor. | |
| C3D_API castor3d::MovableObject::MovableObject | ( | castor::String const & | name, |
| Scene & | scene, | ||
| MovableType | type, | ||
| SceneNode & | node ) |
Constructor.
| [in] | name | The name |
| [in] | scene | The parent scene |
| [in] | node | Parent node |
| [in] | type | MovableObject type |
| C3D_API castor3d::MovableObject::MovableObject | ( | castor::String const & | name, |
| Scene & | scene, | ||
| MovableType | type ) |
Constructor.
| [in] | name | The name |
| [in] | scene | The parent scene |
| [in] | type | MovableObject type |
|
virtualnoexcept |
Destructor.
Attaches the movable object to a node.
Reimplemented in castor3d::BillboardList.
| C3D_API void castor3d::MovableObject::detach | ( | ) |
Detaches the movable object from it's parent.
|
noexcept |
name Getters.
|
inlinenoexcept |
References m_type.
|
inlinenoexcept |
References m_sceneNode.
| C3D_API void castor3d::MovableObject::markDirty | ( | ) |
Adds the object to dirty object list in the scene.
Referenced by castor3d::Camera::resize(), castor3d::Light::setEnabled(), castor3d::Light::setGlobalIlluminationType(), castor3d::Light::setShadowConfig(), castor3d::Camera::setView(), and castor3d::Camera::setViewportType().

|
protected |
The object "to update" status.
|
protected |
The node change notification index.
|
protected |
The parent scene node.
Referenced by getParent().
|
protected |
Movable object type.
Referenced by getMovableType().