|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGMxApplication
Provides access to members that control the ArcGlobe Application object.
The IGMxApplication interface contains methods/properties to customize the ArGlobe desktop application and allows you to manipulate ArcGlobe application specific properties and methods, such as create a new secondary viewer, setting the default background sky color, making the TOC visible, copying to clipboard and exporting the current display to 2D images. In order to change the sky background color, DefaultHighBackgroundColor and DefaultLowBackgroundColor can be used to change the color of the background color when at a higher and lower altitudes, respectively. For specifying the low and high altitudes of the transition distance within which the sky background color changes from default low background color to default high background color, the SetDefaultBackGroundTransitionDistances can be used.
To create a secondary viewer for viewing data in a different perspective, the CreateSubView method is used. The ShowTOC method and TOCVisible boolean property can be used to the show/hide the Table of Contents dockable window. SetDefaultContentsView can be used to set the default TOC view to the current ative Table of Contents view.
Inorder to clear/suspend/restore animated gestrues with the Navigation tool in ArcGlobe, you can use the ClearGesture, SuspendGesture, RestoreGesture methods.
IApplication
Method Summary | |
---|---|
void |
clearGesture()
Clears gesture. |
void |
copyToClipboard()
Copies the current scene to the Clipboard. |
void |
createSubView()
Makes a new viewer. |
void |
export2d()
Exports the Current Document to a 2d file format. |
void |
export3d()
Exports the Current Document to a 3d file format. |
String |
getBuildNum()
The build number. |
void |
getDefaultBackgroundTransitionDistances(float[] lowAltitude,
float[] highAltitude)
The Default Background Transition Distances for New Documents. |
IRgbColor |
getDefaultHighBackgroundColor()
The Default High Background Color for New Documents. |
IRgbColor |
getDefaultLowBackgroundColor()
The Default Low Background Color for New Documents. |
IPage |
getPage()
The current page settings. |
IPaper |
getPaper()
The current paper settings. |
IPrinter |
getPrinter()
The current printer settings. |
ISelectionEnvironment |
getSelectionEnvironment()
The selection environment. |
boolean |
isTOCVisible()
Indicates if the TOC is visible. |
void |
restoreGesture()
Restores gesture. |
void |
setDefaultBackgroundTransitionDistances(float lowAltitude,
float highAltitude)
The Default Background Transition Distances for New Documents. |
void |
setDefaultContentsViews()
Set current TOC configuration as defaults in Normal.3dt. |
void |
setDefaultHighBackgroundColor(IRgbColor ppRgbColor)
The Default High Background Color for New Documents. |
void |
setDefaultLowBackgroundColor(IRgbColor ppRgbColor)
The Default Low Background Color for New Documents. |
void |
setPrinterByRef(IPrinter printer)
The current printer settings. |
void |
showContextMenu(int x,
int y)
Displays a context menu for the current selection. |
void |
showTOC(boolean bShow)
Displays the table content. |
void |
suspendGesture()
Suspends gesture. |
Method Detail |
---|
void showContextMenu(int x, int y) throws IOException, AutomationException
x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isTOCVisible() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void showTOC(boolean bShow) throws IOException, AutomationException
The ShowTOC method allows you to show/hide the Table of Contents (TOC) dockable window. The state of the TOC is applied to the current and new globe documents.
bShow
- The bShow (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void createSubView() throws IOException, AutomationException
Similar to the main viewer, secondary viewers allow you to display the data in perspective,which is independent from the perspective of the main viewer. This helps in viewing the same data from different directions.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void export2d() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void export3d() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void copyToClipboard() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPrinterByRef(IPrinter printer) throws IOException, AutomationException
printer
- A reference to a com.esri.arcgis.output.IPrinter (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPrinter getPrinter() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPaper getPaper() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPage getPage() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISelectionEnvironment getSelectionEnvironment() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRgbColor getDefaultHighBackgroundColor() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultHighBackgroundColor(IRgbColor ppRgbColor) throws IOException, AutomationException
This property allows you to change the sky background color when viewing the globe at high altitudes. The altitude, upto which this background color is visible, can be set using IGMxAppilcation::SetDefaultBackGroundTransitionDistances method.
By default, the default high background color is set to black. Changing the default high color is reflected in new documents.
ppRgbColor
- A reference to a com.esri.arcgis.display.IRgbColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRgbColor getDefaultLowBackgroundColor() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultLowBackgroundColor(IRgbColor ppRgbColor) throws IOException, AutomationException
This property allows you to change the sky background color when viewing the globe at low altitude. The altitude, upto which this background color is visible, can be set using IGMxAppilcation::SetDefaultBackGroundTransitionDistances method.
By default, the default low background color is set to sky blue. Changing the default low color is reflected in new documents.
ppRgbColor
- A reference to a com.esri.arcgis.display.IRgbColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getDefaultBackgroundTransitionDistances(float[] lowAltitude, float[] highAltitude) throws IOException, AutomationException
lowAltitude
- The lowAltitude (out: use single element array)highAltitude
- The highAltitude (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultBackgroundTransitionDistances(float lowAltitude, float highAltitude) throws IOException, AutomationException
lowAltitude
- The lowAltitude (in)highAltitude
- The highAltitude (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clearGesture() throws IOException, AutomationException
ClearGesture clears/disables the animated rotation gesture. This is similar to hitting the Escape key to stop the animated rotation with the Navaigate tool.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void suspendGesture() throws IOException, AutomationException
SuspendGesture suspends the animated rotation gesture. This method allows you to suspend the animated rotation (enabled with the Navigate tool) when a different tool such as the Fly tool is chosen.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void restoreGesture() throws IOException, AutomationException
RestoreGesture restores the animated rotation gesture. This method allows you to restore the animated rotation when the Navigate tool is chosen after a different tool such as the Fly tool was chosen.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getBuildNum() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultContentsViews() throws IOException, AutomationException
SetDefaultContentsView sets the TOC view of new ArcGlobe documents to be the TOC view of the current ArcGlobe document. ArcGlobe supports three TOC views - Display (esriArcGlobe::TOCGMxDisplayView), Source (esriArcGlobe::TOCGMxCatalogView), and Type (esriArcGlobe::TOCGMxTypeView ). Only one contents view can be active at a time.
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 |