VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
trpgMatTable Class Reference
Inheritance diagram for trpgMatTable:
Inheritance graph
[legend]

Public Member Functions

 trpgMatTable (void)
 
 ~trpgMatTable (void)
 
void SetNumTable (int)
 
void SetNumMaterial (int)
 
void SetMaterial (int, const trpgMaterial &)
 
int AddMaterial (const trpgMaterial &, bool lookForExisting=true)
 
bool GetNumTable (int &) const
 
bool GetNumMaterial (int &) const
 
bool GetMaterial (int subTable, int matID, trpgMaterial &) const
 
const trpgMaterialGetMaterialRef (int, int) const
 
bool isValid (void) const
 
void Reset (void)
 
bool Write (trpgWriteBuffer &)
 
bool Read (trpgReadBuffer &)
 
bool Print (trpgPrintBuffer &) const
 
- Public Member Functions inherited from trpgReadWriteable
 trpgReadWriteable ()
 
const chargetErrMess () const
 
- Public Member Functions inherited from trpgCheckable
 trpgCheckable (void)
 
virtual ~trpgCheckable (void)
 
bool isValid (void) const
 
virtual TeAttrHdl GetHandle () const
 
virtual void SetHandle (TeAttrHdl hdl)
 

Protected Types

typedef std::map< int,
trpgMaterial
MaterialMapType
 

Protected Attributes

int numTable
 
int numMat
 
MaterialMapType materialMap
 
- Protected Attributes inherited from trpgReadWriteable
char errMess [512]
 
- Protected Attributes inherited from trpgCheckable
bool valid
 
TeAttrHdl handle
 
bool writeHandle
 

Member Typedef Documentation

typedef std::map<int,trpgMaterial> trpgMatTable::MaterialMapType
protected

Constructor & Destructor Documentation

trpgMatTable::trpgMatTable ( void  )
trpgMatTable::~trpgMatTable ( void  )

Member Function Documentation

void trpgMatTable::SetNumTable ( int  )
void trpgMatTable::SetNumMaterial ( int  )
void trpgMatTable::SetMaterial ( int  ,
const trpgMaterial  
)
int trpgMatTable::AddMaterial ( const trpgMaterial ,
bool  lookForExisting = true 
)
bool trpgMatTable::GetNumTable ( int ) const

The following method is unused currently.

bool trpgMatTable::GetNumMaterial ( int ) const
bool trpgMatTable::GetMaterial ( int  subTable,
int  matID,
trpgMaterial  
) const
const trpgMaterial* trpgMatTable::GetMaterialRef ( int  ,
int   
) const
bool trpgMatTable::isValid ( void  ) const

Validity check.

void trpgMatTable::Reset ( void  )
virtual

Resets the contents back to empty.

Implements trpgReadWriteable.

bool trpgMatTable::Write ( trpgWriteBuffer )
virtual

Writes this class to a write buffer.

Implements trpgReadWriteable.

bool trpgMatTable::Read ( trpgReadBuffer )
virtual

Reads this class from a read buffer.

Reimplemented from trpgReadWriteable.

bool trpgMatTable::Print ( trpgPrintBuffer ) const
virtual

Prints this class to a print buffer.

Reimplemented from trpgReadWriteable.

Member Data Documentation

int trpgMatTable::numTable
protected
int trpgMatTable::numMat
protected
MaterialMapType trpgMatTable::materialMap
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)