Gui::SoFCBoundingBox Class Reference

A subclass of SoShape used to create an axis aligned wire frame box based on the minBounds and maxBounds fields. More...

#include <SoFCBoundingBox.h>

List of all members.

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 &center)
virtual void generatePrimitives (SoAction *action)
virtual void GLRender (SoGLRenderAction *action)
virtual ~SoFCBoundingBox ()

Detailed Description

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.

Note:
Original source are taken from http://www.wheatchex.com/projects/openinventor/bbox/BoundingBox.h and http://www.wheatchex.com/projects/openinventor/bbox/BoundingBox.cpp
Date:
November 12th, 2001
Author:
Josh Grant

Definition at line 52 of file SoFCBoundingBox.h.


Constructor & Destructor Documentation

SoFCBoundingBox::SoFCBoundingBox (  ) 
SoFCBoundingBox::~SoFCBoundingBox (  )  [protected, virtual]

Definition at line 127 of file SoFCBoundingBox.cpp.


Member Function Documentation

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]
void SoFCBoundingBox::initClass ( void   )  [static]

Definition at line 69 of file SoFCBoundingBox.cpp.

Referenced by Gui::SoFCDB::init().


Member Data Documentation

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().

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().

maximum box coordinates

Definition at line 64 of file SoFCBoundingBox.h.

Referenced by computeBBox(), GLRender(), SoFCBoundingBox(), and Gui::ViewProviderGeometryObject::updateData().

minimum box coordinates

Definition at line 63 of file SoFCBoundingBox.h.

Referenced by computeBBox(), GLRender(), SoFCBoundingBox(), and Gui::ViewProviderGeometryObject::updateData().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:03 2011 for FreeCAD by  doxygen 1.6.1