SoComputeBoundingBox Class Reference
[Engines]

Computes the bounding box and center of a scene graph. More...

#include <Inventor/engines/SoComputeBoundingBox.h>

Inheritance diagram for SoComputeBoundingBox:
SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoComputeBoundingBox ()
void setViewportRegion (const SbViewportRegion &vpReg)
const SbViewportRegiongetViewportRegion () const

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFNode node
SoSFPath path
SoEngineOutput min
SoEngineOutput max
SoEngineOutput boxCenter
SoEngineOutput objectCenter

Detailed Description

Computes the bounding box and center of a scene graph.

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.

FILE FORMAT/DEFAULT

SEE ALSO

SoEngineOutput, SoGetBoundingBoxAction, SbBox3f


Constructor & Destructor Documentation

SoComputeBoundingBox::SoComputeBoundingBox (  ) 

Constructor.


Member Function Documentation

static SoType SoComputeBoundingBox::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoEngine.

virtual SoType SoComputeBoundingBox::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Implements SoTypedObject.

const SbViewportRegion& SoComputeBoundingBox::getViewportRegion (  )  const

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

void SoComputeBoundingBox::setViewportRegion ( const SbViewportRegion vpReg  ) 

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


Member Data Documentation

( SoSFVec3f ) Center of the computed bounding box.

( SoSFVec3f ) Maximum point of the computed bounding box.

( SoSFVec3f ) Minimum point of the computed bounding box.

Defines the graph for which the bounding box is computed.

( SoSFVec3f ) Center of the objects in the graph.

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


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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/