Ocular Engine
|
Public Member Functions | |
virtual void | onLoad (BuilderNode const *node) override |
virtual void | onSave (BuilderNode *node) const override |
![]() | |
void | getAllExposedNames (std::vector< std::string > &names) const |
bool | getVariable (std::string const &name, ExposedVariable &var) |
template<typename T > | |
bool | getVariableValue (std::string const &name, T &var) |
template<typename T > | |
bool | setVariableValue (std::string const &name, T const &value) |
virtual void | onVariableModified (std::string const &varName) |
Additional Inherited Members | |
![]() | |
void | exposeVariable (std::string const &name, std::string const &type, bool isPointer, bool isExposed, void *data) |
![]() | |
std::unordered_map< std::string, ExposedVariable > | m_ExposedVariables |
|
overridevirtual |
Alternate creation method (opposed to the constructor) in which one is provided with a BuilderNode chain. This chain may be explored to retrieve any relevant variables, and their values, that may have been stored in it.
This method will typically mirror the onSave, in which relevant values are stored within the chain.
[in] | node | Node to extract variable information from |
Reimplemented from Ocular::Core::Buildable.
Reimplemented in Ocular::Core::SceneObject, Ocular::Math::Transform, Ocular::Core::MeshRenderable, Ocular::Graphics::Material, Ocular::Graphics::MaterialEmpty, Ocular::Graphics::MaterialMissing, and Ocular::Core::LightSource.
|
overridevirtual |
Method used to add an object's data to an existing node chain in preparation for being save to a file.
[in] | node | Node to place variable information in |
Reimplemented from Ocular::Core::Buildable.
Reimplemented in Ocular::Core::SceneObject, Ocular::Core::MeshRenderable, Ocular::Graphics::Material, Ocular::Graphics::MaterialEmpty, and Ocular::Graphics::MaterialMissing.