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/SbViewportRegion.h>
30 #include <Inventor/SbBox3f.h>
31 #include <Inventor/SbXfBox3f.h>
45 enum ResetType { TRANSFORM = 0x1, BBOX = 0x2, ALL = TRANSFORM | BBOX };
50 SbBox3f getBoundingBox(
void)
const;
53 const SbVec3f & getCenter(
void)
const;
55 void setInCameraSpace(
const SbBool flag);
56 SbBool isInCameraSpace(
void)
const;
58 void setResetPath(
const SoPath * path,
const SbBool resetbefore = TRUE,
59 const ResetType what = ALL);
60 const SoPath * getResetPath(
void)
const;
61 SbBool isResetPath(
void)
const;
62 SbBool isResetBefore(
void)
const;
66 void checkResetBefore(
void);
67 void checkResetAfter(
void);
69 void extendBy(
const SbBox3f & box);
72 void setCenter(
const SbVec3f & center,
const SbBool transformcenter);
73 SbBool isCenterSet(
void)
const;
74 void resetCenter(
void);
80 enum { CENTER_SET = 0x1, CAMERA_SPACE = 0x2, RESET_BEFORE= 0x4 };
90 #endif // !COIN_SOGETBOUNDINGBOXACTION_H
SbBool isResetPath(void) const
Definition: SoGetBoundingBoxAction.cpp:401
void setViewportRegion(const SbViewportRegion &newregion)
Definition: SoGetBoundingBoxAction.cpp:289
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition: SbMatrix.h:37
void setTransform(const SbMatrix &m)
Definition: SbXfBox3f.cpp:125
void setCenter(const SbVec3f ¢er, const SbBool transformcenter)
Definition: SoGetBoundingBoxAction.cpp:529
SbBool isInCameraSpace(void) const
Definition: SoGetBoundingBoxAction.cpp:359
void resetCenter(void)
Definition: SoGetBoundingBoxAction.cpp:571
virtual void beginTraversal(SoNode *node)
Definition: SoGetBoundingBoxAction.cpp:580
void multVecMatrix(const SbVec3f &src, SbVec3f &dst) const
Definition: SbMatrix.cpp:1357
virtual void beginTraversal(SoNode *node)
Definition: SoAction.cpp:1208
SbXfBox3f & getXfBoundingBox(void)
Definition: SoGetBoundingBoxAction.cpp:317
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition: SbBox3f.h:37
const SoPath * getCurPath(void)
Definition: SoAction.cpp:1044
static void postWarning(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:324
The SoAction class is the base class for all traversal actions.
Definition: SoAction.h:67
SbBox3f project(void) const
Definition: SbXfBox3f.cpp:649
SoGetBoundingBoxAction(const SbViewportRegion &vp)
Definition: SoGetBoundingBoxAction.cpp:265
The SoFullPath class allows examination of hidden children in paths.
Definition: SoFullPath.h:29
const SbVec3f & getCenter(void) const
Definition: SoGetBoundingBoxAction.cpp:332
SoGetBoundingBoxAction::ResetType getWhatReset(void) const
Definition: SoGetBoundingBoxAction.cpp:424
virtual ~SoGetBoundingBoxAction()
Definition: SoGetBoundingBoxAction.cpp:278
The SbXfBox3f class is a 3 dimensional box with floating point coordinates and an attached transforma...
Definition: SbXfBox3f.h:31
SbMatrix & multRight(const SbMatrix &m)
Definition: SbMatrix.cpp:1240
SoNode * getTail(void) const
Definition: SoFullPath.cpp:74
SbBool containsPath(const SoPath *const path) const
Definition: SoPath.cpp:611
void transform(const SbMatrix &m)
Definition: SbXfBox3f.cpp:116
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:43
static void postInfo(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:334
void checkResetAfter(void)
Definition: SoGetBoundingBoxAction.cpp:458
void makeEmpty(void)
Definition: SbBox3f.cpp:424
const SbViewportRegion & getViewportRegion(void) const
Definition: SoGetBoundingBoxAction.cpp:298
SbVec3f & setValue(const float v[3])
Definition: SbVec3f.cpp:461
SoState * getState(void) const
Definition: SoAction.cpp:1028
void checkResetBefore(void)
Definition: SoGetBoundingBoxAction.cpp:434
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
void setInCameraSpace(const SbBool flag)
Definition: SoGetBoundingBoxAction.cpp:349
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.
Definition: SoGetBoundingBoxAction.h:34
SbBool isCenterSet(void) const
Definition: SoGetBoundingBoxAction.cpp:561
SbBool isResetBefore(void) const
Definition: SoGetBoundingBoxAction.cpp:413
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:31
void extendBy(const SbVec3f &pt)
Definition: SbXfBox3f.cpp:169
const SoPath * getResetPath(void) const
Definition: SoGetBoundingBoxAction.cpp:390
static void initClass(void)
Definition: SoAction.cpp:392
SbBox3f getBoundingBox(void) const
Definition: SoGetBoundingBoxAction.cpp:307
void extendBy(const SbBox3f &box)
Definition: SoGetBoundingBoxAction.cpp:485
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
ResetType
Definition: SoGetBoundingBoxAction.h:45
static SbMatrix identity(void)
Definition: SbMatrix.cpp:748
SbBool isEmpty(void) const
Definition: SbBox3f.cpp:436
void setResetPath(const SoPath *path, const SbBool resetbefore=1, const ResetType what=ALL)
Definition: SoGetBoundingBoxAction.cpp:374
SoState * state
Definition: SoAction.h:132
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17