Radium Engine
1.5.0
|
An entity is an scene element. It ties together components with a transform. More...
#include <Engine/Scene/Entity.hpp>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | Entity (const std::string &name="") |
Entity (const Entity &entity)=delete | |
Entity & | operator= (const Entity &)=delete |
const std::string & | getName () const |
void | rename (const std::string &name) |
void | setTransform (const Core::Transform &transform) |
void | setTransform (const Core::Matrix4 &transform) |
const Core::Transform & | getTransform () const |
const Core::Matrix4 & | getTransformAsMatrix () const |
void | swapTransformBuffers () |
Core::Utils::Observable< const Entity * > & | transformationObservers () const |
get a ref to transformation observers to add/remove an observer | |
void | addComponent (Component *component) |
Add a component to the given entity. Component ownership is transfered to the entity. | |
void | removeComponent (const std::string &name) |
Deletes a component with a given name. | |
Component * | getComponent (const std::string &name) |
Get component with a given name. | |
const Component * | getComponent (const std::string &name) const |
const std::vector< std::unique_ptr< Component > > & | getComponents () const |
uint | getNumComponents () const |
Get component belonging to a given system. | |
virtual Core::Aabb | computeAabb () |
void | invalidateAabb () |
Public Member Functions inherited from Ra::Core::Utils::IndexedObject | |
IndexedObject (Index idx=Index::Invalid()) | |
CONSTRUCTOR. | |
IndexedObject (const IndexedObject &id_obj)=default | |
void | setIndex (const Index &idx) |
const Index & | getIndex () const |
Additional Inherited Members | |
Protected Attributes inherited from Ra::Core::Utils::IndexedObject | |
Index | m_idx |
VARIABLE. | |
An entity is an scene element. It ties together components with a transform.
Definition at line 22 of file Entity.hpp.