ege::ElementBase Class Reference
Inheritance diagram for ege::ElementBase:
Public Member Functions | |
ElementBase (const ememory::SharedPtr< ege::Environement > &_env) | |
virtual | ~ElementBase () |
virtual const std::string & | getType () const |
virtual void | draw (int32_t _pass=0) |
virtual const vec3 & | getPosition () |
virtual void | setPosition (const vec3 &_pos) |
Public Member Functions inherited from ege::Element | |
Element (const ememory::SharedPtr< ege::Environement > &_env) | |
virtual | ~Element () |
virtual bool | init () |
virtual bool | initString (const std::string &_description) |
virtual bool | initXML (const exml::Node &_node) |
virtual bool | initJSON (const ejson::Value &_value) |
virtual bool | initVoid (void *_value) |
virtual bool | unInit () |
uint32_t | getUID () const |
virtual bool | loadMesh (const std::string &_meshFileName) |
virtual bool | setMesh (ememory::SharedPtr< ege::resource::Mesh > _mesh) |
ememory::SharedPtr< ege::resource::Mesh > | getMesh () |
float | getLifeRatio () |
bool | isDead () |
virtual bool | needToRemove () |
virtual void | setFireOn (int32_t _groupIdSource, int32_t _type, float _power, const vec3 &_center=vec3(0, 0, 0)) |
virtual void | onLifeChange () |
int32_t | getGroup () const |
void | setGroup (int32_t _newGroup) |
virtual void | preCalculationDraw (const ege::Camera &_camera) |
virtual void | drawLife (ememory::SharedPtr< ewol::resource::Colored3DObject > _draw, ememory::SharedPtr< ege::Camera > _camera) |
virtual void | drawDebug (ememory::SharedPtr< ewol::resource::Colored3DObject > _draw, ememory::SharedPtr< ege::Camera > _camera) |
virtual vec3 | getPositionTheoric () |
virtual void | elementIsRemoved (ememory::SharedPtr< ege::Element > _removedElement) |
bool | isFixed () |
float | getRadius () |
virtual void | onDestroy () |
virtual void | dynamicEnable () |
virtual void | dynamicDisable () |
Public Member Functions inherited from ememory::EnableSharedFromThis< Element > | |
ememory::SharedPtr< EMEMORY_TYPE > | sharedFromThis () |
const ememory::SharedPtr< EMEMORY_TYPE > | sharedFromThis () const |
ememory::WeakPtr< EMEMORY_TYPE > | weakFromThis () |
const ememory::WeakPtr< EMEMORY_TYPE > | weakFromThis () const |
Additional Inherited Members | |
Protected Attributes inherited from ege::Element | |
ememory::SharedPtr< ege::Environement > | m_env |
ememory::SharedPtr< ege::resource::Mesh > | m_mesh |
float | m_life |
float | m_lifeMax |
int32_t | m_group |
ewol::compositing::Text | m_debugText |
bool | m_fixe |
float | m_radius |
Constructor & Destructor Documentation
§ ElementBase()
ege::ElementBase::ElementBase | ( | const ememory::SharedPtr< ege::Environement > & | _env | ) |
Constructor (when constructer is called just add element that did not change. The objest will be stored in a pool of element and keep a second time if needed == > redure memory allocation, when needed, the system will call the init and un-init function...
§ ~ElementBase()
|
virtual |
Destructor.
Member Function Documentation
§ draw()
|
virtual |
draw the curent element (can have multiple display)
- Parameters
-
[in] pass Id of the current pass : [0..?]
Implements ege::Element.
§ getPosition()
|
virtual |
§ getType()
|
virtual |
get the element Type description string.
- Returns
- A reference on the descriptive string.
Reimplemented from ege::Element.
§ setPosition()
|
virtual |
set the current position of the element
- Parameters
-
[in] _pos set the 3D position.
Reimplemented from ege::Element.
The documentation for this class was generated from the following file:
- framework/atria-soft/ege/ege/elements/ElementBase.hpp