|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISceneHookHelper
Provides access to members needed when developing commands to work with the SceneControl, ArcScene, and custom controls and applications.
Use the ISceneHookHelper interface to return the Scene, SceneGraph, SceneViewer and Camera of the hook passed to the ICommand::OnCreate event regardless of whether the hook is a SceneControl, ToolbarControl (with a 'buddy' SceneControl) or ArcScene.
Method Summary | |
---|---|
ISceneViewer |
getActiveViewer()
Active scene viewer of hooked control or application. |
ICamera |
getCamera()
Camera of hooked control or application. |
Object |
getHook()
Hook object that should be the same as the hook object passed in ICommand::OnCreate. |
IScene |
getScene()
Scene of hooked control or application. |
ISceneGraph |
getSceneGraph()
SceneGraph of hooked control or application. |
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 SceneControl, ToolbarControl or ArcScene.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IScene getScene() throws IOException, AutomationException
The IScene object of the hook passed to the ICommand::OnCreate event. The Scene is returned regardless of whether the hook is a SceneControl, ToolbarControl (with a 'buddy' SceneControl) or ArcScene.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISceneGraph getSceneGraph() throws IOException, AutomationException
The ISceneGraph object of the hook passed to the ICommand::OnCreate event. The SceneGraph is returned regardless of whether the hook is a SceneControl, ToolbarControl (with a 'buddy' SceneControl) or ArcScene.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISceneViewer getActiveViewer() throws IOException, AutomationException
The ISceneViewer object of the hook passed to the ICommand::OnCreate event. The ActiveViewer is returned regardless of whether the hook is a SceneControl, ToolbarControl (with a 'buddy' SceneControl) or ArcScene.
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 ActiveViewer is returned regardless of whether the hook is a SceneControl, ToolbarControl (with a 'buddy' SceneControl) or ArcScene.
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 |