Castor3D 0.16.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 |
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 |
Protected Attributes inherited from castor::NamedBaseT< T > | |
T | m_name |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< Scene > | |
OwnedBy (Scene &owner) | |
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::setGlobalIlluminationType(), castor3d::Light::setShadowConfig(), castor3d::Camera::setView(), and castor3d::Camera::setViewportType().
|
protected |
The node change notification index.
|
protected |
The parent scene node.
Referenced by getParent().
|
protected |
Movable object type.
Referenced by getMovableType().