Class SoComputeBoundingBox
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.inventor.engines.SoComputeBoundingBox
-
- All Implemented Interfaces:
SafeDisposable
public class SoComputeBoundingBox extends SoEngine
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
pathinput is not NULL, the bounding box of the graph defined by the path will be computed. Ifpathis NULL, but thenodeinput 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 callsetViewportRegion()on the engine instance to set up the correct viewport region to use.File format/default:
ComputeBoundingBox {
node NULL path NULL - See Also:
SoEngineOutput,SoGetBoundingBoxAction,SbBox3f
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoEngineOutputboxCenter(SoSFVec3f) Center of the computed bounding box.SoEngineOutputmax(SoSFVec3f) Maximum point of the computed bounding box.SoEngineOutputmin(SoSFVec3f) Minimum point of the computed bounding box.SoSFNodenodeDefines the graph for which the bounding box is computed.SoEngineOutputobjectCenter(SoSFVec3f) Center of the objects in the graph.SoSFPathpathAlternatively, defines the graph for which the bounding box is computed.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoComputeBoundingBox()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SbViewportRegiongetViewportRegion()Returns the viewport region to use for the bounding box computation.voidsetViewportRegion(SbViewportRegion vpReg)Sets the viewport region to use for the bounding box computation.-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
node
public final SoSFNode node
Defines the graph for which the bounding box is computed.
-
path
public final SoSFPath path
Alternatively, defines the graph for which the bounding box is computed.
-
min
public final SoEngineOutput min
(SoSFVec3f) Minimum point of the computed bounding box.
-
max
public final SoEngineOutput max
(SoSFVec3f) Maximum point of the computed bounding box.
-
boxCenter
public final SoEngineOutput boxCenter
(SoSFVec3f) Center of the computed bounding box.
-
objectCenter
public final SoEngineOutput objectCenter
(SoSFVec3f) Center of the objects in the graph.
-
-
Method Detail
-
setViewportRegion
public void setViewportRegion(SbViewportRegion vpReg)
Sets the viewport region to use for the bounding box computation.
-
getViewportRegion
public SbViewportRegion getViewportRegion()
Returns the viewport region to use for the bounding box computation.
-
-