Using Scene Control


In this topic


About the SceneControl

The SceneControl corresponds to the 3D view of the ArcScene Desktop application and provides a way to view and investigate small spatial data layers in 3D. The SceneControl requires a 3D Analyst extension.

Scene objects

The SceneControl encapsulates an object implementing ISceneViewer. This is the same ISceneViewer ArcObject found inside the ArcScene application. The ISceneViewer Arcobject contains a getCamera() method that returns a ICamera ArcObject, and the ICamera contains  get/set methods for Observer and Target position.
The SceneControl provides shortcuts to frequently used properties and methods on the object it encapsulates. For example, the SceneControl has set/get methods for Camera, Scene, SceneGraph, and SceneViewer ArcObjects. For more information about these objects, see the 3DAnalyst library overview.

Loading scene documents

The scene document can be set at design time through the SceneControl property editor (in development environments that support property page capability). The SceneControl attempts to load this document when it is created. Alternatively, a scene document can be loaded into the SceneControl programmatically using the checkSxFile() method to determine whether the document is valid and the loadSxFile() method to load in the scene document. See the following code snippet:
[Java]
String ArcGISInstallDir = System.getenv("ARCGISHOME");
String filePath = ArcGIsInstallDir + "java/samples/data/scenedata/Groundwater.sxd";
if (sceneControl1.checkSxFile(filePath))
    sceneControl1.loadSxFile(filePath);

Navigation functionality

The SceneControl has built-in navigation functionality that can be turned on at design time through the SceneControl property editor or programmatically with the setNavigate() method. This functionality enables the end user to use the mouse button to navigate backward, forward, and to the left and right of the display and the right mouse button to zoom in to and out from the display.


See Also:

Controls library overview
How to get Started with SceneControl Property Pages
Sample: SceneBean, TOCBean, ToolbarBean




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime: 3D
ArcView: 3D Analyst
ArcEditor: 3D Analyst
ArcInfo: 3D Analyst