Detailed Description
- See also:
- Class GenericHierarchy.
- Description:
- This class represents an entry in a GenericHierarchy. All
methods of the class are implemented by the system.
- Data Members:
- int data;
This is the polygon number. For example a donut shape will have
polygon 0 and polygon 1. This is an index into the list of polygons
for the shape.
int children;
Number of children of this entry.
HierarchyEntry *parent;
Points to the parent entry.
HierarchyEntry *sibling;
Points to the first sibling.
HierarchyEntry *child;
Points to the first child.
MSTR sortKey;
The sort key. This is used internally by the hierarchy so that it
can determine whether two hierarchies are compatible. Developers
shouldn't alter this value.
#include <genhier.h>
List of all
members.
Constructor & Destructor Documentation
- Parameters:
- int d
The value for data. This is the polygon number.
HierarchyEntry *p
The parent pointer is initialized to this value.
HierarchyEntry *s
The sibling pointer is initialized to this value.
Member Function Documentation
UtilExport int HierarchyLevel |
( |
|
) |
|
- Returns:
- The level in the hierarchy of this entry.
UtilExport void AddChild |
( |
int |
d |
) |
|
- Parameters:
- int d
The data value of the child. This is the polygon
number.
UtilExport int GetChild |
( |
int |
index |
) |
|
- Parameters:
- int index
The child to retrieve.
- Returns:
- The specified child of this entry. If the specified index is
greater than or equal to the number of children
INVALID_HIERARCHY is returned.
int Children |
( |
|
) |
[inline] |
Member Data Documentation
HierarchyEntry HierarchyEntry
HierarchyEntry HierarchyEntry HierarchyEntry HierarchyEntry
HierarchyEntry HierarchyEntry HierarchyEntry HierarchyEntry
HierarchyEntry HierarchyEntry
HierarchyEntry HierarchyEntry HierarchyEntry HierarchyEntry
HierarchyEntry HierarchyEntry HierarchyEntry HierarchyEntry