HModelInfo

Functions

HModelInfo

~HModelInfo

void

ComputeModelInfo

unsigned long

GetTotalFaces

unsigned long

GetTotalVertices

unsigned long

GetTotalTriangles

unsigned long

GetTotalTristrips

unsigned long

GetTotalSegments

unsigned long

GetTotalCircle

unsigned long

GetTotalCircularArc

unsigned long

GetTotalCircularChord

unsigned long

GetTotalCircularWedge

unsigned long

GetTotalEllipse

unsigned long

GetTotalEllipticalArc

unsigned long

GetTotalGrid

unsigned long

GetTotalImage

unsigned long

GetTotalIncludes

unsigned long

GetTotalIncluders

unsigned long

GetTotalLine

unsigned long

GetTotalMarker

unsigned long

GetTotalMesh

unsigned long

GetTotalPolygon

unsigned long

GetTotalPolyline

unsigned long

GetTotalShell

unsigned long

GetTotalStringCursor

unsigned long

GetTotalText

unsigned long

GetTotalMatrices

unsigned long

GetTotalSpotLight

unsigned long

GetTotalDistantLight

unsigned long

GetTotalLocalLight

unsigned long

GetTotalCuttingPlane

unsigned long

GetTotalCylinders

unsigned long

GetTotalPolyCylinders

unsigned long

GetTotalSpheres

unsigned long

GetTotalNURBSCurves

unsigned long

GetTotalNURBSSurfaces

unsigned long

GetTotalReferences

unsigned long

GetTotalInfiniteLines

unsigned long

GetTotalInfiniteRays

unsigned long

GetTotalOthers

Detailed Description

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.

Public Functions

inline HModelInfo(HC_KEY segment_key = (-1L))

Constructs an HModelInfo object.

inline virtual ~HModelInfo()
virtual void ComputeModelInfo(HC_KEY segment_key = (-1L), bool recurse = true)

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.

inline unsigned long GetTotalFaces()
Returns

The sum of all faces in meshes and shells plus the polygon total.

inline unsigned long GetTotalVertices()
Returns

The sum of all vertices in meshes, each shell face and all polygons.

inline unsigned long GetTotalTriangles()
Returns

The result of (total_vertices/total_faces - 2) * total_faces.

inline unsigned long GetTotalTristrips()
Returns

The total tristrip count.

inline unsigned long GetTotalSegments()
Returns

The sum of all segments in the model.

inline unsigned long GetTotalCircle()
Returns

The sum of all circles in the model.

inline unsigned long GetTotalCircularArc()
Returns

The sum of all circular arcs in the model.

inline unsigned long GetTotalCircularChord()
Returns

The sum of all circular chords in the model.

inline unsigned long GetTotalCircularWedge()
Returns

The sum of all circular wedges in the model.

inline unsigned long GetTotalEllipse()
Returns

The sum of all ellipses in the model.

inline unsigned long GetTotalEllipticalArc()
Returns

The sum of all elliptical arcs in the model.

inline unsigned long GetTotalGrid()
Returns

The sum of all grids in the model.

inline unsigned long GetTotalImage()
Returns

The sum of all images in the model.

inline unsigned long GetTotalIncludes()
Returns

The sum of all includes in the model.

inline unsigned long GetTotalIncluders()
Returns

The sum of all includer of the model.

inline unsigned long GetTotalLine()
Returns

The sum of all lines in the model.

inline unsigned long GetTotalMarker()
Returns

The sum of all markers in the model.

inline unsigned long GetTotalMesh()
Returns

The sum of all meshes in the model.

inline unsigned long GetTotalPolygon()
Returns

The sum of all polygons in the model.

inline unsigned long GetTotalPolyline()
Returns

The sum of all polylines in the model.

inline unsigned long GetTotalShell()
Returns

The sum of all shells in the model.

inline unsigned long GetTotalStringCursor()
Returns

The sum of all string cursors in the model.

inline unsigned long GetTotalText()
Returns

The sum of all text strings in the model.

inline unsigned long GetTotalMatrices()
Returns

The sum of all modelling matrices in the model.

inline unsigned long GetTotalSpotLight()
Returns

The sum of all spot lights in the model.

inline unsigned long GetTotalDistantLight()
Returns

The sum of all distant lights in the model.

inline unsigned long GetTotalLocalLight()
Returns

The sum of all local lights in the model.

inline unsigned long GetTotalCuttingPlane()
Returns

The sum of all cutting planes in the model.

inline unsigned long GetTotalCylinders()
Returns

The sum of all cylinders in the model.

inline unsigned long GetTotalPolyCylinders()
Returns

The sum of all polycylinders in the model.

inline unsigned long GetTotalSpheres()
Returns

The sum of all spheres in the model.

inline unsigned long GetTotalNURBSCurves()
Returns

The sum of all NURBS curves in the model.

inline unsigned long GetTotalNURBSSurfaces()
Returns

The sum of all NURBS surfaces in the model.

inline unsigned long GetTotalReferences()
Returns

The sum of all references in the model.

inline unsigned long GetTotalInfiniteLines()
Returns

The sum of all infinite lines in the model.

inline unsigned long GetTotalInfiniteRays()
Returns

The sum of all infinite rays in the model.

inline unsigned long GetTotalOthers()
Returns

The sum of all other items in the model (SHOULD ALWAYS BE ZERO).