igor::iModelFactory Class Reference

#include <iModelFactory.h>

Inherits igor::iFactory.

Public Member Functions

 iModelFactory ()
 
- Public Member Functions inherited from igor::iFactory
 iFactory (const iaString &type, const std::vector< iaString > &supportedExtensions)
 
virtual ~iFactory ()=default
 
const iaStringgetType () const
 
const std::vector< iaString > & getSupportedExtensions () const
 

Static Public Member Functions

static void registerModelDataIO (const iaString &identifier, iCreateModelDataIOInstance functionPointer)
 
static void unregisterModelDataIO (const iaString &identifier)
 
static void exportToFile (const iaString &filename, iNodePtr node, iSaveMode saveMode=iSaveMode::KeepExternals, const iaString &formatIdentifier="")
 

Friends

class iResourceManager
 

Additional Inherited Members

- Protected Member Functions inherited from igor::iFactory
virtual iaString getHashData (const iParameters &parameters) const
 
virtual iResourcePtr createResource (const iParameters &parameters)=0
 
virtual iResourcePtr createResource ()
 
virtual bool loadResource (iResourcePtr resource)=0
 
virtual void unloadResource (iResourcePtr resource)=0
 
virtual bool saveResource (iResourcePtr resource, const iaString &filename="")
 
virtual void init ()
 
virtual void deinit ()
 
- Protected Attributes inherited from igor::iFactory
iaString _type
 
std::vector< iaString_supportedExtensions
 

Detailed Description

this factory creates model resources

Constructor & Destructor Documentation

◆ iModelFactory()

igor::iModelFactory::iModelFactory ( )

init members

Member Function Documentation

◆ exportToFile()

void igor::iModelFactory::exportToFile ( const iaString filename,
iNodePtr  node,
iSaveMode  saveMode = iSaveMode::KeepExternals,
const iaString formatIdentifier = "" 
)
static

export node graph to file

Parameters
filenamethe file to export to
nodethe root node of the node graph to export
saveModethe mode to handle external references
formatIdentifiername of type to export with (if not specified the file extension will be used)

◆ registerModelDataIO()

void igor::iModelFactory::registerModelDataIO ( const iaString identifier,
iCreateModelDataIOInstance  functionPointer 
)
static

registers generator

Parameters
generatorgenerator to register

◆ unregisterModelDataIO()

void igor::iModelFactory::unregisterModelDataIO ( const iaString identifier)
static

unregisters generator

Parameters
generatorgenerator to unregister

Friends And Related Function Documentation

◆ iResourceManager

friend class iResourceManager
friend

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