0.44.0
|
#include <ompf.h>
Public Member Functions | |
OMPF () | |
~OMPF () | |
void | reset () |
void | saveFile (iaString filename) |
void | loadFile (iaString filename) |
ompfHeaderChunk * | getRoot () |
ompfGroupChunk * | createGroupChunk () |
ompfTransformChunk * | createTransformChunk () |
ompfMaterialReferenceChunk * | createMaterialReferenceChunk () |
ompfMeshChunk * | createMeshChunk () |
ompfEmitterChunk * | createEmitterChunk () |
ompfParticleSystemChunk * | createParticleSystemChunk () |
ompfExternalReferenceChunk * | createExternalReferenceChunk () |
const std::vector< ompfMaterialReferenceChunk * > & | getMaterialReferenceChunks () const |
const iaString & | getFileDirectory () const |
this is the OMPF file format reference implementation
OMPF::OMPF::OMPF | ( | ) |
initializes member variables
OMPF::OMPF::~OMPF | ( | ) |
clears all referenced data
ompfEmitterChunk * OMPF::OMPF::createEmitterChunk | ( | ) |
creates a emitter chunk
ompfExternalReferenceChunk * OMPF::OMPF::createExternalReferenceChunk | ( | ) |
creates a external reference chunk
ompfGroupChunk * OMPF::OMPF::createGroupChunk | ( | ) |
creates a group chunk
ompfMaterialReferenceChunk * OMPF::OMPF::createMaterialReferenceChunk | ( | ) |
creates a material reference chunk
ompfMeshChunk * OMPF::OMPF::createMeshChunk | ( | ) |
creates a mesh chunk
ompfParticleSystemChunk * OMPF::OMPF::createParticleSystemChunk | ( | ) |
creates particle system chunk
ompfTransformChunk * OMPF::OMPF::createTransformChunk | ( | ) |
creates a transform chunk
const iaString & OMPF::OMPF::getFileDirectory | ( | ) | const |
e.g. if the file path is c:\foo\bar.ompf then the return value will be c:\foo
the return string can be empty if load or save is not in process yet
const std::vector< ompfMaterialReferenceChunk * > & OMPF::OMPF::getMaterialReferenceChunks | ( | ) | const |
ompfHeaderChunk * OMPF::OMPF::getRoot | ( | ) |
is never zero
void OMPF::OMPF::loadFile | ( | iaString | filename | ) |
load data from file
filename | the source file name |
void OMPF::OMPF::reset | ( | ) |
reinitializes member variables
void OMPF::OMPF::saveFile | ( | iaString | filename | ) |
export data in to file
filename | the destination file name |