Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
CFBMaterialHashMap Class Reference

This class gets an object material hash. It returns front and back material pair. @Note if we have a face #1 [Mat #1, Mat #2] and a face #2 [Mat #1, Mat #3] we will get 2 entries with (#1-#2, 1), (#1-#3, 1) More...

Detailed Description

This class gets an object material hash. It returns front and back material pair. @Note if we have a face #1 [Mat #1, Mat #2] and a face #2 [Mat #1, Mat #3] we will get 2 entries with (#1-#2, 1), (#1-#3, 1)

#include <3DFaceList.h>

Inheritance diagram for CFBMaterialHashMap:
CHashMap< FBMaterialID, FBMaterialID, unsigned int >

Public Member Functions

unsigned int GetFrontHash (CMaterialHashMap &map, bool reset=true, bool removeUndefinedMaterial=true) const
 
unsigned int GetBackHash (CMaterialHashMap &map, bool reset=true, bool removeUndefinedMaterial=true) const
 
unsigned int GetFrontBackHash (CMaterialHashMap &map, bool reset=true, bool removeUndefinedMaterial=true) const
 
unsigned int ReplaceFrontMaterial (MaterialID matid, MaterialID newmatid)
 
unsigned int ReplaceBackMaterial (MaterialID matid, MaterialID newmatid)
 
- Public Member Functions inherited from CHashMap< FBMaterialID, FBMaterialID, unsigned int >
 CHashMap (unsigned int defaultSize=DefaultHashSize)
 
 CHashMap (const CHashMap &Rhs)
 
const CHashMapoperator= (const CHashMap &Rhs)
 
int Insert2 (const FBMaterialID K, const unsigned int V)
 
int Insert (const FBMaterialID K, const unsigned int &V)
 
int Remove (const FBMaterialID K, bool enableResize=false)
 
void Remove (const CHashMap &Rhs)
 
int Find (const FBMaterialID K, unsigned int &V) const
 
int Find (const FBMaterialID K, unsigned int *&V) const
 
unsigned intFind (const FBMaterialID K) const
 
int IsFound (const FBMaterialID K) const
 
int IsEmpty () const
 
void Free ()
 
void Clear ()
 
unsigned int GetCount () const
 
HashPos GetFirst () const
 
void GetNext (HashPos &pos, FBMaterialID &element, unsigned int &value) const
 
void GetNext (HashPos &pos, FBMaterialID &element, unsigned int *&value) const
 
FBMaterialIDGetNext (HashPos &pos, unsigned int &value) const
 
void GetNext (HashPos &pos, FBMaterialID *element, unsigned int *value) const
 
FBMaterialIDGetNext (HashPos &pos, unsigned int *&value) const
 
void InitHashTable (unsigned int elementsNumber)
 
unsigned int GetHashTableSize () const
 
bool Minimize ()
 
void Merge (const CHashMap &Rhs)
 

Additional Inherited Members

- Public Types inherited from CHashMap< FBMaterialID, FBMaterialID, unsigned int >
enum  KindOfEntry
 

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