#include <HModelInfo.h>
Public Member Functions | |
virtual void | ComputeModelInfo (HC_KEY segment_key=INVALID_KEY, bool recurse=true) |
unsigned long | GetTotalCircle () |
unsigned long | GetTotalCircularArc () |
unsigned long | GetTotalCircularChord () |
unsigned long | GetTotalCircularWedge () |
unsigned long | GetTotalCuttingPlane () |
unsigned long | GetTotalCylinders () |
unsigned long | GetTotalDistantLight () |
unsigned long | GetTotalEllipse () |
unsigned long | GetTotalEllipticalArc () |
unsigned long | GetTotalFaces () |
unsigned long | GetTotalGrid () |
unsigned long | GetTotalImage () |
unsigned long | GetTotalIncluders () |
unsigned long | GetTotalIncludes () |
unsigned long | GetTotalInfiniteLines () |
unsigned long | GetTotalInfiniteRays () |
unsigned long | GetTotalLine () |
unsigned long | GetTotalLocalLight () |
unsigned long | GetTotalMarker () |
unsigned long | GetTotalMatrices () |
unsigned long | GetTotalMesh () |
unsigned long | GetTotalNURBSCurves () |
unsigned long | GetTotalNURBSSurfaces () |
unsigned long | GetTotalOthers () |
unsigned long | GetTotalPolyCylinders () |
unsigned long | GetTotalPolygon () |
unsigned long | GetTotalPolyline () |
unsigned long | GetTotalReferences () |
unsigned long | GetTotalSegments () |
unsigned long | GetTotalShell () |
unsigned long | GetTotalSpheres () |
unsigned long | GetTotalSpotLight () |
unsigned long | GetTotalStringCursor () |
unsigned long | GetTotalText () |
unsigned long | GetTotalTriangles () |
unsigned long | GetTotalTristrips () |
unsigned long | GetTotalVertices () |
HModelInfo (HC_KEY segment_key=INVALID_KEY) | |
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 | IncrementCounters () |
virtual void | ResetCounters () |
Protected Attributes | |
HC_KEY | m_SegmentKey |
For internal use only | |
unsigned long | m_TotalCircle |
For internal use only. | |
unsigned long | m_TotalCircularArc |
For internal use only. | |
unsigned long | m_TotalCircularChord |
For internal use only. | |
unsigned long | m_TotalCircularWedge |
For internal use only. | |
unsigned long | m_TotalCuttingPlane |
For internal use only. | |
unsigned long | m_TotalCylinders |
For internal use only. | |
unsigned long | m_TotalDistantLight |
For internal use only. | |
unsigned long | m_TotalEllipse |
For internal use only. | |
unsigned long | m_TotalEllipticalArc |
For internal use only. | |
unsigned long | m_TotalFaces |
For internal use only. | |
unsigned long | m_TotalGrid |
For internal use only. | |
unsigned long | m_TotalImage |
For internal use only. | |
unsigned long | m_TotalIncluders |
For internal use only. | |
unsigned long | m_TotalIncludes |
For internal use only. | |
unsigned long | m_TotalInfiniteLines |
For internal use only. | |
unsigned long | m_TotalInfiniteRays |
For internal use only. | |
unsigned long | m_TotalLine |
For internal use only. | |
unsigned long | m_TotalLocalLight |
For internal use only. | |
unsigned long | m_TotalMarker |
For internal use only. | |
unsigned long | m_TotalMatrices |
For internal use only. | |
unsigned long | m_TotalMesh |
For internal use only. | |
unsigned long | m_TotalNURBSCurves |
For internal use only. | |
unsigned long | m_TotalNURBSSurfaces |
For internal use only. | |
unsigned long | m_TotalOthers |
For internal use only. | |
unsigned long | m_TotalPolyCylinders |
For internal use only. | |
unsigned long | m_TotalPolygon |
For internal use only. | |
unsigned long | m_TotalPolyline |
For internal use only. | |
unsigned long | m_TotalReferences |
For internal use only. | |
unsigned long | m_TotalSegments |
For internal use only. | |
unsigned long | m_TotalShell |
For internal use only. | |
unsigned long | m_TotalSpheres |
For internal use only. | |
unsigned long | m_TotalSpotLight |
For internal use only. | |
unsigned long | m_TotalStringCursor |
For internal use only. | |
unsigned long | m_TotalText |
For internal use only. | |
unsigned long | m_TotalTriangles |
For internal use only. | |
unsigned long | m_TotalTristrips |
For internal use only. | |
unsigned long | m_TotalVertices |
For internal use only. |
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.
HModelInfo::HModelInfo | ( | HC_KEY | segment_key = INVALID_KEY |
) | [inline] |
Constructs an HModelInfo object.
virtual void HModelInfo::ComputeModelInfo | ( | HC_KEY | segment_key = INVALID_KEY , |
|
bool | recurse = true | |||
) | [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. |
virtual void HModelInfo::ComputeSegmentContents | ( | HC_KEY | the_key, | |
bool | recurse = true | |||
) | [protected, virtual] |
For internal use only.
unsigned long HModelInfo::GetTotalCircle | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalCircularArc | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalCircularChord | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalCircularWedge | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalCuttingPlane | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalCylinders | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalDistantLight | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalEllipse | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalEllipticalArc | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalFaces | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalGrid | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalImage | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalIncluders | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalIncludes | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalInfiniteLines | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalInfiniteRays | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalLine | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalLocalLight | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalMarker | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalMatrices | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalMesh | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalNURBSCurves | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalNURBSSurfaces | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalOthers | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalPolyCylinders | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalPolygon | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalPolyline | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalReferences | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalSegments | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalShell | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalSpheres | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalSpotLight | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalStringCursor | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalText | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalTriangles | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalTristrips | ( | ) | [inline] |
unsigned long HModelInfo::GetTotalVertices | ( | ) | [inline] |
virtual void HModelInfo::IncrementCounter | ( | char * | item_type, | |
HC_KEY | item_key | |||
) | [protected, virtual] |
no longer used internally, 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. |
virtual void HModelInfo::IncrementCounters | ( | ) | [protected, virtual] |
For internal use only. Used internally by ComputeModelInfo(), but can be used in derived classes. Increments the counters for geometry of various types based on the return values of Show_Existence
virtual void HModelInfo::ResetCounters | ( | ) | [protected, virtual] |
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.