1 #ifndef COIN_SOGETPRIMITIVECOUNTACTION_H
2 #define COIN_SOGETPRIMITIVECOUNTACTION_H
27 #include <Inventor/actions/SoAction.h>
28 #include <Inventor/actions/SoSubAction.h>
29 #include <Inventor/elements/SoDecimationTypeElement.h>
43 int getTriangleCount(
void)
const;
44 int getLineCount(
void)
const;
45 int getPointCount(
void)
const;
46 int getTextCount(
void)
const;
47 int getImageCount(
void)
const;
48 SbBool containsNoPrimitives(
void);
49 SbBool containsNonTriangleShapes(
void);
51 SbBool is3DTextCountedAsTriangles(
void);
52 void setCount3DTextAsTriangles(
const SbBool flag);
54 SbBool canApproximateCount(
void);
55 void setCanApproximate(
const SbBool flag);
57 void setDecimationValue(SoDecimationTypeElement::Type type,
58 float percentage = 1.0);
59 SoDecimationTypeElement::Type getDecimationType(
void);
60 float getDecimationPercentage(
void);
62 void addNumTriangles(
const int num);
63 void addNumLines(
const int num);
64 void addNumPoints(
const int num);
65 void addNumText(
const int num);
66 void addNumImage(
const int num);
67 void incNumTriangles(
void);
68 void incNumLines(
void);
69 void incNumPoints(
void);
70 void incNumText(
void);
71 void incNumImage(
void);
85 SbBool nonvertexastris;
86 SoDecimationTypeElement::Type decimationtype;
87 float decimationpercentage;
The SoAction class is the base class for all traversal actions.
Definition: SoAction.h:67
static void initClass(void)
Definition: SoAction.cpp:392
virtual void beginTraversal(SoNode *node)
Definition: SoAction.cpp:1208
The SoGetPrimitiveCountAction class counts the primitives in a scene.
Definition: SoGetPrimitiveCountAction.h:32
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47