Click or drag to resize
SoViewingCubesceneCamera Property

Camera which is synchronized with this viewing cube.

Namespace: OIV.Inventor.ViewerComponents.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public SoSFNode sceneCamera { get; }

Property Value

Type: SoSFNode
Remarks

When using a viewing cube with a SceneOrbiter, the method SceneOrbiter.enableViewingCube(true) automatically sets the field sceneCamera.

However, to use a viewing cube with a SceneExaminer, the following code sample gives an example to set the field OIV.Inventor.ViewerComponents.Nodes.SoViewingCube.sceneCamera.

SceneExaminer sceneExaminer = RenderAreaExaminer.SceneInteractor;
SoViewingCube viewingCube = new SoViewingCube();
viewingCube.sceneCamera.Value = sceneExaminer.Camera;
sceneExaminer.AddChild(viewingCube);

See Also