1#ifndef COIN_SOGETPRIMITIVECOUNTACTION_H
2#define COIN_SOGETPRIMITIVECOUNTACTION_H
36#include <Inventor/actions/SoAction.h>
37#include <Inventor/actions/SoSubAction.h>
38#include <Inventor/tools/SbLazyPimplPtr.h>
39#include <Inventor/elements/SoDecimationTypeElement.h>
41class SoGetPrimitiveCountActionP;
57 int getTriangleCount(
void)
const;
58 int getLineCount(
void)
const;
59 int getPointCount(
void)
const;
60 int getTextCount(
void)
const;
61 int getImageCount(
void)
const;
62 SbBool containsNoPrimitives(
void);
63 SbBool containsNonTriangleShapes(
void);
65 SbBool is3DTextCountedAsTriangles(
void);
66 void setCount3DTextAsTriangles(
const SbBool flag);
68 SbBool canApproximateCount(
void);
69 void setCanApproximate(
const SbBool flag);
72 float percentage = 1.0);
74 float getDecimationPercentage(
void);
76 void addNumTriangles(
const int num);
77 void addNumLines(
const int num);
78 void addNumPoints(
const int num);
79 void addNumText(
const int num);
80 void addNumImage(
const int num);
81 void incNumTriangles(
void);
82 void incNumLines(
void);
83 void incNumPoints(
void);
84 void incNumText(
void);
85 void incNumImage(
void);
99 SbBool nonvertexastris;
101 float decimationpercentage;
Definition SbLazyPimplPtr.h:56
The SbViewportRegion class is a viewport within a full window.
Definition SbViewportRegion.h:40
The SoAction class is the base class for all traversal actions.
Definition SoAction.h:77
static void initClass(void)
Definition SoAction.cpp:370
virtual void beginTraversal(SoNode *node)
Definition SoAction.cpp:1269
Type
Definition SoDecimationTypeElement.h:48
The SoGetPrimitiveCountAction class counts the primitives in a scene.
Definition SoGetPrimitiveCountAction.h:44
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:56