|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGMxDefaultLayers
Provides access to Default Layers for New Documents.
The IGMxDefaultLayers interface contains methods/properties to customize the default layers which are loaded on opening a new ArcGlobe document.
NewDocumentDefaultLayersSetting property sets the type of default layers for new documents to be custom supplied (any user specified layers in the TOC), system supplied (default layers, which ship with ArcGlobe), or none. The UseTOCAsCustomDefaultLayersForNewDocuments method sets the custom supplied default layers for new documents to be same as layers in the TOC of the currently open document. This allows the user's to provide layers of their choice to be displayed when a new ArcGlobe is opened up. The user can also change or overwrite the default layers, shipped with ArcGlobe, by using the UseTOCAsSystemDefaultLayersForNewDocuments method. This method sets the system supplied default layers for new documents to be same as layers in the TOC of the currently open document.
You can also set the system supplied default layers to be the same as layers in the TOC of a document by running the following command in the MSDOS prompt command line.
<path to install location> <space> /Arcglobe.exe <space> /SystemDefaultLayers <space> <Full document path>
For e.g., "C:\Program Files\arcgis\bin\ArcGlobe.exe" /SystemDefaultLayers "C:\Program Files\arcgis\ArcGlobeData\Default_Document.3dd"
The example above can be used to revert back to the system supplied default layers shipped with ArcGlobe. The default document (Default_Document.3dd) used, can be found in the ArcGlobeData folder, which is parallel to the "Bin" folder.
Method Summary | |
---|---|
int |
getNewDocumentDefaultLayersSetting()
The selected layer in the layer control. |
void |
setNewDocumentDefaultLayersSetting(int pValue)
The selected layer in the layer control. |
void |
useTOCAsCustomDefaultLayersForNewDocuments()
Use Current Document TOC as Custom Default Layers for New Documents. |
void |
useTOCAsSystemDefaultLayersForNewDocuments()
Use Current Document TOC as System Default Layers for New Documents. |
Method Detail |
---|
int getNewDocumentDefaultLayersSetting() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNewDocumentDefaultLayersSetting(int pValue) throws IOException, AutomationException
The NewDocumenDefaultLayersSetting allows you to set the default layers option to display system supplied layers (esriDefaultLayersSystem), custom user-supplied layers (esriDefaultLayersCustom), or no layers (esriDefaultLayersNone), when a new ArcGlobe document is opened up.
pValue
- A com.esri.arcgis.arcglobe.esriDefaultLayersMode constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void useTOCAsSystemDefaultLayersForNewDocuments() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void useTOCAsCustomDefaultLayersForNewDocuments() throws IOException, AutomationException
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 |