0.44.0
|
#include <ompfMaterialReferenceChunk.h>
Inherits OMPF::ompfBaseChunk.
Public Member Functions | |
ompfMaterialReferenceChunk () | |
~ompfMaterialReferenceChunk ()=default | |
uint32 | getSize (const ompfSettings &settings) override |
void | setReference (const iaString &reference) |
iaString | getReference () const |
Public Member Functions inherited from OMPF::ompfBaseChunk | |
ompfBaseChunk (OMPFChunkType typeID) | |
virtual | ~ompfBaseChunk ()=default |
virtual bool | write (std::ofstream &stream, const ompfSettings &settings) |
virtual bool | read (std::ifstream &stream, ompfSettings &settings) |
void | insertChunk (ompfBaseChunk *chunk) |
void | removeChunk (ompfBaseChunk *chunk) |
bool | hasParent () const |
uint32 | getParentID () const |
void | setParentID (const uint32 parentID) |
bool | hasChildren () const |
const std::vector< ompfBaseChunk * > & | getChildren () const |
void | setID (const uint32 chunkID) |
uint32 | getID () const |
virtual uint32 | getSize (const ompfSettings &settings) |
OMPFChunkType | getType () const |
void | setName (const iaString &name) |
iaString | getName () const |
Friends | |
class | OMPF |
chunk that contains an external reference to a material file
OMPF::ompfMaterialReferenceChunk::ompfMaterialReferenceChunk | ( | ) |
does nothing
|
default |
does nothing
iaString OMPF::ompfMaterialReferenceChunk::getReference | ( | ) | const |
|
overridevirtual |
settings | the settings the chunk's size depends on |
Reimplemented from OMPF::ompfBaseChunk.
void OMPF::ompfMaterialReferenceChunk::setReference | ( | const iaString & | reference | ) |
sets reference name. resource id, filename or alias
reference | the file name |
|
friend |