#include <HModelInfo.h>
Public Member Functions | |
| virtual void | ComputeModelInfo (HC_KEY segment_key=0) |
| int | GetTotalCircle (void) |
| int | GetTotalCircularArc (void) |
| int | GetTotalCircularChord (void) |
| int | GetTotalCircularWedge (void) |
| int | GetTotalCuttingPlane (void) |
| int | GetTotalCylinders (void) |
| int | GetTotalDistantLight (void) |
| int | GetTotalEllipse (void) |
| int | GetTotalEllipticalArc (void) |
| int | GetTotalFaces (void) |
| int | GetTotalGrid (void) |
| int | GetTotalImage (void) |
| int | GetTotalIncludes (void) |
| int | GetTotalInfiniteLines (void) |
| int | GetTotalInfiniteRays (void) |
| int | GetTotalLine (void) |
| int | GetTotalLocalLight (void) |
| int | GetTotalMarker (void) |
| int | GetTotalMatrices (void) |
| int | GetTotalMesh (void) |
| int | GetTotalNURBSCurves (void) |
| int | GetTotalNURBSSurfaces (void) |
| int | GetTotalOthers (void) |
| int | GetTotalPolyCylinders (void) |
| int | GetTotalPolygon (void) |
| int | GetTotalPolyline (void) |
| int | GetTotalReferences (void) |
| int | GetTotalSegments (void) |
| int | GetTotalShell (void) |
| int | GetTotalSpheres (void) |
| int | GetTotalSpotLight (void) |
| int | GetTotalStringCursor (void) |
| int | GetTotalText (void) |
| int | GetTotalTriangles (void) |
| int | GetTotalTristrips (void) |
| int | GetTotalVertices (void) |
| HModelInfo (HC_KEY segment_key=0) | |
Protected Member Functions | |
| virtual void | ComputeSegmentContents (HC_KEY the_key) |
| 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_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. | |
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 = 0 |
) | [inline] |
Constructs an HModelInfo object.
| virtual void HModelInfo::ComputeModelInfo | ( | HC_KEY | segment_key = 0 |
) | [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 | ) | [protected, virtual] |
For internal use only.
| int HModelInfo::GetTotalCircle | ( | void | ) | [inline] |
| int HModelInfo::GetTotalCircularArc | ( | void | ) | [inline] |
| int HModelInfo::GetTotalCircularChord | ( | void | ) | [inline] |
| int HModelInfo::GetTotalCircularWedge | ( | void | ) | [inline] |
| int HModelInfo::GetTotalCuttingPlane | ( | void | ) | [inline] |
| int HModelInfo::GetTotalCylinders | ( | void | ) | [inline] |
| int HModelInfo::GetTotalDistantLight | ( | void | ) | [inline] |
| int HModelInfo::GetTotalEllipse | ( | void | ) | [inline] |
| int HModelInfo::GetTotalEllipticalArc | ( | void | ) | [inline] |
| int HModelInfo::GetTotalFaces | ( | void | ) | [inline] |
| int HModelInfo::GetTotalGrid | ( | void | ) | [inline] |
| int HModelInfo::GetTotalImage | ( | void | ) | [inline] |
| int HModelInfo::GetTotalIncludes | ( | void | ) | [inline] |
| int HModelInfo::GetTotalInfiniteLines | ( | void | ) | [inline] |
| int HModelInfo::GetTotalInfiniteRays | ( | void | ) | [inline] |
| int HModelInfo::GetTotalLine | ( | void | ) | [inline] |
| int HModelInfo::GetTotalLocalLight | ( | void | ) | [inline] |
| int HModelInfo::GetTotalMarker | ( | void | ) | [inline] |
| int HModelInfo::GetTotalMatrices | ( | void | ) | [inline] |
| int HModelInfo::GetTotalMesh | ( | void | ) | [inline] |
| int HModelInfo::GetTotalNURBSCurves | ( | void | ) | [inline] |
| int HModelInfo::GetTotalNURBSSurfaces | ( | void | ) | [inline] |
| int HModelInfo::GetTotalOthers | ( | void | ) | [inline] |
| int HModelInfo::GetTotalPolyCylinders | ( | void | ) | [inline] |
| int HModelInfo::GetTotalPolygon | ( | void | ) | [inline] |
| int HModelInfo::GetTotalPolyline | ( | void | ) | [inline] |
| int HModelInfo::GetTotalReferences | ( | void | ) | [inline] |
| int HModelInfo::GetTotalSegments | ( | void | ) | [inline] |
| int HModelInfo::GetTotalShell | ( | void | ) | [inline] |
| int HModelInfo::GetTotalSpheres | ( | void | ) | [inline] |
| int HModelInfo::GetTotalSpotLight | ( | void | ) | [inline] |
| int HModelInfo::GetTotalStringCursor | ( | void | ) | [inline] |
| int HModelInfo::GetTotalText | ( | void | ) | [inline] |
| int HModelInfo::GetTotalTriangles | ( | void | ) | [inline] |
| int HModelInfo::GetTotalTristrips | ( | void | ) | [inline] |
| int HModelInfo::GetTotalVertices | ( | void | ) | [inline] |
| virtual void HModelInfo::IncrementCounter | ( | char * | item_type, | |
| HC_KEY | item_key | |||
| ) | [protected, virtual] |
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. |
| 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.