Ocular Engine
Ocular::Core::ObjectIO Class Reference
Inheritance diagram for Ocular::Core::ObjectIO:
Ocular::Core::Exposable Ocular::Core::Buildable Ocular::Core::Object Ocular::Graphics::Material Ocular::Math::Transform Ocular::Core::AEvent Ocular::Core::ARenderable Ocular::Core::ARoutine Ocular::Core::AWindow Ocular::Core::SceneObject Ocular::Graphics::D3D11Material Ocular::Graphics::MaterialEmpty Ocular::Graphics::MaterialMissing

Public Member Functions

virtual void onLoad (BuilderNode const *node) override
virtual void onSave (BuilderNode *node) const override
- Public Member Functions inherited from Ocular::Core::Exposable
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

- Protected Member Functions inherited from Ocular::Core::Exposable
void exposeVariable (std::string const &name, std::string const &type, bool isPointer, bool isExposed, void *data)
- Protected Attributes inherited from Ocular::Core::Exposable
std::unordered_map< std::string, ExposedVariablem_ExposedVariables

Member Function Documentation

void Ocular::Core::ObjectIO::onLoad ( BuilderNode const *  node)

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]nodeNode 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.

void Ocular::Core::ObjectIO::onSave ( BuilderNode node) const

Method used to add an object's data to an existing node chain in preparation for being save to a file.

[in]nodeNode 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.

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