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/tools/SbLazyPimplPtr.h>
30 #include <Inventor/elements/SoDecimationTypeElement.h>
32 class SoGetPrimitiveCountActionP;
45 int getTriangleCount(
void)
const;
46 int getLineCount(
void)
const;
47 int getPointCount(
void)
const;
48 int getTextCount(
void)
const;
49 int getImageCount(
void)
const;
50 SbBool containsNoPrimitives(
void);
51 SbBool containsNonTriangleShapes(
void);
53 SbBool is3DTextCountedAsTriangles(
void);
54 void setCount3DTextAsTriangles(
const SbBool flag);
56 SbBool canApproximateCount(
void);
57 void setCanApproximate(
const SbBool flag);
60 float percentage = 1.0);
62 float getDecimationPercentage(
void);
64 void addNumTriangles(
const int num);
65 void addNumLines(
const int num);
66 void addNumPoints(
const int num);
67 void addNumText(
const int num);
68 void addNumImage(
const int num);
69 void incNumTriangles(
void);
70 void incNumLines(
void);
71 void incNumPoints(
void);
72 void incNumText(
void);
73 void incNumImage(
void);
87 SbBool nonvertexastris;
89 float decimationpercentage;
92 SbLazyPimplPtr<SoGetPrimitiveCountActionP> pimpl;
99 #endif // !COIN_SOGETPRIMITIVECOUNTACTION_H
static void initClass(void)
Definition: SoAction.cpp:366
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:47
The SoAction class is the base class for all traversal actions.Applying actions is the basic mechanis...
Definition: SoAction.h:68
Type
Definition: SoDecimationTypeElement.h:39
The SoGetPrimitiveCountAction class counts the primitives in a scene.Apply this action to a scene if ...
Definition: SoGetPrimitiveCountAction.h:34
virtual void beginTraversal(SoNode *node)
Definition: SoAction.cpp:1263