BoundingBoxListener

MacroModule

genre

InventorMain

authors

Christian Schumann, Christian Rieder

package

FMEstable/ReleaseMeVis

definition

BoundingBoxListener.def

see also

SoComputeBoundingBox

keywords

Bounding, box, inventor, listener

Purpose

Notifies changes of the scene bounding box. Optionally an object selection is used. Can be used to trigger viewAll() on a SoExaminerViewer on scene change for example

Usage

Connect scene below.

Windows

Default Panel

../../../Projects/BoundingBoxListener/Modules/mhelp/Images/Screenshots/BoundingBoxListener._default.png

Input Fields

scene

name: scene, type: SoNode

Input inventor scene.

Parameter Fields

Field Index

Allow2DBounding Box: Bool

On: Bool

Bounding Box Changed: Trigger

Size: Vector3

Center: Vector3

Valid: Bool

Epsilon: Float

Listen To Object Center: Bool

Max: Vector3

Min: Vector3

Object Center: Vector3

Visible Fields

On

name: on, type: Bool, default: TRUE

Turns module on/off

Epsilon

name: epsilon, type: Float, default: 9.9999997e-05

Used to compute bounding box validity. max must at least be min + epsilon.

Allow2DBounding Box

name: allow2DBoundingBox, type: Bool, default: FALSE

If true, it is sufficient if the bounding box has a size larger 0 in one dimension. If false, a size larger 0 is required in all dimensions for validity.

Min

name: min, type: Vector3, persistent: no

Output of minimal bounding box coordinates

Max

name: max, type: Vector3, persistent: no

Output of maximal bounding box coordinates

Center

name: center, type: Vector3, persistent: no

Output of bounding box center

Object Center

name: objectCenter, type: Vector3, persistent: no

Output of object center

Size

name: size, type: Vector3, persistent: no

Output of bounding box size

Valid

name: valid, type: Bool, persistent: no

Is true if max is larger then man by at least epsilon.

Bounding Box Changed

name: boundingBoxChanged, type: Trigger

Triggered on any change of the bounding box

Listen To Object Center

name: inListenToObjectCenter, type: Bool, default: FALSE

If active, the modules listens to changes of the object center that do not modify the bounding box as well.