|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGlobeHookHelper
Provides access to members needed when developing commands to work with the GlobeControl, ArcGlobe, and custom controls and applications.
Use the IGlobeHookHelper interface to return the Globe, GlobeDisplay, SceneViewer and Camera of the hook passed to the ICommand::OnCreate event regardless of whether the hook is a GlobeControl, ToolbarControl (with a 'buddy' GlobeControl) or ArcGlobe.
Method Summary | |
---|---|
ISceneViewer |
getActiveViewer()
Active scene viewer of hooked control or application. |
ICamera |
getCamera()
Camera of hooked control or application. |
IGlobe |
getGlobe()
Globe of hooked control or application. |
IGlobeDisplay |
getGlobeDisplay()
GlobeDisplay of hooked control or application. |
Object |
getHook()
Hook object that should be the same as the hook object passed in ICommand::OnCreate. |
void |
setHookByRef(Object ppHook)
Hook object that should be the same as the hook object passed in ICommand::OnCreate. |
Method Detail |
---|
void setHookByRef(Object ppHook) throws IOException, AutomationException
ppHook
- A reference to another Automation Object (IDispatch) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getHook() throws IOException, AutomationException
The hook that is passed to the ICommand::OnCreate event. The hook is a GlobeControl or ArcGlobe.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGlobe getGlobe() throws IOException, AutomationException
The IGlobe object of the hook passed to the ICommand::OnCreate event. The Globe is returned regardless of whether the hook is a GlobeControl, ToolbarControl (with a 'buddy' GlobeControl) or ArcGlobe.
This property can return Nothing if the GlobeControl has not been initialized to share a GlobeDisplay with another GlobeControl.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGlobeDisplay getGlobeDisplay() throws IOException, AutomationException
The IGlobeDisplay object of the hook passed to the ICommand::OnCreate event. The GlobeDisplay is returned regardless of whether the hook is a GlobeControl, ToolbarControl (with a 'buddy' GlobeControl) or ArcGlobe.
This property can return Nothing if the GlobeControl has not been initialized to share a GlobeDisplay with another GlobeControl.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISceneViewer getActiveViewer() throws IOException, AutomationException
The ISceneViewer interface of the IGlobeViewer object of the hook passed to the ICommand::OnCreate event. The SceneViewer is returned regardless of whether the hook is a GlobeControl, ToolbarControl (with a 'buddy' GlobeControl) or ArcGlobe.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICamera getCamera() throws IOException, AutomationException
The ICamera object of the hook passed to the ICommand::OnCreate event. The Camera is returned regardless of whether the hook is a GlobeControl, ToolbarControl (with a 'buddy' GlobeControl) or ArcGlobe.
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 |