#include <Inventor/actions/SoGetPrimitiveCountAction.h>
Inheritance diagram for SoGetPrimitiveCountAction::

Public Methods | |
| SoGetPrimitiveCountAction (void) | |
| virtual | ~SoGetPrimitiveCountAction () |
| int | getTriangleCount (void) const |
| int | getLineCount (void) const |
| int | getPointCount (void) const |
| int | getTextCount (void) const |
| int | getImageCount (void) const |
| SbBool | containsNoPrimitives (void) |
| SbBool | containsNonTriangleShapes (void) |
| SbBool | is3DTextCountedAsTriangles (void) |
| void | setCount3DTextAsTriangles (const SbBool flag) |
| SbBool | canApproximateCount (void) |
| void | setCanApproximate (const SbBool flag) |
| void | setDecimationValue (SoDecimationTypeElement::Type type, float percentage=1.0) |
| SoDecimationTypeElement::Type | getDecimationType (void) |
| float | getDecimationPercentage (void) |
| void | addNumTriangles (const int num) |
| void | addNumLines (const int num) |
| void | addNumPoints (const int num) |
| void | addNumText (const int num) |
| void | addNumImage (const int num) |
| void | incNumTriangles (void) |
| void | incNumLines (void) |
| void | incNumPoints (void) |
| void | incNumText (void) |
| void | incNumImage (void) |
Static Public Methods | |
| void | initClass (void) |
Protected Methods | |
| virtual void | beginTraversal (SoNode *node) |
Apply this action to a scene if you need to know the number of primitives present.
|
|
Constructor. |
|
|
The destructor. |
|
|
Initializes the run-time type system for this class, and sets up the enabled elements and action method list. Reimplemented from SoAction. |
|
|
Returns number of triangles in graph. |
|
|
Returns number of lines in graph. |
|
|
Returns number of points in graph. |
|
|
Returns number of texts in the graph. |
|
|
Returns the number of images in the graph. |
|
|
Returns whether there are any primitives in graph or not. |
|
|
Returns whether there are non-triangular primitives in graph. |
|
|
Returns whether SoText3 nodes is counted as triangles or text.
|
|
|
Sets whether SoText3 nodes are counted as the triangles of the fonts in the text strings or the text itself. The default is to count as triangles.
|
|
|
Returns whether shapes can use an approximate value when counting primitives. This is faster than doing an accurate count. The default is to not approximate.
|
|
|
Sets whether shapes can do an approximate count.
|
|
||||||||||||
|
Set up the decimation parameters for the traversal. On-the-fly decimation is supported in Coin yet, so this call will not have any effect until this feature has been implemented. |
|
|
Returns decimation type used during the traversal count. |
|
|
Returns decimation percentage used during the traversal count. |
|
|
Adds num triangles to total count. Used by node instances in the scene graph during traversal. |
|
|
Adds num lines to total count. Used by node instances in the scene graph during traversal. |
|
|
Adds num points to total count. Used by node instances in the scene graph during traversal. |
|
|
Adds num texts to total count. Used by node instances in the scene graph during traversal. |
|
|
Adds num texture image maps to total count. Used by node instances in the scene graph during traversal. |
|
|
Adds a single triangle to the total count. Used by node instances in the scene graph during traversal. |
|
|
Adds a single line to the total count. Used by node instances in the scene graph during traversal. |
|
|
Adds a single point to the total count. Used by node instances in the scene graph during traversal. |
|
|
Adds a single text to the total count. Used by node instances in the scene graph during traversal. |
|
|
Adds a single texture image map to the total count. Used by node instances in the scene graph during traversal. |
|
|
Overloaded to reset all counters to zero before traversal starts. Reimplemented from SoAction. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001