|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISxDocument
Provides access to members that control the ArcScene Document object.
This interface is a starting point for getting a handle to other objects in ArcScene desktop application. Almost every ArcScene desktop customization uses ISxDocument one way or another.
Method Summary | |
---|---|
void |
addLayer(ILayer layer)
Adds a layer to the current focus map. |
ISxContentsView |
getContentsView(int index)
The contents view at the specified index. |
int |
getContentsViewCount()
The number of contents views in the document. |
Object |
getContextItem()
The item that is selected or was last right-clicked. |
ISxContentsView |
getCurrentContentsView()
The current contents view of the document. |
IColor |
getDefaultColor(int type)
The default color for the given type. |
IScene |
getScene()
The scene. |
int |
getSearchTolerancePixels()
The global search tolerance in pixels for selection. |
Object |
getSelectedItem()
The selected item in the layer control. |
ILayer |
getSelectedLayer()
The selected layer in the layer control. |
boolean |
isRelativePaths()
Indicates if path names are stored relative to the document. |
boolean |
isSavePreview()
Indicates if a preview image is saved in the document. |
void |
removeAllLayers()
Removes all layers. |
void |
setContextItem(Object item)
The item that is selected or was last right-clicked. |
void |
setCurrentContentsViewByRef(ISxContentsView view)
The current contents view of the document. |
void |
setDefaultColor(int type,
IColor color)
The default color for the given type. |
void |
setDelayUpdateContents(boolean rhs1)
Indicates whether to ignore document update notifications. |
void |
setRelativePaths(boolean relPaths)
Indicates if path names are stored relative to the document. |
void |
setSavePreview(boolean savePreview)
Indicates if a preview image is saved in the document. |
void |
setScene(IScene pScene)
The scene. |
void |
setSearchTolerancePixels(int tol)
The global search tolerance in pixels for selection. |
void |
updateContents()
Notifies the document that the contents have been updated. |
Method Detail |
---|
ILayer getSelectedLayer() throws IOException, AutomationException
Returns the currently selected layer in the table of contents.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getSelectedItem() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getContextItem() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setContextItem(Object item) throws IOException, AutomationException
item
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addLayer(ILayer layer) throws IOException, AutomationException
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAllLayers() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void updateContents() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDelayUpdateContents(boolean rhs1) throws IOException, AutomationException
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSearchTolerancePixels() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSearchTolerancePixels(int tol) throws IOException, AutomationException
tol
- The tol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IColor getDefaultColor(int type) throws IOException, AutomationException
type
- A com.esri.arcgis.arcmapui.esriMxDefaultColorTypes constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultColor(int type, IColor color) throws IOException, AutomationException
type
- A com.esri.arcgis.arcmapui.esriMxDefaultColorTypes constant (in)color
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IScene getScene() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setScene(IScene pScene) throws IOException, AutomationException
pScene
- A reference to a com.esri.arcgis.analyst3d.IScene (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isRelativePaths() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setRelativePaths(boolean relPaths) throws IOException, AutomationException
relPaths
- The relPaths (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSavePreview() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSavePreview(boolean savePreview) throws IOException, AutomationException
The SavePreview property specifies whether or not a thumbnail image of the scene is displayed in ArcCatalog or not, when browsing scene documents.
savePreview
- The savePreview (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISxContentsView getCurrentContentsView() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCurrentContentsViewByRef(ISxContentsView view) throws IOException, AutomationException
view
- A reference to a com.esri.arcgis.arcscene.ISxContentsView (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getContentsViewCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISxContentsView getContentsView(int index) throws IOException, AutomationException
index
- The index (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 |