man SoComputeBoundingBox () - computes the bounding box and center of a scene graph

NAME

SoComputeBoundingBox - computes the bounding box and center of a scene graph

INHERITS FROM

SoBase > SoFieldContainer > SoEngine > SoComputeBoundingBox

SYNOPSIS

#include <Inventor/engines/SoComputeBoundingBox.h> Inputs from class SoComputeBoundingBox: c } c } node

c } c } path Outputs from class SoComputeBoundingBox: c } c } min

c } c } max

c } c } boxCenter

c } c } objectCenter Methods from class SoComputeBoundingBox: c } c } SoComputeBoundingBox()

c } c } setViewportRegion(const SbViewportRegion &vpReg);

c } c } getViewportRegion(); Methods from class SoEngine: c } c } getClassTypeId()

c } c } getOutputs(SoEngineOutputList &list) const

c } c } getOutput(const SbName &outputName) const

c } c } getOutputName(const SoEngineOutput *output, SbName &outputName) const

c } c } copy() const

c } c } getByName(const SbName &name)

c } c } getByName(const SbName &name, SoEngineList &list) Methods from class SoFieldContainer: c } c } setToDefaults()

c } c } hasDefaultValues() const

c } c } fieldsAreEqual(const SoFieldContainer *fc) const

c } c } copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)

c } c } set(const char *fieldDataString)

c } c } get(SbString &fieldDataString)

c } c } getFields(SoFieldList &resultList) const

c } c } getField(const SbName &fieldName) const

c } c } getFieldName(const SoField *field, SbName &fieldName) const

c } c } isNotifyEnabled() const

c } c } enableNotify(SbBool flag) Methods from class SoBase: c } c } ref()

c } c } unref() const

c } c } unrefNoDelete() const

c } c } touch()

c } c } getTypeId() const

c } c } isOfType(SoType type) const

c } c } setName(const SbName &name)

c } c } getName() const

DESCRIPTION

This engine computes the bounding box and center of a scene graph. The scene graph can be defined by a path or by a root node. If the path input is not NULL, the bounding box of the graph defined by the path will be computed. If path is NULL, but the node input is not NULL, the bounding box is computed on the graph rooted by the node. By default, the two inputs are NULL. If both the inputs are NULL, the outputs are disabled. The engine uses a default viewport region. If the graph includes screen-based objects (such as SoText2) you can call setViewportRegion() on the engine instance to set up the correct viewport region to use.

INPUTS

c } c } node

Defines the graph for which the bounding box is computed. c } c } path

Alternatively, defines the graph for which the bounding box is computed.

OUTPUTS

c } c } min

Minimum point of the computed bounding box. c } c } max

Maximum point of the computed bounding box. c } c } boxCenter

Center of the computed bounding box. c } c } objectCenter

Center of the objects in the graph.

METHODS

c } c } SoComputeBoundingBox()

Constructor c } c } setViewportRegion(const SbViewportRegion &vpReg);

Sets the viewport region to use for the bounding box computation. c } c } getViewportRegion();

Returns the viewport region to use for the bounding box computation.

FILE FORMAT/DEFAULTS

ComputeBoundingBox {
node	NULL
path	NULL
}

SEE ALSO

SoEngineOutput, SoGetBoundingBoxAction, SbBox3f