SoCameraInteractorViewIn Method (SoNode, SbViewportRegion) |
Move camera to the center of the scene defined by the specified node.
Namespace: OIV.Inventor.ViewerComponentsAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public void ViewIn(
SoNode node,
SbViewportRegion vpRegion
)
Public Sub ViewIn (
node As SoNode,
vpRegion As SbViewportRegion
)
public:
void ViewIn(
SoNode^ node,
SbViewportRegion vpRegion
)
member ViewIn :
node : SoNode *
vpRegion : SbViewportRegion -> unit
Parameters
- node
- Type: OIV.Inventor.NodesSoNode
root node of the scene
- vpRegion
- Type: OIV.InventorSbViewportRegion
the actual viewport region
Remarks Compute the bounding box of the scene and move the camera to the center of this box. The near and far clipping planes will be adjusted to see the inside of the box.
See Also