SoViewingCubesceneCamera Property |
Camera which is synchronized with this viewing cube.
Namespace: OIV.Inventor.ViewerComponents.Nodes
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);