|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGlobeDisplayLayers
Provides access to members that manipulate globe display layers.
IGlobeDisplayLayers interface provides access to members that affect a layers property. IGlobeDisplaylayers interface has the following properties and methods:
BaseLayers – an array containing internal layers used as a source of elevation for Floating Layers, IsLayerVisible – indicats if a layer is visible, and LayerTransparency – transparency value of the layer between 0 to 100.
ApplyHeightProperties method to apply hieght property (including offset, unit conversion and elevation expression) to a layer, FindGlobeLayerProperties a method to find GlobeLayerProperties, RefreshLayer refreshes a layer (regenerates the layer cache).
Method Summary | |
---|---|
void |
addLayer(ILayer pLayer)
Adds a layer. |
void |
applyHeightProperties(ILayer pGLayer)
Applies changes in height properties to the layer. |
IGlobeLayerProperties |
findGlobeProperties(ILayer pLayer)
Finds the globe properties of the layer. |
void |
generateTiles(ILayer pLayer,
int fromLOD,
int toLOD)
Generates the tiles in the specified levels of detail. |
IArray |
getBaseLayers()
The internal layers created to support base surfaces for floating layers. |
int |
getMaximumLayerLOD(ILayer pLayer)
Gets the maximum level of detail to display the layer. |
boolean |
isParentsAreVisible(ILayer pLayer)
Indicates if all parents are visible. |
void |
refreshLayer(ILayer pLayer)
Refreshes a layer, possibly including recaching. |
void |
refreshLayerSelection(ILayer pLayer)
Refreshes the display of the selection in a layer. |
void |
refreshTextureObjectsLayer(ILayer pLayer)
Deletes all the textures corresponding to a layer and to force them to reload. |
void |
removeLayer(ILayer pLayer)
Removes a layer. |
void |
reparent(ILayer layer,
ICompositeLayer newParent)
Re-parents the layer. |
void |
setIsLayerVisible(ILayer pLayer,
boolean rhs2)
Indicates if the layer is visible. |
void |
setLayerDepthPriority(ILayer pLayer,
int depthPrior)
Sets face depth priority of a layer. |
void |
setLayerFaceCulling(ILayer pLayer,
int cullMode)
Sets face culling property of a layer. |
void |
setLayerLightingOption(ILayer pLayer,
boolean isIlluminated)
Indicates if the layer is illuminated. |
void |
setLayerShadingMode(ILayer pLayer,
boolean isSmooth)
Indicates if the layer is smoothly shaded. |
void |
setLayerTransparency(ILayer pLayer,
short rhs2)
Transparency percentage of a layer. |
Method Detail |
---|
void addLayer(ILayer pLayer) throws IOException, AutomationException
pLayer
- 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 removeLayer(ILayer pLayer) throws IOException, AutomationException
pLayer
- 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 refreshLayer(ILayer pLayer) throws IOException, AutomationException
pLayer
- 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 refreshLayerSelection(ILayer pLayer) throws IOException, AutomationException
pLayer
- 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 setIsLayerVisible(ILayer pLayer, boolean rhs2) throws IOException, AutomationException
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)rhs2
- The rhs2 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLayerTransparency(ILayer pLayer, short rhs2) throws IOException, AutomationException
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)rhs2
- The rhs2 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLayerLightingOption(ILayer pLayer, boolean isIlluminated) throws IOException, AutomationException
Use this method to set the lighting option for a layer.
Note that if you add a layer to globe via code and want the lighting property to be persisted when the globe document is saved then you should explicitly add the I3DProperties extension to your layer as follows:
ESRI.ArcGIS.Analyst3D.I3DProperties p3DProperties;
p3DProperties = new Feature3DPropertiesClass();
ESRI.ArcGIS.Carto.ILayerExtensions layerExtension = ftrLayer as
ESRI.ArcGIS.Carto.ILayerExtensions;
layerExtension.AddExtension(p3DProperties);
//Now set the layer lighting
glbDisplayLayers.SetLayerLightingOption(ftrLayer as
ESRI.ArcGIS.Carto.ILayer, true);
glbDisplayLayers.RefreshLayer(ftrLayer as ESRI.ArcGIS.Carto.ILayer);
If the extension is not added to the layer then on reopening a saved globe document lighting for the layer will be turned off by default.
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)isIlluminated
- The isIlluminated (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLayerShadingMode(ILayer pLayer, boolean isSmooth) throws IOException, AutomationException
Use this method to set the shading mode for a layer.
Note that if you add a layer to globe via code and want the shading mode to be persisted when the globe document is saved then you should explicitly add the I3DProperties extension to your layer as follows:
ESRI.ArcGIS.Analyst3D.I3DProperties p3DProperties;
p3DProperties = new Feature3DPropertiesClass();
ESRI.ArcGIS.Carto.ILayerExtensions layerExtension = ftrLayer as ESRI.ArcGIS.Carto.ILayerExtensions;
layerExtension.AddExtension(p3DProperties);
//Now set the layer shading
glbDisplayLayers.SetLayerShadingMode(ftrLayer as ESRI.ArcGIS.Carto.ILayer, true);
glbDisplayLayers.RefreshLayer(ftrLayer as ESRI.ArcGIS.Carto.ILayer);
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)isSmooth
- The isSmooth (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLayerFaceCulling(ILayer pLayer, int cullMode) throws IOException, AutomationException
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)cullMode
- A com.esri.arcgis.analyst3d.esri3DFaceCulling constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLayerDepthPriority(ILayer pLayer, int depthPrior) throws IOException, AutomationException
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)depthPrior
- The depthPrior (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void applyHeightProperties(ILayer pGLayer) throws IOException, AutomationException
pGLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGlobeLayerProperties findGlobeProperties(ILayer pLayer) throws IOException, AutomationException
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IArray getBaseLayers() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void refreshTextureObjectsLayer(ILayer pLayer) throws IOException, AutomationException
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaximumLayerLOD(ILayer pLayer) throws IOException, AutomationException
pLayer
- 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 generateTiles(ILayer pLayer, int fromLOD, int toLOD) throws IOException, AutomationException
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)fromLOD
- The fromLOD (in)toLOD
- The toLOD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isParentsAreVisible(ILayer pLayer) throws IOException, AutomationException
pLayer
- 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 reparent(ILayer layer, ICompositeLayer newParent) throws IOException, AutomationException
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)newParent
- A reference to a com.esri.arcgis.carto.ICompositeLayer (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 |