Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::SceneComponent Class Reference

Parent class of components that can be bound to a scene::Manager. More...

#include <OxygenEngine/scene/component/scene.h>

Inheritance diagram for oe::scene::SceneComponent:
[legend]
Collaboration diagram for oe::scene::SceneComponent:
[legend]

Public Member Functions

 SceneComponent (Manager &entity)
 Constructor.
 
ManagergetSceneManager ()
 Get Scene bound to this component.
 
const ManagergetSceneManager () const
 Get Scene bound to this component.
 
virtual void onNodeAdd (Node &)
 Run actions after a node is added.
 
virtual void onNodeRemove (Node &)
 Run actions before a node is removed.
 
- Public Member Functions inherited from oe::component::EntityComponent< Manager >
const std::string & getName () const
 
- Public Member Functions inherited from oe::component::Component
virtual void onUpdate (const double, const int8_t=0)
 Run actions on entity update.
 

Additional Inherited Members

- Public Attributes inherited from oe::component::Component
bool is_active = true
 Toggle to check if the Component is active, actual meaning heavily depends of the component type.
 
- Protected Member Functions inherited from oe::component::EntityComponent< Manager >
 EntityComponent (Manager &entity)
 
- Protected Attributes inherited from oe::component::EntityComponent< Manager >
Manager & _entity
 

Detailed Description

Parent class of components that can be bound to a scene::Manager.

Constructor & Destructor Documentation

◆ SceneComponent()

oe::scene::SceneComponent::SceneComponent ( Manager entity)
inline

Constructor.

Parameters
entityManager bound to this component

Member Function Documentation

◆ onNodeAdd()

virtual void oe::scene::SceneComponent::onNodeAdd ( Node )
inlinevirtual

Run actions after a node is added.

Parameters
nodeThe created node
Note
When this function is called, the node is created and added into the scene

◆ onNodeRemove()

virtual void oe::scene::SceneComponent::onNodeRemove ( Node )
inlinevirtual

Run actions before a node is removed.

Parameters
nodeThe node that will be removed
Note
When this function is called, the node is still in the scene

Reimplemented in oe::component::scene::Debug.


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