|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.controls.ISceneControlProxy
public class ISceneControlProxy
Provides access to members that control the SceneControl.
The ISceneControl interface is a starting point for any tasks related to the SceneControl, such as setting general appearance, adding scene documents, managing the scene, scene graph and camera, and setting the current tool.
| Field Summary | |
|---|---|
boolean |
noncastable
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
| Constructor Summary | |
|---|---|
|
ISceneControlProxy()
|
|
ISceneControlProxy(Object obj)
|
protected |
ISceneControlProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
aboutBox()
Displays a dialog of information about the SceneControl. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
boolean |
checkSxFile(String fileName)
Checks if a filename is a scene document. |
boolean |
esri_isEnabled()
Indicates whether the SceneControl can respond to user generated events. |
void |
esri_setEnabled(boolean pbool)
Indicates whether the SceneControl can respond to user generated events. |
int |
getAppearance()
The appearance of the SceneControl. |
int |
getBackColor()
Background color of the SceneControl. |
int |
getBorderStyle()
The border style of the SceneControl. |
ICamera |
getCamera()
The Camera object associated with the SceneControl. |
ITool |
getCurrentTool()
Current active tool for the SceneControl. |
Object |
getCustomProperty()
A property to associate data with a control. |
String |
getDocumentFilename()
The filename of the last scene document loaded into the control. |
int |
getHWnd()
Handle to the window associated with the SceneControl. |
int |
getKeyIntercept()
A property that specifies interception of key strokes that are normally handled by the container. |
Picture |
getMouseIcon()
Custom mouse icon used if MousePointer is 99. |
int |
getMousePointer()
The mouse pointer displayed over the SceneControl. |
Object |
getObject()
A property that returns the underlying control. |
IScene |
getScene()
The Scene object associated with the SceneControl. |
ISceneGraph |
getSceneGraph()
The SceneGraph object associated with the SceneControl. |
ISceneViewer |
getSceneViewer()
The SceneViewer associated with the SceneControl. |
int |
getTipDelay()
The delay before scene tips are shown. |
int |
getTipStyle()
The style of scene tips. |
boolean |
isNavigate()
Indicates if the SceneControl performs default scene navigation in response to mouse events. |
boolean |
isOverrideBackColor()
Indicates whether to override the background color of the scene document. |
boolean |
isShowSceneTips()
Indicates if scene tips are shown. |
void |
loadSxFile(String sxPath)
Loads a scene document into the SceneControl. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setAppearance(int pappearance)
The appearance of the SceneControl. |
void |
setBackColor(int pclr)
Background color of the SceneControl. |
void |
setBorderStyle(int pstyle)
The border style of the SceneControl. |
void |
setCameraByRef(ICamera pVal)
The Camera object associated with the SceneControl. |
void |
setCurrentToolByRef(ITool pVal)
Current active tool for the SceneControl. |
void |
setCustomProperty(Object pVal)
A property to associate data with a control. |
void |
setDocumentFilename(String documentFilename)
The filename of the last scene document loaded into the control. |
void |
setKeyIntercept(int pVal)
A property that specifies interception of key strokes that are normally handled by the container. |
void |
setMouseIconByRef(Picture ppMouseIcon)
Custom mouse icon used if MousePointer is 99. |
void |
setMousePointer(int ppointer)
The mouse pointer displayed over the SceneControl. |
void |
setNavigate(boolean pVal)
Indicates if the SceneControl performs default scene navigation in response to mouse events. |
void |
setOverrideBackColor(boolean pVal)
Indicates whether to override the background color of the scene document. |
void |
setSceneGraphByRef(ISceneGraph pVal)
The SceneGraph object associated with the SceneControl. |
void |
setShowSceneTips(boolean show)
Indicates if scene tips are shown. |
void |
setTipDelay(int delay)
The delay before scene tips are shown. |
void |
setTipStyle(int style)
The style of scene tips. |
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
|---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean noncastable
| Constructor Detail |
|---|
public ISceneControlProxy()
public ISceneControlProxy(Object obj)
throws IOException
IOException
protected ISceneControlProxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class com.esri.arcgis.interop.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public void setBackColor(int pclr)
throws IOException,
AutomationException
setBackColor in interface ISceneControlpclr - The pclr (A COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getBackColor()
throws IOException,
AutomationException
Returns or sets the Background Color of the SceneControl. Internally the OLE_Color is stored as a long integer where the value may be calculated for any RGB combination as follows:
OLE_Color = (Red) + (Green * 256) + (Blue * 256 * 256)
Where Red, Green and Blue are Long Integers within the range 0 - 255.
To ensure the BackColor property overrides any background color set in a scene document, set the OverrideBackColor to true.
getBackColor in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBorderStyle(int pstyle)
throws IOException,
AutomationException
setBorderStyle in interface ISceneControlpstyle - A com.esri.arcgis.controls.esriControlsBorderStyle constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getBorderStyle()
throws IOException,
AutomationException
Returns or sets the border style of a SceneControl. By default a border is drawn.
getBorderStyle in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void esri_setEnabled(boolean pbool)
throws IOException,
AutomationException
esri_setEnabled in interface ISceneControlpbool - The pbool (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean esri_isEnabled()
throws IOException,
AutomationException
esri_isEnabled in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAppearance(int pappearance)
throws IOException,
AutomationException
setAppearance in interface ISceneControlpappearance - A com.esri.arcgis.controls.esriControlsAppearance constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getAppearance()
throws IOException,
AutomationException
Returns or sets the paint style of a SceneControl to either Flat or 3D. By default the appearance is flat.
getAppearance in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMousePointer(int ppointer)
throws IOException,
AutomationException
setMousePointer in interface ISceneControlppointer - A com.esri.arcgis.controls.esriControlsMousePointer constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMousePointer()
throws IOException,
AutomationException
Use this property when you want to indicate changes in functionality as the mouse pointer passes over the SceneControl. The esriPointerArrowHourglass setting (11) is useful for indicating that the user should wait for a process or operation to finish.
getMousePointer in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMouseIconByRef(Picture ppMouseIcon)
throws IOException,
AutomationException
setMouseIconByRef in interface ISceneControlppMouseIcon - A reference to a com.esri.arcgis.support.ms.stdole.Picture (A com.esri.arcgis.support.ms.stdole.Picture COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Picture getMouseIcon()
throws IOException,
AutomationException
The MouseIcon property provides a custom icon that is used when the MousePointer property is set to esriPointerArrowHourglass (99).
In most development evironments the control's property pages can be used to load either a cursor (.cur) or icon (.ico) file. A cursor contains a custom 'hotspot' location and can be any size. The 'hotspot' location for an icon file defaults to the center of the icon. This property cannot be used to load animated cursor (.ani) files.
To programatically create an object implementing IPictureDisp there is the win32 function OleLoadPicture or helper methods depending on the development environment.
getMouseIcon in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getHWnd()
throws IOException,
AutomationException
The operating environment identifies each window, form and control in an application by assigning it a handle, or hWnd. Many ArcObjects methods and Windows API calls require the hWnd as an argument.
getHWnd in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void aboutBox()
throws IOException,
AutomationException
The AboutBox method causes a modal dialog box to display on top of the SceneControl, containing information about the version and creation date of the SceneControl as well as listing relevant legal and copyright information from ESRI.
aboutBox in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void loadSxFile(String sxPath)
throws IOException,
AutomationException
Loads a scene document (*.sxd) into the SceneControl. Use the CheckSxFile method to determine if the specified scene document is a valid scene document.
loadSxFile in interface ISceneControlsxPath - The sxPath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IScene getScene()
throws IOException,
AutomationException
This is a shortcut to the ISceneGraph::Scene property.
getScene in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISceneGraph getSceneGraph()
throws IOException,
AutomationException
This is a shortcut to the ISceneViewer::SceneGraph property.
getSceneGraph in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSceneGraphByRef(ISceneGraph pVal)
throws IOException,
AutomationException
setSceneGraphByRef in interface ISceneControlpVal - A reference to a com.esri.arcgis.analyst3d.ISceneGraph (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISceneViewer getSceneViewer()
throws IOException,
AutomationException
This is the SceneViewer contained within the SceneControl.
getSceneViewer in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ICamera getCamera()
throws IOException,
AutomationException
This is a shortcut to the ISceneViewer::Camera property.
getCamera in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCameraByRef(ICamera pVal)
throws IOException,
AutomationException
setCameraByRef in interface ISceneControlpVal - A reference to a com.esri.arcgis.analyst3d.ICamera (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITool getCurrentTool()
throws IOException,
AutomationException
The CurrentTool is the tool used to interact will the SceneControl's display. Always check if a tool is enabled before setting it to the CurrentTool property, otherwise a user will be able to use a tool that is actually disabled.
When the CurrentTool is set the following events occur:
Within an ITool implementation it is recommended that the ITool::Deactivate event returns true. This allows a 'new' CurrentTool to be set, and allows the release of the CurrentTool when an application is shutting down.
getCurrentTool in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCurrentToolByRef(ITool pVal)
throws IOException,
AutomationException
setCurrentToolByRef in interface ISceneControlpVal - A reference to a com.esri.arcgis.systemUI.ITool (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isNavigate()
throws IOException,
AutomationException
The Navigate property determines whether the default SceneControl navigation functionality is enabled at run time. By default the Navigate property is set to false. When the Navigate property is set to true, the end user can use the left mouse button to navigate backwards and forwards and to the left and right of the display, and the right mouse button to zoom in and out on the display.
When the Navigate property is set to true, the OnMouseDown, OnMouseMove, OnMouseUp events are being intercepted. As such, care must be taken by developers to avoid the display becoming confused when:
isNavigate in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNavigate(boolean pVal)
throws IOException,
AutomationException
setNavigate in interface ISceneControlpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean checkSxFile(String fileName)
throws IOException,
AutomationException
Determines whether the specified Scene Document (*.sxd) is a valid scene document and can be loaded into the SceneControl. The method verifies the file exists and verifies the file internals conform to an expected storage format. The method does not read and validate the entire contents of the file; use the LoadSxFile to do this.
checkSxFile in interface ISceneControlfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getCustomProperty()
throws IOException,
AutomationException
Use the CustomProperty to associate any useful data with the SceneControl. This is similar to a 'Tag' property, and can be use to store strings, numbers and objects.
getCustomProperty in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCustomProperty(Object pVal)
throws IOException,
AutomationException
setCustomProperty in interface ISceneControlpVal - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDocumentFilename(String documentFilename)
throws IOException,
AutomationException
setDocumentFilename in interface ISceneControldocumentFilename - The documentFilename (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDocumentFilename()
throws IOException,
AutomationException
Returns the DocumentFilename of the last document loaded into the SceneControl with the LoadSxFile method. An empty string will be returned if no document is loaded.
getDocumentFilename in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getObject()
throws IOException,
AutomationException
In some development environments it is not possible to query interface directly on the control to other COM interfaces, beacuse the control is contained within a wrapper object. To get the real control use the Object property.
getObject in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOverrideBackColor(boolean pVal)
throws IOException,
AutomationException
setOverrideBackColor in interface ISceneControlpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isOverrideBackColor()
throws IOException,
AutomationException
The OverrideBackColor property determines whether the background color of any document loaded into the SceneControl is overriden and replaced with the SceneControl's BackColor. By default this property is false.
isOverrideBackColor in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowSceneTips(boolean show)
throws IOException,
AutomationException
setShowSceneTips in interface ISceneControlshow - The show (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowSceneTips()
throws IOException,
AutomationException
Determines whether scene tips are displayed (if they exist) as the mouse moves over layer features. By default the ShowSceneTips property is set to false.
isShowSceneTips in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTipStyle(int style)
throws IOException,
AutomationException
setTipStyle in interface ISceneControlstyle - A com.esri.arcgis.systemUI.esriTipStyle constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTipStyle()
throws IOException,
AutomationException
Returns or sets the TipStyle used by the scene tips when ShowSceneTips is set to true to either solid or transparent. By default the TipStyle is solid.
getTipStyle in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTipDelay(int delay)
throws IOException,
AutomationException
setTipDelay in interface ISceneControldelay - The delay (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTipDelay()
throws IOException,
AutomationException
Returns or sets the time delay in milliseconds before scene tips are displayed. By default TipDelay is 500 milliseconds.
getTipDelay in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getKeyIntercept()
throws IOException,
AutomationException
Returns or sets keys on the keyboard that will be intercepted by the SceneControl, triggering the OnKeyDown and OnKeyUp events when pressed. These keys are often hidden from the SceneControl by the development environment container. By default the KeyIntercept is set to esriKeyInterceptNone.
Many development environment containers use the up, down, left and right arrow keys to change control focus on a form. These keys can also be useful for navigating around the display. To intercept the arrow keys and the Tab key combine the enum values using a logical OR operation (esriKeyInterceptArrowKeys OR esriKeyInterceptTabKey, which is 1 OR 4 = 5).
getKeyIntercept in interface ISceneControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setKeyIntercept(int pVal)
throws IOException,
AutomationException
setKeyIntercept in interface ISceneControlpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||