HIndexManager
-
class
HIndexManager Index
Methods
AddOneIndexToPair()AddOneTranslation()DeleteByKey()EditShellFaces()EditShellPoints()ExpandPairToIndices()ExpandSharedVertices()ExpandShellLookup()GetIndex()GetPair()GetPairCount()GetPairs()HIndexManager()KInsertShell()RemoveOneTranslation()RemoveTranslations()~HIndexManager()
Variables
Methods
private
-
void
HIndexManager::ExpandShellLookup(int count) private
-
void
HIndexManager::ExpandPairToIndices() private
-
void
HIndexManager::AddOneIndexToPair(int bigIndex, int littleIndex) protected
-
void
HIndexManager::RemoveOneTranslation(HC_KEY key, int littleIndex) protected
-
void
HIndexManager::RemoveTranslations(HC_KEY key, int face_list_length, int const *face_list) protected
-
static void
HIndexManager::AddOneTranslation(void *arg1, void *arg2, void *arg3) protected static
-
HIndexManager::HIndexManager(bool needPairToIndex, bool needIndexToPair)
-
virtual
HIndexManager::~HIndexManager() virtual
-
HC_KEY
HIndexManager::KInsertShell(int point_count, HPoint const *points, int face_list_length, int const *face_list) Compacts a sparsely-referenced points array into its minimal subset, records the translation information from the original specification. Requires that a HOOPS segment be open.
Parameters
point_count: the number of points in the master points list.
points: the master points list.
face_list_length: the length of the face_list array.
face_list: the vertex indices that connect to form faces (see docs for HC_Insert_Shell.
Returns
the key to the HOOPS shell that was inserted.
-
void
HIndexManager::DeleteByKey(HC_KEY key) Calls through to HOOPS to remove the item. If the item was inserted by
HIndexManager::KInsertShell, this function additionally removes the translation informationParameters
key: the key to the item to be deleted, as returned from this->KInsertShell.
-
void
HIndexManager::EditShellPoints(HC_KEY key, int littleIndexOffset, int ndelete, int insert, HPoint const *points)
-
void
HIndexManager::EditShellFaces(HC_KEY key, int ioffset, int ndelete, int insert_list_length, int const *insert_list) just a simple call through to HC_Edit_Shell_Faces. Nothing needs to be done here, but it provides consistency in the calling conventions.
Parameters
key: the key to the item to be deleted, as returned from this->KInsertShell.
-
int
HIndexManager::GetPairCount(int bigIndex) const const
returns the number of times vertex bigIndex is shared into littleIndex values
-
bool
HIndexManager::GetPair(int bigIndex, int n, HC_KEY *key, int *littleIndex) const const
retrieves the nth key/littleIndex pair that inherits from bigIndex
Parameters
bigIndex: the index into the master points array
n: which of the shared vertices to return (e.g. the i in a for(i=0;;i++) loop)
key: returned to user
littleIndex: returned to user
Returns
true if successful
-
bool
HIndexManager::GetPairs(int bigIndex, HC_KEY *keys, int *littleIndices) const const
retrieves all key/littleIndex pairs that inherit from bigIndex
Parameters
bigIndex: the index into the master points array
keys: returned to user. Caller must be allocate to length
GetPairCount()littleIndices: returned to user. Caller must be allocate to length
GetPairCount()Returns
true if successful
-
bool
HIndexManager::GetIndex(HC_KEY key, int littleIndex, int *bigIndex) const const
returns the bigIndex from which the key/littleIndex pair came
Variables
-
HPoint const *
HIndexManager::m_OldPoints private
-
HPoint *
HIndexManager::m_NewPoints private
-
bool
HIndexManager::m_p2i protected
bool
-
bool
HIndexManager::m_i2p protected
bool
-
unsigned int *
HIndexManager::m_IndexToPairs protected
unsigned int
-
int
HIndexManager::m_IndexToPairsAllocated protected
int
-
int
HIndexManager::m_IndexToPairsUsed protected
int
protected
protected
int
protected
int
-
ShellInfo *
HIndexManager::m_ShellLookup protected
-
int
HIndexManager::m_ShellLookupAllocated protected
int
-
int
HIndexManager::m_ShellLookupUsed protected
int
-
PairToIndex *
HIndexManager::m_PairToIndex protected
-
int
HIndexManager::m_PairToIndexAllocated protected
int
-
int
HIndexManager::m_PairToIndexUsed protected
int