The HModelInfo class computes and stores model information. More...
#include <HModelInfo.h>
Protected Member Functions | |
virtual void | ComputeSegmentContents (HC_KEY the_key, bool recurse=true) |
virtual void | IncrementCounter (char *item_type, HC_KEY item_key) |
virtual void | ResetCounters () |
Protected Attributes | |
HC_KEY | m_SegmentKey |
For internal use only | |
int | m_TotalCircle |
For internal use only. | |
int | m_TotalCircularArc |
For internal use only. | |
int | m_TotalCircularChord |
For internal use only. | |
int | m_TotalCircularWedge |
For internal use only. | |
int | m_TotalCuttingPlane |
For internal use only. | |
int | m_TotalCylinders |
For internal use only. | |
int | m_TotalDistantLight |
For internal use only. | |
int | m_TotalEllipse |
For internal use only. | |
int | m_TotalEllipticalArc |
For internal use only. | |
int | m_TotalFaces |
For internal use only. | |
int | m_TotalGrid |
For internal use only. | |
int | m_TotalImage |
For internal use only. | |
int | m_TotalIncluders |
For internal use only. | |
int | m_TotalIncludes |
For internal use only. | |
int | m_TotalInfiniteLines |
For internal use only. | |
int | m_TotalInfiniteRays |
For internal use only. | |
int | m_TotalLine |
For internal use only. | |
int | m_TotalLocalLight |
For internal use only. | |
int | m_TotalMarker |
For internal use only. | |
int | m_TotalMatrices |
For internal use only. | |
int | m_TotalMesh |
For internal use only. | |
int | m_TotalNURBSCurves |
For internal use only. | |
int | m_TotalNURBSSurfaces |
For internal use only. | |
int | m_TotalOthers |
For internal use only. | |
int | m_TotalPolyCylinders |
For internal use only. | |
int | m_TotalPolygon |
For internal use only. | |
int | m_TotalPolyline |
For internal use only. | |
int | m_TotalReferences |
For internal use only. | |
int | m_TotalSegments |
For internal use only. | |
int | m_TotalShell |
For internal use only. | |
int | m_TotalSpheres |
For internal use only. | |
int | m_TotalSpotLight |
For internal use only. | |
int | m_TotalStringCursor |
For internal use only. | |
int | m_TotalText |
For internal use only. | |
int | m_TotalTriangles |
For internal use only. | |
int | m_TotalTristrips |
For internal use only. | |
int | m_TotalVertices |
For internal use only. | |
The HModelInfo class computes and stores model information.
HModelInfo encapusulates information associated with a model. It provides routines that search and compute the contents of a given HOOPS sub-tree. Classes that implement custom model information routines should be derived from HModelInfo.
|
inline |
Constructs an HModelInfo object.
|
virtual |
ComputeModelInfo performs a contents search on a Hoops sub-tree. The search begins at the segment passed with the argument list and continues into and all of the direct and included sub-segments, counting each type of geometric primitive in these segments. Geometry totals can be accessed through the HModelInfo Get routines, or manipulated by derived classes.
segment_key | The key of segment where the search should start. |
|
protectedvirtual |
For internal use only.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedvirtual |
For internal use only.
Increments the number of primitives in a given count. Used internally by ComputeModelInfo(), but can be used in derived classes.
item_type | Type of the primitive to increment in the count (see HC_Begin_Contents_Search for types) |
item_key | HOOPS key to any geometry. In this case, "key" is used only for polygons, shells, and meshes in order to calculate the sub-primitives and increment their numbers. |
|
protectedvirtual |
For internal use only.
Initializes the number of primitives in a the count to zero. Used internally by ComputeModelInfo(), but can be useful in derived classes.