|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.datasourcesraster.SimplePixelResampler
public class SimplePixelResampler
A simple pixel resampler class.
The SimplePixelResampler is a concrete object that supports nearest neighbor, bilinear, cubic convolution and majority resampling. It is used to provide pixel resampling for the RasterXformer and can be replaced by any custom pixel resampler.
| Constructor Summary | |
|---|---|
SimplePixelResampler()
Constructs a SimplePixelResampler using ArcGIS Engine. |
|
SimplePixelResampler(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SimplePixelResampler theSimplePixelResampler = (SimplePixelResampler) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
double |
getCubicConvolutionParameter()
The cubic convolution parameter (-1, -0.75, -0.5). |
int |
getResamplingMethod()
The resampling method. |
int |
getWindowSize()
The resampling window size in terms of number of source pixels. |
int |
hashCode()
the hashcode for this object |
boolean |
isDownSampling()
Indicates if this is a down sampling only type of resampler. |
boolean |
isLinearScaling()
Indicates if only linear scaling is necessary. |
boolean |
isSupportLinearScaling()
Indicates if this resampler can accept simplified point array for simple linear scaling. |
void |
resample(int iCol,
int iRow,
int nCols,
int nRows,
_WKSPoint points,
double ulx,
double uly,
double dx,
double dy,
IPixelBlock pSrcPixelBlock,
IPixelBlock pDstPixelBlock)
Resamples an input pixel block into an output pixel block. |
void |
setCubicConvolutionParameter(double a)
The cubic convolution parameter (-1, -0.75, -0.5). |
void |
setLinearScaling(boolean pLinearScaling)
Indicates if only linear scaling is necessary. |
void |
setMajorityWindowSize(int rhs1)
The majority resampling window size in pixels. |
void |
setResamplingMethod(int pMethod)
The resampling method. |
| 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 SimplePixelResampler()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public SimplePixelResampler(Object obj)
throws IOException
SimplePixelResampler theSimplePixelResampler = (SimplePixelResampler) obj;
obj to SimplePixelResampler.
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 getResamplingMethod()
throws IOException,
AutomationException
getResamplingMethod in interface ISimplePixelResamplerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setResamplingMethod(int pMethod)
throws IOException,
AutomationException
setResamplingMethod in interface ISimplePixelResamplerpMethod - A com.esri.arcgis.geodatabase.rstResamplingTypes constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getCubicConvolutionParameter()
throws IOException,
AutomationException
getCubicConvolutionParameter in interface ISimplePixelResamplerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCubicConvolutionParameter(double a)
throws IOException,
AutomationException
A parameter, (-3,0) not inclusive, is used to adjust the sharpness of cubic resampling. The resampled image will show the edge effect as the factor is close to -3, and smooth when the factor is close to 0.
setCubicConvolutionParameter in interface ISimplePixelResamplera - The a (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMajorityWindowSize(int rhs1)
throws IOException,
AutomationException
setMajorityWindowSize in interface ISimplePixelResamplerrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSupportLinearScaling()
throws IOException,
AutomationException
isSupportLinearScaling in interface IPixelResamplerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLinearScaling()
throws IOException,
AutomationException
isLinearScaling in interface IPixelResamplerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLinearScaling(boolean pLinearScaling)
throws IOException,
AutomationException
setLinearScaling in interface IPixelResamplerpLinearScaling - The pLinearScaling (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getWindowSize()
throws IOException,
AutomationException
getWindowSize in interface IPixelResamplerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isDownSampling()
throws IOException,
AutomationException
isDownSampling in interface IPixelResamplerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void resample(int iCol,
int iRow,
int nCols,
int nRows,
_WKSPoint points,
double ulx,
double uly,
double dx,
double dy,
IPixelBlock pSrcPixelBlock,
IPixelBlock pDstPixelBlock)
throws IOException,
AutomationException
resample in interface IPixelResampleriCol - The iCol (in)iRow - The iRow (in)nCols - The nCols (in)nRows - The nRows (in)points - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)ulx - The ulx (in)uly - The uly (in)dx - The dx (in)dy - The dy (in)pSrcPixelBlock - A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)pDstPixelBlock - A reference to a com.esri.arcgis.geodatabase.IPixelBlock (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 | ||||||||