|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.RasterDefaultsEnv
public class RasterDefaultsEnv
A container for default raster environmental variables.
| Constructor Summary | |
|---|---|
RasterDefaultsEnv()
Constructs a RasterDefaultsEnv using ArcGIS Engine. |
|
RasterDefaultsEnv(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RasterDefaultsEnv theRasterDefaultsEnv = (RasterDefaultsEnv) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IRasterFormatInfo |
getFormat(int i)
Information about the format indicated by index i. |
int |
getMaximumBuildAttributeTableSize()
The maximum attribute table size that can be built. |
int |
getMaximumRastersColorMatching()
The maximum number of rasters for color matching. |
int |
getMaxTableSize()
Default maximum table size. |
int |
getNumFormats()
Number of supported raster formats. |
String |
getProxyFilePath()
Default proxy file path. |
int |
getPyramidCreateOpt()
Default pyramid creation option. |
int |
getRenderingMode()
Default rendering mode. |
int |
getResampling()
Default resampling for display. |
int |
hashCode()
the hashcode for this object |
boolean |
isAskSubdatasetSelection()
Indicates if the subdataset selection dialog should pop up. |
boolean |
isAssumeHomogeneousCatalog()
Indicates if raster catalogs can be assumed to be homogeneous. |
boolean |
isDisplayWithContrastStretch()
Indicates if displaying raster datasets with contrast stretching as default. |
boolean |
isFavorWorldFile()
Indicates if the world file should overrides the raster dataset internal georeferencing. |
boolean |
isUseExtChecking()
Indicates if extension checking is on. |
void |
query3BandRGB(int[] redIndex,
int[] greenIndex,
int[] blueIndex)
Default zero indexed bands for a 3 band raster. |
void |
query4BandRGB(int[] redIndex,
int[] greenIndex,
int[] blueIndex)
Default zero indexed bands for a 4 or more band raster. |
void |
set3BandRGB(int redIndex,
int greenIndex,
int blueIndex)
Default zero indexed bands for a 3 band raster. |
void |
set4BandRGB(int redIndex,
int greenIndex,
int blueIndex)
Default zero indexed bands for a 4 or more band raster. |
void |
setAskSubdatasetSelection(boolean pAsk)
Indicates if the subdataset selection dialog should pop up. |
void |
setAssumeHomogeneousCatalog(boolean pHomogeneous)
Indicates if raster catalogs can be assumed to be homogeneous. |
void |
setDisplayWithContrastStretch(boolean pStretch)
Indicates if displaying raster datasets with contrast stretching as default. |
void |
setFavorWorldFile(boolean pFavor)
Indicates if the world file should overrides the raster dataset internal georeferencing. |
void |
setMaximumBuildAttributeTableSize(int pSize)
The maximum attribute table size that can be built. |
void |
setMaximumRastersColorMatching(int pSize)
The maximum number of rasters for color matching. |
void |
setMaxTableSize(int pMaxTableSize)
Default maximum table size. |
void |
setProxyFilePath(String pProxyFilePath)
Default proxy file path. |
void |
setPyramidCreateOpt(int opt)
Default pyramid creation option. |
void |
setRenderingMode(int pRenderingMode)
Default rendering mode. |
void |
setResampling(int pDefaultResampling)
Default resampling for display. |
void |
setUseExtChecking(boolean useExts)
Indicates if extension checking is on. |
void |
updateAll()
Updates the registry with all changes to the raster environment in the current session. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public RasterDefaultsEnv()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public RasterDefaultsEnv(Object obj)
throws IOException
RasterDefaultsEnv theRasterDefaultsEnv = (RasterDefaultsEnv) obj;
obj to RasterDefaultsEnv.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public int getPyramidCreateOpt()
throws IOException,
AutomationException
getPyramidCreateOpt in interface IRasterDefaultsEnvIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPyramidCreateOpt(int opt)
throws IOException,
AutomationException
setPyramidCreateOpt in interface IRasterDefaultsEnvopt - A com.esri.arcgis.carto.esriRasterPyramidOptEnum constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void query3BandRGB(int[] redIndex,
int[] greenIndex,
int[] blueIndex)
throws IOException,
AutomationException
The Query3BandRGB, Query4BandRGB, Set3BandRGB, and Set4BandRGB methods allow you to view or set the default band combinations used to display rasters with three or more bands. The indices set for these defaults will populate the red, green, and blue channels of the RGB renderer when a raster is initially displayed.
The Query3BandRGB and Set3BandRGB methods apply only to three band rasters, while the Query4BandRGB and Set4BandRGB methods apply to all rasters containing four or more bands.
query3BandRGB in interface IRasterDefaultsEnvredIndex - The redIndex (out: use single element array)greenIndex - The greenIndex (out: use single element array)blueIndex - The blueIndex (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void set3BandRGB(int redIndex,
int greenIndex,
int blueIndex)
throws IOException,
AutomationException
set3BandRGB in interface IRasterDefaultsEnvredIndex - The redIndex (in)greenIndex - The greenIndex (in)blueIndex - The blueIndex (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void query4BandRGB(int[] redIndex,
int[] greenIndex,
int[] blueIndex)
throws IOException,
AutomationException
query4BandRGB in interface IRasterDefaultsEnvredIndex - The redIndex (out: use single element array)greenIndex - The greenIndex (out: use single element array)blueIndex - The blueIndex (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void set4BandRGB(int redIndex,
int greenIndex,
int blueIndex)
throws IOException,
AutomationException
set4BandRGB in interface IRasterDefaultsEnvredIndex - The redIndex (in)greenIndex - The greenIndex (in)blueIndex - The blueIndex (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseExtChecking()
throws IOException,
AutomationException
This method is used to specify whether using file extension checking or not when you browse file based raster data such as .img, .tif, and jp2 etc.
Using file extension checking (true) is faster in browsing raster datasets, and this is the default.
The UseExtChecking property specifies how ArcCatalog and the GxBrowser search for raster datasets. A True value for extension checking means that files or folders will be identified as raster datasets only if their extension matches the list of supported raster format extensions. A False value means that all files and folders will be opened to determine whether they are a raster dataset in any of the supported raster formats. This is more reliable but is much slower than extension checking only. Extension checking only is the default.
isUseExtChecking in interface IRasterDefaultsEnvIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseExtChecking(boolean useExts)
throws IOException,
AutomationException
setUseExtChecking in interface IRasterDefaultsEnvuseExts - The useExts (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getNumFormats()
throws IOException,
AutomationException
The NumFormats property returns the number of supported raster formats, and the Format method returns a RasterFormatInfo object specific to one raster format, which can specify default properties for that format.
getNumFormats in interface IRasterDefaultsEnvIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRasterFormatInfo getFormat(int i)
throws IOException,
AutomationException
getFormat in interface IRasterDefaultsEnvi - The i (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRenderingMode(int pRenderingMode)
throws IOException,
AutomationException
setRenderingMode in interface IRasterDefaultsEnv2pRenderingMode - A com.esri.arcgis.carto.esriRasterRenderingModeEnum constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getRenderingMode()
throws IOException,
AutomationException
The RenderingMode property specifies the drawing mode used when displaying a raster dataset. The full option waits until the entire raster has been drawn to a backing store, then displays it to the screen at once.
Block mode draws the raster one block at a time, starting at the upper left and progressing left to right and then down. Top-to-bottom mode begins at the top and draws a few lines at a time as it progresses down the screen.
getRenderingMode in interface IRasterDefaultsEnv2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setResampling(int pDefaultResampling)
throws IOException,
AutomationException
setResampling in interface IRasterDefaultsEnv2pDefaultResampling - A com.esri.arcgis.geodatabase.rstResamplingTypes constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getResampling()
throws IOException,
AutomationException
The Resampling property controls the default resampling technique used when a raster is first displayed. Single-band rasters are displayed using the stretched renderer or unique value renderer by default.
getResampling in interface IRasterDefaultsEnv2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setProxyFilePath(String pProxyFilePath)
throws IOException,
AutomationException
The ProxyFilePath property controls the directory location where these proxy files, as well as any auxiliary or pyramid files for these datasets, are located. This property can only be set by users with Administrator access to their computer. The rest of these properties control the appearance of raster datasets when first viewed in ArcGIS.
setProxyFilePath in interface IRasterDefaultsEnv2pProxyFilePath - The pProxyFilePath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getProxyFilePath()
throws IOException,
AutomationException
This method is used to set the path for proxy files, e.g. files generated in the local proxy folder when accessing read only raster datasets. This applies to ArcGIS 9.1 and older version only.
ArcGIS 9.2 always use Windows system default temp folder for writting proxy files.
getProxyFilePath in interface IRasterDefaultsEnv2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMaxTableSize(int pMaxTableSize)
throws IOException,
AutomationException
setMaxTableSize in interface IRasterDefaultsEnv2pMaxTableSize - The pMaxTableSize (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMaxTableSize()
throws IOException,
AutomationException
If a dataset has more entries in its table then the MaxTableSize property, it will be displayed by default using the stretched renderer. A dataset with fewer unique values than this threshold will display using the unique value renderer. This value is 25 by default.
getMaxTableSize in interface IRasterDefaultsEnv2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void updateAll()
throws IOException,
AutomationException
updateAll in interface IRasterDefaultsEnv2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMaximumBuildAttributeTableSize(int pSize)
throws IOException,
AutomationException
setMaximumBuildAttributeTableSize in interface IRasterDefaultsEnv3pSize - The pSize (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMaximumBuildAttributeTableSize()
throws IOException,
AutomationException
This property specifies the maximum limit for building a raster attribute table. The default is 65536.
getMaximumBuildAttributeTableSize in interface IRasterDefaultsEnv3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFavorWorldFile(boolean pFavor)
throws IOException,
AutomationException
setFavorWorldFile in interface IRasterDefaultsEnv3pFavor - The pFavor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isFavorWorldFile()
throws IOException,
AutomationException
By default (returns as false), ArcGIS will read the internal spatial reference (map extent or projection info) of a raster dataset. If you want ArcGIS reads the world file of the raster dataset, set it to be true.
isFavorWorldFile in interface IRasterDefaultsEnv3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAssumeHomogeneousCatalog()
throws IOException,
AutomationException
isAssumeHomogeneousCatalog in interface IRasterDefaultsEnv3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAssumeHomogeneousCatalog(boolean pHomogeneous)
throws IOException,
AutomationException
setAssumeHomogeneousCatalog in interface IRasterDefaultsEnv3pHomogeneous - The pHomogeneous (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAskSubdatasetSelection(boolean pAsk)
throws IOException,
AutomationException
setAskSubdatasetSelection in interface IRasterDefaultsEnv4pAsk - The pAsk (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAskSubdatasetSelection()
throws IOException,
AutomationException
isAskSubdatasetSelection in interface IRasterDefaultsEnv4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDisplayWithContrastStretch(boolean pStretch)
throws IOException,
AutomationException
setDisplayWithContrastStretch in interface IRasterDefaultsEnv4pStretch - The pStretch (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isDisplayWithContrastStretch()
throws IOException,
AutomationException
isDisplayWithContrastStretch in interface IRasterDefaultsEnv4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMaximumRastersColorMatching(int pSize)
throws IOException,
AutomationException
setMaximumRastersColorMatching in interface IRasterDefaultsEnv4pSize - The pSize (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMaximumRastersColorMatching()
throws IOException,
AutomationException
getMaximumRastersColorMatching in interface IRasterDefaultsEnv4IOException - 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 | ||||||||