OMPF::ompfMaterialReferenceChunk Class Reference

#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
 

Detailed Description

chunk that contains an external reference to a material file

Constructor & Destructor Documentation

◆ ompfMaterialReferenceChunk()

OMPF::ompfMaterialReferenceChunk::ompfMaterialReferenceChunk ( )

does nothing

◆ ~ompfMaterialReferenceChunk()

OMPF::ompfMaterialReferenceChunk::~ompfMaterialReferenceChunk ( )
default

does nothing

Member Function Documentation

◆ getReference()

iaString OMPF::ompfMaterialReferenceChunk::getReference ( ) const
Returns
file name of external reference

◆ getSize()

uint32 OMPF::ompfMaterialReferenceChunk::getSize ( const ompfSettings settings)
overridevirtual
Returns
size of chunk in bytes
Parameters
settingsthe settings the chunk's size depends on

Reimplemented from OMPF::ompfBaseChunk.

◆ setReference()

void OMPF::ompfMaterialReferenceChunk::setReference ( const iaString reference)

sets reference name. resource id, filename or alias

Parameters
referencethe file name

Friends And Related Function Documentation

◆ OMPF

friend class OMPF
friend

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