A subclass of SoShape used to create an axis aligned wire frame box based on the minBounds and maxBounds fields. More...
#include <SoFCBoundingBox.h>
Public Member Functions | |
SoFCBoundingBox () | |
Static Public Member Functions | |
static void | finish () |
static void | initClass () |
Public Attributes | |
SoSFBool | coordsOn |
If true, the coordinates are displayed at each vertex. | |
SoSFBool | dimensionsOn |
If true, the dimensions are displayed in x,y and z direction. | |
SoSFVec3f | maxBounds |
maximum box coordinates | |
SoSFVec3f | minBounds |
minimum box coordinates | |
Protected Member Functions | |
virtual void | computeBBox (SoAction *action, SbBox3f &box, SbVec3f ¢er) |
virtual void | generatePrimitives (SoAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
virtual | ~SoFCBoundingBox () |
A subclass of SoShape used to create an axis aligned wire frame box based on the minBounds and maxBounds fields.
The class also has a field which can be toggled on or off for displaying text coordinate labels at the vertices of the box.
Definition at line 52 of file SoFCBoundingBox.h.
SoFCBoundingBox::SoFCBoundingBox | ( | ) |
Definition at line 74 of file SoFCBoundingBox.cpp.
References bBoxEdges, draftlibs::dxfImportObjects::CENTER, coordsOn, dimensionsOn, maxBounds, and minBounds.
SoFCBoundingBox::~SoFCBoundingBox | ( | ) | [protected, virtual] |
Definition at line 127 of file SoFCBoundingBox.cpp.
void SoFCBoundingBox::computeBBox | ( | SoAction * | action, | |
SbBox3f & | box, | |||
SbVec3f & | center | |||
) | [protected, virtual] |
Definition at line 225 of file SoFCBoundingBox.cpp.
References SketcherExample::f, maxBounds, and minBounds.
void SoFCBoundingBox::finish | ( | void | ) | [static] |
Definition at line 231 of file SoFCBoundingBox.cpp.
void SoFCBoundingBox::generatePrimitives | ( | SoAction * | action | ) | [protected, virtual] |
Definition at line 221 of file SoFCBoundingBox.cpp.
void SoFCBoundingBox::GLRender | ( | SoGLRenderAction * | action | ) | [protected, virtual] |
Definition at line 132 of file SoFCBoundingBox.cpp.
References bBoxVerts, coordsOn, dimensionsOn, SketcherExample::f, maxBounds, minBounds, and RobotExample::t.
void SoFCBoundingBox::initClass | ( | void | ) | [static] |
Definition at line 69 of file SoFCBoundingBox.cpp.
Referenced by Gui::SoFCDB::init().
SoSFBool Gui::SoFCBoundingBox::coordsOn |
If true, the coordinates are displayed at each vertex.
Definition at line 65 of file SoFCBoundingBox.h.
Referenced by GLRender(), Gui::ViewProviderGeometryObject::showBoundingBox(), and SoFCBoundingBox().
SoSFBool Gui::SoFCBoundingBox::dimensionsOn |
If true, the dimensions are displayed in x,y and z direction.
Definition at line 66 of file SoFCBoundingBox.h.
Referenced by GLRender(), Gui::ViewProviderGeometryObject::showBoundingBox(), and SoFCBoundingBox().
SoSFVec3f Gui::SoFCBoundingBox::maxBounds |
maximum box coordinates
Definition at line 64 of file SoFCBoundingBox.h.
Referenced by computeBBox(), GLRender(), SoFCBoundingBox(), and Gui::ViewProviderGeometryObject::updateData().
SoSFVec3f Gui::SoFCBoundingBox::minBounds |
minimum box coordinates
Definition at line 63 of file SoFCBoundingBox.h.
Referenced by computeBBox(), GLRender(), SoFCBoundingBox(), and Gui::ViewProviderGeometryObject::updateData().