PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::SceneLoaderXML Class Reference

#include <SceneLoaderXML.h>

Inheritance diagram for dyno::SceneLoaderXML:
Collaboration diagram for dyno::SceneLoaderXML:

Classes

struct  ConnectionInfo
 

Public Member Functions

std::shared_ptr< SceneGraphload (const std::string filename) override
 
bool save (std::shared_ptr< SceneGraph > scn, const std::string filename) override
 
- Public Member Functions inherited from dyno::SceneLoader
virtual bool canLoadFileByName (const std::string filename)
 

Private Member Functions

std::shared_ptr< NodeprocessNode (tinyxml2::XMLElement *nodeXML)
 
std::shared_ptr< ModuleprocessModule (tinyxml2::XMLElement *moduleXML)
 
bool addModule (std::shared_ptr< Node > node, std::shared_ptr< Module > module)
 
std::vector< std::string > split (std::string str, std::string pattern)
 
std::string encodeVec3f (const Vec3f v)
 
Vec3f decodeVec3f (const std::string str)
 
std::string encodeVec2f (const Vec2f v)
 
Vec2f decodeVec2f (const std::string str)
 
virtual bool canLoadFileByExtension (const std::string extension)
 

Private Attributes

std::vector< std::vector< ConnectionInfo > > mConnectionInfo
 

Detailed Description

Definition at line 8 of file SceneLoaderXML.h.

Member Function Documentation

◆ addModule()

bool dyno::SceneLoaderXML::addModule ( std::shared_ptr< Node > node,
std::shared_ptr< Module > module )
private

Definition at line 583 of file SceneLoaderXML.cpp.

◆ canLoadFileByExtension()

bool dyno::SceneLoaderXML::canLoadFileByExtension ( const std::string extension)
privatevirtual

Reimplemented from dyno::SceneLoader.

Definition at line 662 of file SceneLoaderXML.cpp.

◆ decodeVec2f()

Vec2f dyno::SceneLoaderXML::decodeVec2f ( const std::string str)
private

Definition at line 648 of file SceneLoaderXML.cpp.

Here is the caller graph for this function:

◆ decodeVec3f()

Vec3f dyno::SceneLoaderXML::decodeVec3f ( const std::string str)
private

Definition at line 631 of file SceneLoaderXML.cpp.

◆ encodeVec2f()

std::string dyno::SceneLoaderXML::encodeVec2f ( const Vec2f v)
private

Definition at line 622 of file SceneLoaderXML.cpp.

Here is the caller graph for this function:

◆ encodeVec3f()

std::string dyno::SceneLoaderXML::encodeVec3f ( const Vec3f v)
private

Definition at line 613 of file SceneLoaderXML.cpp.

Here is the caller graph for this function:

◆ load()

std::shared_ptr< SceneGraph > dyno::SceneLoaderXML::load ( const std::string filename)
overridevirtual

Reimplemented from dyno::SceneLoader.

Definition at line 9 of file SceneLoaderXML.cpp.

Here is the call graph for this function:

◆ processModule()

std::shared_ptr< Module > dyno::SceneLoaderXML::processModule ( tinyxml2::XMLElement * moduleXML)
private

Definition at line 566 of file SceneLoaderXML.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ processNode()

std::shared_ptr< Node > dyno::SceneLoaderXML::processNode ( tinyxml2::XMLElement * nodeXML)
private

Construct the node connections

Construct the animation pipeline

Construct the graphics pipeline

Definition at line 363 of file SceneLoaderXML.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ save()

bool dyno::SceneLoaderXML::save ( std::shared_ptr< SceneGraph > scn,
const std::string filename )
overridevirtual

Reimplemented from dyno::SceneLoader.

Definition at line 68 of file SceneLoaderXML.cpp.

Here is the call graph for this function:

◆ split()

std::vector< std::string > dyno::SceneLoaderXML::split ( std::string str,
std::string pattern )
private

Definition at line 593 of file SceneLoaderXML.cpp.

Member Data Documentation

◆ mConnectionInfo

std::vector<std::vector<ConnectionInfo> > dyno::SceneLoaderXML::mConnectionInfo
private

Definition at line 38 of file SceneLoaderXML.h.


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