1 #ifndef COIN_SOGETBOUNDINGBOXACTION_H 2 #define COIN_SOGETBOUNDINGBOXACTION_H 27 #include <Inventor/actions/SoAction.h> 28 #include <Inventor/actions/SoSubAction.h> 29 #include <Inventor/tools/SbLazyPimplPtr.h> 30 #include <Inventor/SbViewportRegion.h> 31 #include <Inventor/SbBox3f.h> 32 #include <Inventor/SbXfBox3f.h> 34 class SoGetBoundingBoxActionP;
47 enum ResetType { TRANSFORM = 0x1, BBOX = 0x2, ALL = TRANSFORM | BBOX };
52 SbBox3f getBoundingBox(
void)
const;
55 const SbVec3f & getCenter(
void)
const;
57 void setInCameraSpace(
const SbBool flag);
58 SbBool isInCameraSpace(
void)
const;
60 void setResetPath(
const SoPath * path,
const SbBool resetbefore = TRUE,
61 const ResetType what = ALL);
62 const SoPath * getResetPath(
void)
const;
63 SbBool isResetPath(
void)
const;
64 SbBool isResetBefore(
void)
const;
68 void checkResetBefore(
void);
69 void checkResetAfter(
void);
71 void extendBy(
const SbBox3f & box);
74 void setCenter(
const SbVec3f & center,
const SbBool transformcenter);
75 SbBool isCenterSet(
void)
const;
76 void resetCenter(
void);
82 enum { CENTER_SET = 0x1, CAMERA_SPACE = 0x2, RESET_BEFORE= 0x4 };
92 SbLazyPimplPtr<SoGetBoundingBoxActionP> pimpl;
98 #endif // !COIN_SOGETBOUNDINGBOXACTION_H static void initClass(void)
Definition: SoAction.cpp:366
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.This box abstraction class ...
Definition: SbBox3f.h:37
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 SbXfBox3f class is a 3 dimensional box with floating point coordinates and an attached transforma...
Definition: SbXfBox3f.h:31
The SoPath class is a container class for traversal path descriptions.SoPath objects contain a list o...
Definition: SoPath.h:43
The SoAction class is the base class for all traversal actions.Applying actions is the basic mechanis...
Definition: SoAction.h:68
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:40
ResetType
Definition: SoGetBoundingBoxAction.h:47
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.If this action is applied to a path or scene graph root, it will calculate the bounding box and the center point of the geometry contained within the scene.
Definition: SoGetBoundingBoxAction.h:36
virtual void beginTraversal(SoNode *node)
Definition: SoAction.cpp:1263
The SbViewportRegion class is a viewport within a full window.The SbViewportRegion class contains inf...
Definition: SbViewportRegion.h:31