#include <ompfBaseChunk.h>
Inherited by OMPF::ompfEmitterChunk, OMPF::ompfExternalReferenceChunk, OMPF::ompfGroupChunk, OMPF::ompfHeaderChunk, OMPF::ompfMaterialReferenceChunk, OMPF::ompfMeshChunk, OMPF::ompfParticleSystemChunk, OMPF::ompfResourceSearchPathChunk, and OMPF::ompfTransformChunk.
ompf base chunk. all chunks have to derive from this class
◆ ompfBaseChunk()
◆ ~ompfBaseChunk()
virtual OMPF::ompfBaseChunk::~ompfBaseChunk |
( |
| ) |
|
|
virtualdefault |
◆ getChildren()
const std::vector< ompfBaseChunk * > & OMPF::ompfBaseChunk::getChildren |
( |
| ) |
const |
◆ getID()
uint32 OMPF::ompfBaseChunk::getID |
( |
| ) |
const |
◆ getName()
iaString OMPF::ompfBaseChunk::getName |
( |
| ) |
const |
◆ getParentID()
uint32 OMPF::ompfBaseChunk::getParentID |
( |
| ) |
const |
- Returns
- parent chunk id. returns INVALID_CHUNK_ID if there is no parent
◆ getSize()
◆ getType()
◆ hasChildren()
bool OMPF::ompfBaseChunk::hasChildren |
( |
| ) |
const |
- Returns
- true if chunk has children
◆ hasParent()
bool OMPF::ompfBaseChunk::hasParent |
( |
| ) |
const |
- Returns
- true if chunk has a parent chunk
◆ insertChunk()
insert chunk in chunk
- Parameters
-
chunk | the child chunk to insert |
◆ read()
bool OMPF::ompfBaseChunk::read |
( |
std::ifstream & |
stream, |
|
|
ompfSettings & |
settings |
|
) |
| |
|
virtual |
reads a chunk from stream
- Parameters
-
stream | source stream |
settings | the settings used to read the stream |
- Returns
- true if there was no error
Reimplemented in OMPF::ompfHeaderChunk.
◆ removeChunk()
removes chunk from chunk
- Parameters
-
chunk | the child chunk to remove |
◆ setID()
void OMPF::ompfBaseChunk::setID |
( |
const uint32 |
chunkID | ) |
|
◆ setName()
void OMPF::ompfBaseChunk::setName |
( |
const iaString & |
name | ) |
|
sets name of chunk
- Parameters
-
name | the name of the chunk |
◆ setParentID()
void OMPF::ompfBaseChunk::setParentID |
( |
const uint32 |
parentID | ) |
|
sets parent id
- Parameters
-
◆ write()
bool OMPF::ompfBaseChunk::write |
( |
std::ofstream & |
stream, |
|
|
const ompfSettings & |
settings |
|
) |
| |
|
virtual |
writes current this cunk to specified stream
- Parameters
-
stream | destination stream |
settings | the settings used to write the ompf file |
- Returns
- true if there was no error
Reimplemented in OMPF::ompfHeaderChunk.
The documentation for this class was generated from the following files: