OMPF::ompfEmitterChunk Class Reference

#include <ompfEmitterChunk.h>

Inherits OMPF::ompfBaseChunk.

Public Member Functions

 ompfEmitterChunk ()
 
virtual ~ompfEmitterChunk ()=default
 
virtual uint32 getSize (const ompfSettings &settings)
 
void setSize (float32 size)
 
const float32 getSize () const
 
void setType (OMPFEmitterType emitterType)
 
OMPFEmitterType getType () 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
 

Detailed Description

ompf emitter chunk

Constructor & Destructor Documentation

◆ ompfEmitterChunk()

OMPF::ompfEmitterChunk::ompfEmitterChunk ( )

init base class

◆ ~ompfEmitterChunk()

virtual OMPF::ompfEmitterChunk::~ompfEmitterChunk ( )
virtualdefault

does nothing

Member Function Documentation

◆ getSize() [1/2]

const float32 OMPF::ompfEmitterChunk::getSize ( ) const
Returns
emitter size

◆ getSize() [2/2]

uint32 OMPF::ompfEmitterChunk::getSize ( const ompfSettings settings)
virtual
Returns
size of chunk in bytes
Parameters
settingsthe settings the size calculation is based on

Reimplemented from OMPF::ompfBaseChunk.

◆ getType()

OMPFEmitterType OMPF::ompfEmitterChunk::getType ( ) const
Returns
type of emitter

◆ setSize()

void OMPF::ompfEmitterChunk::setSize ( float32  size)

sets emitter size

Parameters
sizethe emitter size

◆ setType()

void OMPF::ompfEmitterChunk::setType ( OMPFEmitterType  emitterType)

sets type of emitter

Parameters
emitterTypeemitter type

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