SOFA API  99934cbc
Open source framework for multi-physics simuation
sofa::simulation::SceneLoaderFactory Class Reference

#include <SceneLoaderFactory.h>

Protected Attributes

SceneLoaderList registry
 Main class registry. More...
 

Public Member Functions

SceneLoadergetEntryFileExtension (std::string extension)
 Get an entry given a file extension. More...
 
SceneLoadergetEntryFileName (std::string filename)
 Get an entry given a file name. More...
 
SceneLoadergetExporterEntryFileExtension (std::string extension)
 Get an exporter entry given a file extension. More...
 
SceneLoadergetExporterEntryFileName (std::string filename)
 Get an exporter entry given a file name. More...
 
SceneLoaderaddEntry (SceneLoader *loader)
 Add a scene loader. More...
 
SceneLoaderListgetEntries ()
 Get the list of loaders. More...
 
std::vector< std::string > extensions ()
 This function resturns a real object but it is RVO optimized. More...
 

Static Public Member Functions

static SceneLoaderFactorygetInstance ()
 Get the ObjectFactory singleton instance. More...
 

Attribute details

SceneLoaderList sofa::simulation::SceneLoaderFactory::registry
protected

Main class registry.

Function details

SceneLoader * sofa::simulation::SceneLoaderFactory::addEntry ( SceneLoader loader)

Add a scene loader.

std::vector< std::string > sofa::simulation::SceneLoaderFactory::extensions ( )

This function resturns a real object but it is RVO optimized.

Get the list of supported extension. It returns a vector of string but it is RVO optimized so the overhead is reduced.

SceneLoaderList* sofa::simulation::SceneLoaderFactory::getEntries ( )
inline

Get the list of loaders.

SceneLoader * sofa::simulation::SceneLoaderFactory::getEntryFileExtension ( std::string  extension)

Get an entry given a file extension.

SceneLoader * sofa::simulation::SceneLoaderFactory::getEntryFileName ( std::string  filename)

Get an entry given a file name.

Get an entry given a file extension.

SceneLoader * sofa::simulation::SceneLoaderFactory::getExporterEntryFileExtension ( std::string  extension)

Get an exporter entry given a file extension.

SceneLoader * sofa::simulation::SceneLoaderFactory::getExporterEntryFileName ( std::string  filename)

Get an exporter entry given a file name.

SceneLoaderFactory * sofa::simulation::SceneLoaderFactory::getInstance ( )
static

Get the ObjectFactory singleton instance.