4. Scene Operations

Feedback


Overview

In the 3D scene, you can browse data conveniently in real-time, such as 2D\3D points, 2D\3D lines, surface, text, DEM, Grid, TIN, image, etc., also you can implement functionalities of fly and distance measurement. The SuperMap iClient 7C for 3D provides classes, such as the Pan, Select, MeasureArea, MeasureDistance, MeasureHeight, NullAction and PanSelec class, to implement the view operation in real time and the measure function on 3D, these classes are inherited from the SceneAction, and provide FlyingOperator for the fly operation.

Here describes with the following examples, such as full extent, pan, fly, choose the model, and distance measurement.

 FlyingOperator the structure chart of the fly status class

FlyingOperator the structure chart of the fly status class

 FlyingOperator common methods

  Interface Description
flyTo Flies from the current scene to the specified camera position by the specified way within the specified time.
flyToBounds Flies from the current scene to the specified Bounds area within the specified time.
flyToGeometry Flies from the current scene to the specified geometric object by the specified way within the specified time.
play Flies according to the specified route.
moveTo Moves the 3D layer with the specified index number in the 3D layer set to the location with the specified index number.
moveToBottom >Moves the 3D layer with the specified index number in the 3D layer set to the bottom.
moveToTop Moves the 3D layer with the specified index number in the 3D layer set to the top.
moveUp Moves the 3D layer with the specified index number in the 3D layer set up one level.
removeAll Removes all the layers in the layer set.
removeAt Removes the layers with the specified layer name or index number.

SceneAction is the parent class of the other 3D view operation classes, such as the Pan, Select, MeasureArea, MeasureDistance, MeasureHeight, NullAction, PanSelect class. The users can extend it to implement a series of operations.

SceneAction diagram

ScencAction the common attributes

  Interface Description
name Gets or sets the name of the interaction operation. When the users develop a sub-class SceneAction by themselves, they can customize the name of this operation.
sceneControl Gets or sets.
sceneName Gets the name of the belonged scene service.
sceneAddress Gets the service address of the layer set.
  Interface Description
flyTo Flies from the current scene to the specified camera position by the specified way within the specified time.
flyToBounds Flies from the current scene to the specified Bounds area within the specified time.
flyToGeometry Flies from the current scene to the specified geometric object by the specified way within the specified time.
play Flies according to the specified route.
moveTo Moves the 3D layer with the specified index number in the 3D layer set to the location with the specified index number.
moveToBottom Moves the 3D layer with the specified index number in the 3D layer set to the bottom.
moveToTop Moves the 3D layer with the specified index number in the 3D layer set to the top.
moveUp Moves the 3D layer with the specified index number in the 3D layer set up one level.
removeAll Removes all the layers in the layer set.
removeAt Removes the layers with the specified layer name or index number.

The basic operations in the 3D scene