HModelInfo

class HModelInfo

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.

Index

Methods

Variables

Methods

HModelInfo::HModelInfo(HC_KEY segment_key = INVALID_KEY)

Constructs an HModelInfo object.

virtual HModelInfo::~HModelInfo()

virtual

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.

Parameters

segment_key: The key of segment where the search should start.
unsigned long HModelInfo::GetTotalFaces()

Returns

The sum of all faces in meshes and shells plus the polygon total.
unsigned long HModelInfo::GetTotalVertices()

Returns

The sum of all vertices in meshes, each shell face and all polygons.
unsigned long HModelInfo::GetTotalTriangles()

Returns

The result of (total_vertices/total_faces - 2) * total_faces.
unsigned long HModelInfo::GetTotalTristrips()

Returns

The total tristrip count.
unsigned long HModelInfo::GetTotalSegments()

Returns

The sum of all segments in the model.
unsigned long HModelInfo::GetTotalCircle()

Returns

The sum of all circles in the model.
unsigned long HModelInfo::GetTotalCircularArc()

Returns

The sum of all circular arcs in the model.
unsigned long HModelInfo::GetTotalCircularChord()

Returns

The sum of all circular chords in the model.
unsigned long HModelInfo::GetTotalCircularWedge()

Returns

The sum of all circular wedges in the model.
unsigned long HModelInfo::GetTotalEllipse()

Returns

The sum of all ellipses in the model.
unsigned long HModelInfo::GetTotalEllipticalArc()

Returns

The sum of all elliptical arcs in the model.
unsigned long HModelInfo::GetTotalGrid()

Returns

The sum of all grids in the model.
unsigned long HModelInfo::GetTotalImage()

Returns

The sum of all images in the model.
unsigned long HModelInfo::GetTotalIncludes()

Returns

The sum of all includes in the model.
unsigned long HModelInfo::GetTotalIncluders()

Returns

The sum of all includer of the model.
unsigned long HModelInfo::GetTotalLine()

Returns

The sum of all lines in the model.
unsigned long HModelInfo::GetTotalMarker()

Returns

The sum of all markers in the model.
unsigned long HModelInfo::GetTotalMesh()

Returns

The sum of all meshes in the model.
unsigned long HModelInfo::GetTotalPolygon()

Returns

The sum of all polygons in the model.
unsigned long HModelInfo::GetTotalPolyline()

Returns

The sum of all polylines in the model.
unsigned long HModelInfo::GetTotalShell()

Returns

The sum of all shells in the model.
unsigned long HModelInfo::GetTotalStringCursor()

Returns

The sum of all string cursors in the model.
unsigned long HModelInfo::GetTotalText()

Returns

The sum of all text strings in the model.
unsigned long HModelInfo::GetTotalMatrices()

Returns

The sum of all modelling matrices in the model.
unsigned long HModelInfo::GetTotalSpotLight()

Returns

The sum of all spot lights in the model.
unsigned long HModelInfo::GetTotalDistantLight()

Returns

The sum of all distant lights in the model.
unsigned long HModelInfo::GetTotalLocalLight()

Returns

The sum of all local lights in the model.
unsigned long HModelInfo::GetTotalCuttingPlane()

Returns

The sum of all cutting planes in the model.
unsigned long HModelInfo::GetTotalCylinders()

Returns

The sum of all cylinders in the model.
unsigned long HModelInfo::GetTotalPolyCylinders()

Returns

The sum of all polycylinders in the model.
unsigned long HModelInfo::GetTotalSpheres()

Returns

The sum of all spheres in the model.
unsigned long HModelInfo::GetTotalNURBSCurves()

Returns

The sum of all NURBS curves in the model.
unsigned long HModelInfo::GetTotalNURBSSurfaces()

Returns

The sum of all NURBS surfaces in the model.
unsigned long HModelInfo::GetTotalReferences()

Returns

The sum of all references in the model.
unsigned long HModelInfo::GetTotalInfiniteLines()

Returns

The sum of all infinite lines in the model.
unsigned long HModelInfo::GetTotalInfiniteRays()

Returns

The sum of all infinite rays in the model.
unsigned long HModelInfo::GetTotalOthers()

Returns

The sum of all other items in the model (SHOULD ALWAYS BE ZERO).
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.

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::IncrementCounter(char *item_type, HC_KEY item_key)

protected virtual

no longer used internally, but can be used in derived classes.

Parameters

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::ComputeSegmentContents(HC_KEY the_key, bool recurse = true)

protected virtual

For internal use only.

Variables

HC_KEY HModelInfo::m_SegmentKey

protected

HC_KEY

For internal use only

unsigned long HModelInfo::m_TotalFaces

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalVertices

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalTriangles

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalTristrips

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalSegments

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalCircle

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalCircularArc

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalCircularChord

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalCircularWedge

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalEllipse

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalEllipticalArc

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalGrid

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalImage

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalIncludes

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalIncluders

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalLine

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalMarker

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalMesh

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalPolygon

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalPolyline

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalShell

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalStringCursor

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalText

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalMatrices

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalSpotLight

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalDistantLight

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalLocalLight

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalCuttingPlane

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalPolyCylinders

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalCylinders

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalSpheres

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalNURBSCurves

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalNURBSSurfaces

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalReferences

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalInfiniteLines

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalInfiniteRays

protected

unsigned long

For internal use only.

unsigned long HModelInfo::m_TotalOthers

protected

unsigned long

For internal use only.