![]() |
VR-Forces 4.8 Class Documentation
|

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 |
| The following method is unused currently. More... | |
| bool | GetNumMaterial (int &) const |
| bool | GetMaterial (int subTable, int matID, trpgMaterial &) const |
| const trpgMaterial * | GetMaterialRef (int, int) const |
| bool | isValid (void) const |
| Validity check. More... | |
| void | Reset (void) |
| Resets the contents back to empty. More... | |
| bool | Write (trpgWriteBuffer &) |
| Writes this class to a write buffer. More... | |
| bool | Read (trpgReadBuffer &) |
| Reads this class from a read buffer. More... | |
| bool | Print (trpgPrintBuffer &) const |
| Prints this class to a print buffer. More... | |
Public Member Functions inherited from trpgReadWriteable | |
| trpgReadWriteable () | |
| const char * | getErrMess () const |
Public Member Functions inherited from trpgCheckable | |
| trpgCheckable (void) | |
| virtual | ~trpgCheckable (void) |
| bool | isValid (void) const |
| Returns the state of the valid flag, or can be overriden by a subclass to do a more complex check. More... | |
| 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 |
|
protected |
| trpgMatTable::trpgMatTable | ( | void | ) |
| trpgMatTable::~trpgMatTable | ( | void | ) |
| void trpgMatTable::SetNumTable | ( | int | ) |
| void trpgMatTable::SetNumMaterial | ( | int | ) |
| void trpgMatTable::SetMaterial | ( | int | , |
| const trpgMaterial & | |||
| ) |
| int trpgMatTable::AddMaterial | ( | const trpgMaterial & | , |
| bool | lookForExisting = true |
||
| ) |
| bool trpgMatTable::GetMaterial | ( | int | subTable, |
| int | matID, | ||
| trpgMaterial & | |||
| ) | const |
| const trpgMaterial* trpgMatTable::GetMaterialRef | ( | int | , |
| int | |||
| ) | const |
| bool trpgMatTable::isValid | ( | void | ) | const |
Validity check.
|
virtual |
Resets the contents back to empty.
Implements trpgReadWriteable.
|
virtual |
Writes this class to a write buffer.
Implements trpgReadWriteable.
|
virtual |
Reads this class from a read buffer.
Reimplemented from trpgReadWriteable.
|
virtual |
Prints this class to a print buffer.
Reimplemented from trpgReadWriteable.
|
protected |
|
protected |
|
protected |