ArcObjects Library Reference  (3DAnalyst)    

I3DViewer Interface

Provides access to members that conrtrol the 3D viewer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Members

Description
Read/write property Camera The viewer's camera.
Read/write property Caption The viewer's caption.
Method ClearGesture Clears the last gesture.
Method DrawToMetafile Draws the contents of the viewer to a device.
Read/write property FullScreenEnabled Indicates if key [F11] is enabled to toggle full screen drawing.
Read/write property GestureEnabled Indicates if gesturing is enabled.
Read/write property GestureSensitivity The gesture sensitivity as indicated by number of pixels.
Method GetScreenShot Saves the content of the viewer and any windows superimposed on the scene viewer as an image.
Method GetSnapshot Saves the content of the viewer as an image.
Read-only property hDC The associated device context.
Read-only property hWnd The associated window handle.
Read-only property IsFullScreen Indicates if full screen is the current drawing mode.
Method OverrideDefaultHandler Supersedes the default event handler.
Method Redraw Redraws the viewer.
Method SetFullScreen Full screen drawing if the argument is TRUE, otherwise normal window drawing.

Remarks

This interface could be seen as a newer version or replacement of ISceneViewer interface.  It keeps the basic members of the ISceneViewer interface and added some new members, with the most notable ones being those for full screen control.  See the sample VBA code for toggling between normal window and full screen in ArcScene.

[Visual Basic 6.0]

'Toggling between normal scene viewer size and full screen:

  Dim pDoc As ISxDocument: Set pDoc = ThisDocument
  Dim pScene As IScene: Set pScene = pDoc.Scene
  Dim pSG As ISceneGraph: Set pSG = pScene.SceneGraph
 
  Dim pV As I3DViewer: Set pV = pSG.ActiveViewer
 
  If pV.IsFullScreen Then
    pV.SetFullScreen False
  Else
    pV.SetFullScreen True
  End If

 


Feedback Send feedback on this page