com.esri.arcgis.datasourcesraster
Class SimplePixelReader

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.SimplePixelReader
All Implemented Interfaces:
IPixelReader, ISimplePixelReader, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class SimplePixelReader
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IPixelReader, ISimplePixelReader

COM Class 'SimplePixelReader'. Generated 3/19/2015 1:20:42 PM from 'C:\ArcGIS\COM\esriDataSourcesRaster.olb'

Description 'A simple pixel resampler class.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.ISimplePixelReader
IID, IID6d4be802_e5d0_4dad_b022_b58366952794, xxDummy
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IPixelReader
IID8a3b7c7c_4ace_4628_8c24_f67834fa2577
 
Constructor Summary
SimplePixelReader()
          Constructs a SimplePixelReader using ArcGIS Engine.
SimplePixelReader(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
SimplePixelReader theSimplePixelReader = (SimplePixelReader) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 int getBandCount()
          The number of source bands.
 IPnt getCellSize()
          The source original cell size.
static java.lang.String getClsid()
          getClsid.
 IEnvelope getExtent()
          The source full extent.
 int getFirstPyramidLevel()
          The first available source pyramid level.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int getMaximumPyramidLevel()
          The maximum available source pyramid level.
 int getPixelType()
          The source pixel type.
 int getPyramidLevel()
          The current source pyramid level.
 void getResolution(int level, double[] pXResolution, double[] pYResolution)
          Gets X and Y resolution (cellsize) at a given level.
 int hashCode()
          the hashcode for this object
 void read(IPnt tlc, IPixelBlock pPixelBlock)
          Reads a pixel block.
 void release()
          Release a SimplePixelReader.
 void setBandCount(int rhs1)
          The number of source bands.
 void setCellSize(IPnt rhs1)
          The source original cell size.
 void setExtent(IEnvelope rhs1)
          The source full extent.
 void setFirstPyramidLevel(int rhs1)
          The first available source pyramid level.
 void setMaximumPyramidLevel(int rhs1)
          The maximum available source pyramid level.
 void setPixelType(int rhs1)
          The source pixel type.
 void setPyramidLevel(int pLevel)
          The current source pyramid level.
 void setRasterByRef(IRaster rhs1)
          The source raster providing pixels.
 void setRawPixelReaderByRef(IRawPixelReader rhs1)
          The raw pixel reader callback.
 int snap(double dx, double dy)
          Snaps a given cellsize to a proper pyramid level.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePixelReader

public SimplePixelReader()
                  throws java.io.IOException,
                         java.net.UnknownHostException
Constructs a SimplePixelReader using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

SimplePixelReader

public SimplePixelReader(java.lang.Object obj)
                  throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
SimplePixelReader theSimplePixelReader = (SimplePixelReader) obj;

Construct a SimplePixelReader using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SimplePixelReader.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a SimplePixelReader.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getPixelType

public int getPixelType()
                 throws java.io.IOException,
                        AutomationException
The source pixel type.

Specified by:
getPixelType in interface IPixelReader
Returns:
A com.esri.arcgis.geodatabase.rstPixelType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBandCount

public int getBandCount()
                 throws java.io.IOException,
                        AutomationException
The number of source bands.

Specified by:
getBandCount in interface IPixelReader
Returns:
The pBandCount
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtent

public IEnvelope getExtent()
                    throws java.io.IOException,
                           AutomationException
The source full extent.

Specified by:
getExtent in interface IPixelReader
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCellSize

public IPnt getCellSize()
                 throws java.io.IOException,
                        AutomationException
The source original cell size.

Specified by:
getCellSize in interface IPixelReader
Returns:
A reference to a com.esri.arcgis.geodatabase.IPnt
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaximumPyramidLevel

public int getMaximumPyramidLevel()
                           throws java.io.IOException,
                                  AutomationException
The maximum available source pyramid level.

Specified by:
getMaximumPyramidLevel in interface IPixelReader
Returns:
The pMaxLevel
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFirstPyramidLevel

public int getFirstPyramidLevel()
                         throws java.io.IOException,
                                AutomationException
The first available source pyramid level.

Specified by:
getFirstPyramidLevel in interface IPixelReader
Returns:
The pFirstLevel
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPyramidLevel

public int getPyramidLevel()
                    throws java.io.IOException,
                           AutomationException
The current source pyramid level.

Specified by:
getPyramidLevel in interface IPixelReader
Returns:
The pLevel
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPyramidLevel

public void setPyramidLevel(int pLevel)
                     throws java.io.IOException,
                            AutomationException
The current source pyramid level.

Specified by:
setPyramidLevel in interface IPixelReader
Parameters:
pLevel - The pLevel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

read

public void read(IPnt tlc,
                 IPixelBlock pPixelBlock)
          throws java.io.IOException,
                 AutomationException
Reads a pixel block.

Specified by:
read in interface IPixelReader
Parameters:
tlc - A reference to a com.esri.arcgis.geodatabase.IPnt (in)
pPixelBlock - A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

snap

public int snap(double dx,
                double dy)
         throws java.io.IOException,
                AutomationException
Snaps a given cellsize to a proper pyramid level.

Specified by:
snap in interface IPixelReader
Parameters:
dx - The dx (in)
dy - The dy (in)
Returns:
The pLevel
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getResolution

public void getResolution(int level,
                          double[] pXResolution,
                          double[] pYResolution)
                   throws java.io.IOException,
                          AutomationException
Gets X and Y resolution (cellsize) at a given level.

Specified by:
getResolution in interface IPixelReader
Parameters:
level - The level (in)
pXResolution - The pXResolution (out: use single element array)
pYResolution - The pYResolution (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPixelType

public void setPixelType(int rhs1)
                  throws java.io.IOException,
                         AutomationException
The source pixel type.

Specified by:
setPixelType in interface ISimplePixelReader
Parameters:
rhs1 - A com.esri.arcgis.geodatabase.rstPixelType constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBandCount

public void setBandCount(int rhs1)
                  throws java.io.IOException,
                         AutomationException
The number of source bands.

Specified by:
setBandCount in interface ISimplePixelReader
Parameters:
rhs1 - The rhs1 (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExtent

public void setExtent(IEnvelope rhs1)
               throws java.io.IOException,
                      AutomationException
The source full extent.

Specified by:
setExtent in interface ISimplePixelReader
Parameters:
rhs1 - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCellSize

public void setCellSize(IPnt rhs1)
                 throws java.io.IOException,
                        AutomationException
The source original cell size.

Specified by:
setCellSize in interface ISimplePixelReader
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IPnt (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaximumPyramidLevel

public void setMaximumPyramidLevel(int rhs1)
                            throws java.io.IOException,
                                   AutomationException
The maximum available source pyramid level.

Specified by:
setMaximumPyramidLevel in interface ISimplePixelReader
Parameters:
rhs1 - The rhs1 (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFirstPyramidLevel

public void setFirstPyramidLevel(int rhs1)
                          throws java.io.IOException,
                                 AutomationException
The first available source pyramid level.

Specified by:
setFirstPyramidLevel in interface ISimplePixelReader
Parameters:
rhs1 - The rhs1 (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRawPixelReaderByRef

public void setRawPixelReaderByRef(IRawPixelReader rhs1)
                            throws java.io.IOException,
                                   AutomationException
The raw pixel reader callback.

Specified by:
setRawPixelReaderByRef in interface ISimplePixelReader
Parameters:
rhs1 - A reference to a com.esri.arcgis.datasourcesraster.IRawPixelReader (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRasterByRef

public void setRasterByRef(IRaster rhs1)
                    throws java.io.IOException,
                           AutomationException
The source raster providing pixels.

Specified by:
setRasterByRef in interface ISimplePixelReader
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.