|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGlobeLayerProperties2
Provides access to members that manipulate the globe layer properties.
IGlobeLayerProperties2 interface has methods and properties mainly focused towards enhancing the performance of displaying and cache management of layers in the globe.
The IsMapConsolidatedParent and IsMapConsolidatedChild can be used to render group layer with a large number of children layers (rasterized features and images) in globe. The StrictOnDemandMode property allows you to display data on-demand, which means that only data within the view is displayed in the globe. As you navigate around more and more data is made available or visible depending on your location on the globe. The TextureDownsamplingFactor and TextureCompressionType are useful in displaying textured buildings and also images in the globe.
Method Summary | |
---|---|
void |
estimateMinimumCellSize(double[] minCellsize)
Suggests the minimum cell size for rasterization. |
int |
getCacheCompressionType()
The cache compression type. |
String |
getCacheID()
Unique layer cache ID. |
int |
getMaxCacheSizeLimitMB()
Maximum cache size [MB] as a hint to cache maintenance utilities. |
double |
getMinimumCellSizeDegrees()
Minimum cell size for rasters, in degrees. |
void |
getPartialLODRange(int[] fromLOD,
int[] toLOD)
Returns LOD range of partial cache generation. |
int |
getTextureCompressionType()
The current texture compression type. |
int |
getTextureDisplayType()
The current texture display type. |
double |
getTextureDownsamplingFactor()
The texture down-sampling factor. |
void |
invalidatePartialLODRange()
Invalidates LOD range of partial cache generation. |
boolean |
isCacheIsDangling()
Reports if the cache will be lost if the document is not saved. |
boolean |
isFetchingSuspendedWhenNavigating()
Indicates if the layer is visible while interactive navigation. |
boolean |
isInvisibleWhenNavigating()
Indicates if the layer is visible while interactive navigation. |
boolean |
isLayerClone()
Indicates if the layer is a clone of the original in Globe. |
boolean |
isMapConsolidatedChild()
Indicates if the group layer cache consolidates the child through map rendering. |
boolean |
isMapConsolidatedParent()
Indicates if the group layer cache consolidates the children through map rendering. |
boolean |
isStrictOnDemandMode()
Indicates if the tile generation is done strictly on demand. |
boolean |
isUseCache()
Indicates if the layer will use a disk data cache. |
void |
setCacheCompressionType(int pType)
The cache compression type. |
void |
setIsFetchingSuspendedWhenNavigating(boolean bFetchingDisabledWhenNavigating)
Indicates if the layer is visible while interactive navigation. |
void |
setIsInvisibleWhenNavigating(boolean bInvisibleWhenNavigating)
Indicates if the layer is visible while interactive navigation. |
void |
setIsLayerClone(boolean bIsClone)
Indicates if the layer is a clone of the original in Globe. |
void |
setIsMapConsolidatedParent(boolean bConsolidated)
Indicates if the group layer cache consolidates the children through map rendering. |
void |
setMaxCacheSizeLimitMB(int pLimit)
Maximum cache size [MB] as a hint to cache maintenance utilities. |
void |
setMinimumCellSizeDegrees(double pMinCellSize)
Minimum cell size for rasters, in degrees. |
void |
setNewCacheName(String cacheName,
boolean rhs2)
The path to the layer cache, with the option to avoid overwriting. |
void |
setPartialLODRange(int fromLOD,
int toLOD)
Sets LOD range of partial cache generation. |
void |
setStrictOnDemandMode(boolean strictOnDemandMode)
Indicates if the tile generation is done strictly on demand. |
void |
setTextureCompressionType(int pType)
The current texture compression type. |
void |
setTextureDisplayType(int pType)
The current texture display type. |
void |
setTextureDownsamplingFactor(double pFactor)
The texture down-sampling factor. |
void |
setUseCache(boolean pbUseCache)
Indicates if the layer will use a disk data cache. |
Method Detail |
---|
void setIsMapConsolidatedParent(boolean bConsolidated) throws IOException, AutomationException
Setting this boolean property allows you to rasterizes a group layer by using map rendering. This allows you to optimize the rendering performance of group layers at the parent level. Rasterizing group layers consolidates the cache of the group layer and its children into a single cache and treats the group layer and its child layers as a single layer, which means that the contents of the layer are drawn as a raster on the globe surface. The layer is drawn similar to how it is drawn in ArcMap. This is beneficial when trying to display group layer created in ArcMap inside of ArcGlobe because rasertizing the group layer ensures that the display order and symbolgy of these layers is honored in ArcGlobe.
bConsolidated
- The bConsolidated (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isMapConsolidatedParent() throws IOException, AutomationException
Cache consolidation allows you to improve the performance of ArcGlobe by reducing the number of disk caches that are stored and displayed for an ArcGlobe document. Cache consolidation is only available for group layers in ArcGlobe. There are two options for cache consolidation: rasterizing the group layer or merging child caches.
Rasterizing the group layer option is also known as map consolidation. Rasterizing a group layer consolidates the child layers into a single cache, rendering them as a single raster layer with a single cache. All the child layers within the rasterized group layer must also be rasterized. Any child layers that were not rasterized before will become rasterized when the option is set to True. In this way, the group layer will be drawn similar to how it is drawn in ArcMap.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isMapConsolidatedChild() throws IOException, AutomationException
Cache consolidation allows you to improve the performance of ArcGlobe by reducing the number of disk caches that are stored and displayed for an ArcGlobe document. Cache consolidation is only available for group layers in ArcGlobe. There are two options for cache consolidation: rasterizing the group layer or merging child caches.
Rasterizing the group layer option is also known as map consolidation. Rasterizing a group layer consolidates the child layers into a single cache, rendering them as a single raster layer with a single cache. All the child layers within the rasterized group layer must also be rasterized and any child layers that were not rasterized before will become rasterized. In this way, the group layer will be drawn similar to how it is drawn in ArcMap.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextureDownsamplingFactor(double pFactor) throws IOException, AutomationException
pFactor
- The pFactor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getTextureDownsamplingFactor() throws IOException, AutomationException
Texture downscaling is applied as a layer property and is only applicable to multipatch layers. Setting texture downscaling for a layer will reduce the in-memory requirements to render it, freeing up resources for other tasks such as navigation. The amount of downscaling that can be applied to a texture without greatly reducing the quality of the display will vary from texture to texture.
For downsampling textures the range of values is from 1 (Minimum downsampling) TO 10 (Maximum downsampling).
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextureCompressionType(int pType) throws IOException, AutomationException
pType
- A com.esri.arcgis.analyst3d.esriTextureFormatType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTextureCompressionType() throws IOException, AutomationException
Used to apply DXT compression to material textures. This conserves memory usage and improves interactive performance. There is a minor degradation in the visual quality of textures. Valid values are esriTextureFormatType.esriTextureDXT (to apply DXT compression) and esriTextureFormatType.esriTextureJPEG.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStrictOnDemandMode(boolean strictOnDemandMode) throws IOException, AutomationException
Setting this boolean property to True will force the layer to generate the level of detail relevant for the view. This means that coarser or intermediate levels of detail will not be generated for the view. As you navigate around in the view, new level of details will be generated based on the view. The levels of details generated are written to the cache.
For rasterized feature layers, rasterized group layers and ArcIMS layers, this boolean property is set to True by default.
strictOnDemandMode
- The strictOnDemandMode (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isStrictOnDemandMode() throws IOException, AutomationException
Setting this boolean property to True will force the layer to generate the level of detail relevant for the view. This means that coarser or intermediate levels of detail will not be generated for the view. As you navigate around in the view, new level of details will be generated based on the view. The levels of details generated are written to the cache.
For rasterized feature layers, rasterized group layers and ArcIMS layers, this boolean property is set to True by default.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getCacheID() throws IOException, AutomationException
Disk caching creates a set of temporary files, or cache, for each layer in the ArcGlobe document. The name of a layer's disk cache is a concatenation of its display name and global unique identifier (GUID).
This method returns the GUID portion of the layer's disk cache name.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseCache() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseCache(boolean pbUseCache) throws IOException, AutomationException
pbUseCache
- The pbUseCache (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxCacheSizeLimitMB(int pLimit) throws IOException, AutomationException
pLimit
- The pLimit (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxCacheSizeLimitMB() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNewCacheName(String cacheName, boolean rhs2) throws IOException, AutomationException
cacheName
- The cacheName (in)rhs2
- The rhs2 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void estimateMinimumCellSize(double[] minCellsize) throws IOException, AutomationException
minCellsize
- The minCellsize (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextureDisplayType(int pType) throws IOException, AutomationException
pType
- A com.esri.arcgis.analyst3d.esriTextureFormatType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTextureDisplayType() throws IOException, AutomationException
Used to enable or disable material textures. Valid values are esriTextureFormatType.esriTextureNone (to disable) and esriTextureFormatType.esriTextureJPEG (to enable).
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPartialLODRange(int fromLOD, int toLOD) throws IOException, AutomationException
fromLOD
- The fromLOD (in)toLOD
- The toLOD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getPartialLODRange(int[] fromLOD, int[] toLOD) throws IOException, AutomationException
Disk caching creates a temporary file, or cache, for each layer in ArcGlobe that helps you display and navigate your data efficiently. A disk cache stores the data and information that allows ArcGlobe to better manage your environment by controlling levels of detail. The status of a cache can be on demand, partial (containing some details of the layer), or full (containing all the details the layer has to offer).
This property returns the current range of the level of detail for the layer - FromLOD (minimum level of detail) to ToLOD (maximum level of detail).
fromLOD
- The fromLOD (out: use single element array)toLOD
- The toLOD (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void invalidatePartialLODRange() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCacheIsDangling() throws IOException, AutomationException
When exiting an ArcGlobe document, on-demand caches for layers that have not been saved to a layer file or ArcGlobe document are automatically deleted.
Partial or full caches are not automatically deleted when exiting an ArcGlobe document, regardless of whether the layer was saved to a layer file or ArcGlobe document or not. However, you should still save a layer file or ArcGlobe document for these layers so you can preserve a link to the cache.
This property will return True unless a layer file or the ArcGlobe document is saved.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCacheCompressionType(int pType) throws IOException, AutomationException
pType
- A com.esri.arcgis.analyst3d.esriTextureFormatType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCacheCompressionType() throws IOException, AutomationException
Applicable to rasters and rasterized feature data. Valid values are esriTextureFormatType.esriTextureJPEG and esriTextureFormatType.esriTextureDXT.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getMinimumCellSizeDegrees() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMinimumCellSizeDegrees(double pMinCellSize) throws IOException, AutomationException
pMinCellSize
- The pMinCellSize (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsLayerClone(boolean bIsClone) throws IOException, AutomationException
bIsClone
- The bIsClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isLayerClone() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsInvisibleWhenNavigating(boolean bInvisibleWhenNavigating) throws IOException, AutomationException
bInvisibleWhenNavigating
- The bInvisibleWhenNavigating (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isInvisibleWhenNavigating() throws IOException, AutomationException
Some layers in the ArcGlobe document may be very expensive to render, reducing the responsiveness of interactive navigation through the 3D view. When this option is set to True, the layer will not display while navigating, thereby freeing up resources to improve the interactive navigation experience. When navigation halts, the layer will be displayed again.
The view is said to be navigating when the Globe Camera is moving continuously. For example, using the Fly Tool will set the ‘while navigating’ state to true and cause layer drawing to be suspended appropriately. When the Fly Tool halts, the ‘while navigating’ state is set to false and layer will draw. An example of a navigation technique which does not set the ‘while navigating’ state to true is the mouse-wheel zoom in. This functionality uses discrete steps to zoom in and is therefore not a continuous navigation event.
This option may not be preferred when outputting animation files, as the animation framework will set the ‘while navigating’ status to true and the resulting video will not include display of this layer.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsFetchingSuspendedWhenNavigating(boolean bFetchingDisabledWhenNavigating) throws IOException, AutomationException
bFetchingDisabledWhenNavigating
- The bFetchingDisabledWhenNavigating (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isFetchingSuspendedWhenNavigating() 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 |