Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Engine::Scene::SystemEntity Class Reference

#include <Engine/Scene/SystemDisplay.hpp>

+ Inheritance diagram for Ra::Engine::Scene::SystemEntity:
+ Collaboration diagram for Ra::Engine::Scene::SystemEntity:

Static Public Member Functions

static DebugComponentdbgCmp ()
 Access the debug component.
 
static UiComponentuiCmp ()
 Access the UI Component.
 

Additional Inherited Members

- Public Member Functions inherited from Ra::Engine::Scene::Entity
 Entity (const std::string &name="")
 
 Entity (const Entity &entity)=delete
 
Entityoperator= (const Entity &)=delete
 
const std::stringgetName () 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.
 
ComponentgetComponent (const std::string &name)
 Get component with a given name.
 
const ComponentgetComponent (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
 
- Protected Attributes inherited from Ra::Core::Utils::IndexedObject
Index m_idx
 VARIABLE.
 

Detailed Description

This entity allows to add UI and debug drawables from everywhere in the code. It should have only one component and its transform should not change.

Definition at line 53 of file SystemDisplay.hpp.

Constructor & Destructor Documentation

◆ SystemEntity()

Ra::Engine::Scene::SystemEntity::SystemEntity ( )

Definition at line 7 of file SystemDisplay.cpp.

Member Function Documentation

◆ dbgCmp()

DebugComponent * Ra::Engine::Scene::SystemEntity::dbgCmp ( )
static

Access the debug component.

Definition at line 24 of file SystemDisplay.cpp.

+ Here is the call graph for this function:

◆ uiCmp()

UiComponent * Ra::Engine::Scene::SystemEntity::uiCmp ( )
static

Access the UI Component.

Definition at line 16 of file SystemDisplay.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: