PeriDyno 1.2.1
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

LoadResult load (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)
 
void processModule (tinyxml2::XMLElement *moduleXml, std::shared_ptr< Pipeline > pipeline, std::vector< Module * > &modules)
 
bool ConstructPipeline (std::shared_ptr< Node > node, std::shared_ptr< Pipeline > pipeline, tinyxml2::XMLElement *nodeXML, std::vector< std::shared_ptr< Node > > nodes)
 
bool ConstructNodePipeline (std::shared_ptr< Node > node, tinyxml2::XMLElement *nodeXML, std::vector< std::shared_ptr< Node > > nodes)
 
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)
 
void NodeFieldInputConnection (FBase *fieldSrc, tinyxml2::XMLDocument &doc, std::map< ObjectId, uint > indices, std::shared_ptr< Node > node, uint ToIndex, tinyxml2::XMLElement *nodeConnectionsXml)
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from dyno::SceneLoader
using LoadResult = std::variant<std::shared_ptr<SceneGraph>, std::string>
 

Detailed Description

Definition at line 12 of file SceneLoaderXML.h.

Member Function Documentation

◆ canLoadFileByExtension()

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

Reimplemented from dyno::SceneLoader.

Definition at line 714 of file SceneLoaderXML.cpp.

◆ ConstructNodePipeline()

bool dyno::SceneLoaderXML::ConstructNodePipeline ( std::shared_ptr< Node > node,
tinyxml2::XMLElement * nodeXML,
std::vector< std::shared_ptr< Node > > nodes )
private

Definition at line 847 of file SceneLoaderXML.cpp.

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

◆ ConstructPipeline()

bool dyno::SceneLoaderXML::ConstructPipeline ( std::shared_ptr< Node > node,
std::shared_ptr< Pipeline > pipeline,
tinyxml2::XMLElement * nodeXML,
std::vector< std::shared_ptr< Node > > nodes )
private

Definition at line 855 of file SceneLoaderXML.cpp.

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

◆ decodeVec2f()

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

Definition at line 700 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 683 of file SceneLoaderXML.cpp.

Here is the caller graph for this function:

◆ encodeVec2f()

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

Definition at line 674 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 665 of file SceneLoaderXML.cpp.

Here is the caller graph for this function:

◆ load()

LoadResult dyno::SceneLoaderXML::load ( const std::string filename)
overridevirtual

Reimplemented from dyno::SceneLoader.

Definition at line 11 of file SceneLoaderXML.cpp.

Here is the call graph for this function:

◆ NodeFieldInputConnection()

void dyno::SceneLoaderXML::NodeFieldInputConnection ( FBase * fieldSrc,
tinyxml2::XMLDocument & doc,
std::map< ObjectId, uint > indices,
std::shared_ptr< Node > node,
uint ToIndex,
tinyxml2::XMLElement * nodeConnectionsXml )
private

Definition at line 721 of file SceneLoaderXML.cpp.

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

◆ processModule()

void dyno::SceneLoaderXML::processModule ( tinyxml2::XMLElement * moduleXml,
std::shared_ptr< Pipeline > pipeline,
std::vector< Module * > & modules )
private

Definition at line 927 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

Definition at line 566 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 130 of file SceneLoaderXML.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ mConnectionInfo

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

Definition at line 46 of file SceneLoaderXML.h.


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