Debian Codegraph @

doc/man/man3/ivm/engines/SoComputeBoundingBox.ivm

raw
1 NAME SoComputeBoundingBox SoComputeBBox "" {
2 computes the bounding box and center of a scene graph
3 }
4
5 DESC {
6 This engine computes the bounding box and center of a scene graph.
7 The scene graph can be defined by a path or by a root node.
8 \p
9 If the \vpath\. input is not NULL, the
10 bounding box of the graph defined by the path will be computed.
11 If \vpath\. is NULL, but the \vnode\. input is not NULL, the bounding
12 box is computed on the graph rooted by the node.
13 By default, the two inputs are NULL.
14 If both the inputs are NULL, the outputs are disabled.
15 \p
16 The engine uses a default viewport region. If the graph includes
17 screen-based objects (such as \cSoText2\.) you can call \m\+setViewportRegion()\. \-SoComputeBBoxSetVPReg()\.\.
18 on the engine instance to set up the correct viewport region to use.
19 }
20
21 INCLUDE engines/SoComputeBoundingBox.h
22
23 INPUT node { Defines the graph for which the bounding box is computed.}
24 INPUT path { Alternatively, defines the graph for which the
25 bounding box is computed.}
26
27 OUTPUT min { Minimum point of the computed bounding box. }
28 OUTPUT max { Maximum point of the computed bounding box. }
29 OUTPUT boxCenter { Center of the computed bounding box.}
30 OUTPUT objectCenter { Center of the objects in the graph. }
31
32 METHOD "" SoComputeBoundingBox()
33 { Constructor }
34 METHOD setVPReg void setViewportRegion(const SbViewportRegion &vpReg);
35 { Sets the viewport region to use for the bounding box computation. }
36 METHOD getVPReg const SbViewportRegion & getViewportRegion();
37 { Returns the viewport region to use for the bounding box computation. }
38
39 ALSO { SoEngineOutput, SoGetBoundingBoxAction, SbBox3f }