Description
Typedefs
typedef std::function< bool( ImportContext &ctxt, const std::string &type, const DescriptionMap &description, GroupNode *parent)> | NodeImport_Fn_t |
typedef std::function< bool( ImportContext &ctxt, const std::string &type, const DescriptionMap &description, Node *parent)> | StateImport_Fn_t |
typedef std::function< bool( ImportContext &ctxt, const std::string &type, const DescriptionMap &description, Node *parent)> | BehaviourImport_Fn_t |
typedef std::function< bool( ImportContext &ctxt, const std::string &type, const DescriptionMap &description)> | AdditionalDataImport_Fn_t |
Functions
std::deque< const DescriptionMap * > | filterElements(const std::string & type, const DescriptionArray * subDescriptions) |
void | finalizeNode( ImportContext & ctxt, Node * node, const DescriptionMap & d) |
void | finalizeState( ImportContext & ctxt, State * state, const DescriptionMap & d) |
Geometry::SRT | getSRT(const DescriptionMap & d) |
void | addAttributes( ImportContext & ctxt, const DescriptionArray * subDescriptions, Util::AttributeProvider * attrProvider) |
void | registerNodeImporter( NodeImport_Fn_t void) |
void | registerStateImporter( StateImport_Fn_t void) |
void | registerBehaviourImporter( BehaviourImport_Fn_t void) |
void | registerAdditionalDataImporter( AdditionalDataImport_Fn_t void) |
MeshImportHandler * | getMeshImportHandler() |
void | setMeshImportHandler(std::unique_ptr< MeshImportHandler > handler) |
void | buildSceneFromDescription( ImportContext & importContext, const DescriptionMap * d) |
Documentation
typedef
MinSG::SceneManagement::ImporterTools::NodeImport_Fn_t
public |
typedef std::function< bool( ImportContext &ctxt, const std::string &type, const DescriptionMap &description, GroupNode *parent)> NodeImport_Fn_t |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:58
typedef
MinSG::SceneManagement::ImporterTools::StateImport_Fn_t
public |
typedef std::function< bool( ImportContext &ctxt, const std::string &type, const DescriptionMap &description, Node *parent)> StateImport_Fn_t |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:59
typedef
MinSG::SceneManagement::ImporterTools::BehaviourImport_Fn_t
public |
typedef std::function< bool( ImportContext &ctxt, const std::string &type, const DescriptionMap &description, Node *parent)> BehaviourImport_Fn_t |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:60
typedef
MinSG::SceneManagement::ImporterTools::AdditionalDataImport_Fn_t
public |
typedef std::function< bool( ImportContext &ctxt, const std::string &type, const DescriptionMap &description)> AdditionalDataImport_Fn_t |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:61
function
MinSG::SceneManagement::ImporterTools::filterElements
public |
std::deque< const DescriptionMap * > filterElements( | const std::string & | type, |
const DescriptionArray * | subDescriptions | |
) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:36
function
MinSG::SceneManagement::ImporterTools::finalizeNode
public |
void finalizeNode( | ImportContext & | ctxt, |
Node * | node, | |
const DescriptionMap & | d | |
) |
Helper function that adds standard data to a node.
-
register named nodes
-
set transformation
-
add attributes
-
add states
-
add behaviours
-
add children (if node is a group node)
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:46
function
MinSG::SceneManagement::ImporterTools::finalizeState
public |
void finalizeState( | ImportContext & | ctxt, |
State * | state, | |
const DescriptionMap & | d | |
) |
Helper function that adds standard data to state.
-
register named state
-
add attributes more to come…
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:52
function
MinSG::SceneManagement::ImporterTools::getSRT
public |
Geometry::SRT getSRT( | const DescriptionMap & | d ) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:54
function
MinSG::SceneManagement::ImporterTools::addAttributes
public |
void addAttributes( | ImportContext & | ctxt, |
const DescriptionArray * | subDescriptions, | |
Util::AttributeProvider * | attrProvider | |
) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:56
function
MinSG::SceneManagement::ImporterTools::registerNodeImporter
public |
void registerNodeImporter( | NodeImport_Fn_t | void ) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:63
function
MinSG::SceneManagement::ImporterTools::registerStateImporter
public |
void registerStateImporter( | StateImport_Fn_t | void ) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:64
function
MinSG::SceneManagement::ImporterTools::registerBehaviourImporter
public |
void registerBehaviourImporter( | BehaviourImport_Fn_t | void ) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:65
function
MinSG::SceneManagement::ImporterTools::registerAdditionalDataImporter
public |
void registerAdditionalDataImporter( | AdditionalDataImport_Fn_t | void ) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:66
function
MinSG::SceneManagement::ImporterTools::getMeshImportHandler
public |
MeshImportHandler * getMeshImportHandler( | ) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:68
function
MinSG::SceneManagement::ImporterTools::setMeshImportHandler
public |
void setMeshImportHandler( | std::unique_ptr< MeshImportHandler > | handler ) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:69
function
MinSG::SceneManagement::ImporterTools::buildSceneFromDescription
public |
void buildSceneFromDescription( | ImportContext & | importContext, |
const DescriptionMap * | d | |
) |
Defined in MinSG/SceneManagement/Importer/ImporterTools.h:71