igor::iModelDataIO Class Reference

#include <iModelDataIO.h>

Inherited by igor::iModelDataIOOBJ, igor::iModelDataIOOMPF, and igor::iVoxelTerrainMeshGenerator.

Public Member Functions

const iaStringgetName ()
 
const iaStringgetIdentifier ()
 
virtual iNodePtr importData (const iParameters &parameters)
 
virtual void exportData (const iParameters &parameters)
 
iNodePtr importData (const iaString &filename)
 
void exportData (const iaString &filename, iNodePtr node, iSaveMode saveMode=iSaveMode::KeepExternals)
 
 iModelDataIO ()=default
 
virtual ~iModelDataIO ()=default
 

Protected Attributes

iaString _name
 
iaString _identifier
 

Detailed Description

pure abstract interface for node tree loaders

Constructor & Destructor Documentation

◆ iModelDataIO()

igor::iModelDataIO::iModelDataIO ( )
default

does nothing

◆ ~iModelDataIO()

virtual igor::iModelDataIO::~iModelDataIO ( )
virtualdefault

does nothing

Member Function Documentation

◆ exportData() [1/2]

void igor::iModelDataIO::exportData ( const iaString filename,
iNodePtr  node,
iSaveMode  saveMode = iSaveMode::KeepExternals 
)

specialized version of exportData

Parameters
filenamethe output file name
nodethe source node to export
saveModehow to handle external references during export

◆ exportData() [2/2]

void igor::iModelDataIO::exportData ( const iParameters parameters)
virtual

save node and underlying tree to filesystem

Parameters
parametersexport parameters

Reimplemented in igor::iModelDataIOOMPF.

◆ getIdentifier()

const iaString & igor::iModelDataIO::getIdentifier ( )
Returns
identifier or file extension

◆ getName()

const iaString & igor::iModelDataIO::getName ( )
Returns
name of loader

◆ importData() [1/2]

iNodePtr igor::iModelDataIO::importData ( const iaString filename)

specialized version of importData

Parameters
filenamethe filename to load

◆ importData() [2/2]

iNodePtr igor::iModelDataIO::importData ( const iParameters parameters)
virtual

loads or generates data based on given parameters

Parameters
parameterskey values pairs determine what to load or generate

Reimplemented in igor::iModelDataIOOBJ, igor::iModelDataIOOMPF, and igor::iVoxelTerrainMeshGenerator.

Member Data Documentation

◆ _identifier

iaString igor::iModelDataIO::_identifier
protected

data identifier or file extension

◆ _name

iaString igor::iModelDataIO::_name
protected

name of loader


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