|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.datasourcesraster.PixelBlockCursor
public class PixelBlockCursor
A PixelBlock cursor class.
The PixelBlockCursor object provides a mechanism for iterating through the pixel blocks in a Raster or a RasterBand. It is useful for rasters that are too large to be brought into memory at once.
The PixelBlockCursor object, although similar to RasterCursor, provides a more convient way for iterating through the pixel blocks in a Raster or a RasterBand. It allows any pixel block size and provides four iteration modes.
When iterating through pixel blocks in a Rasterband, you must specify the size of the pixel block at the time of initiating it. After initiation, the pixel block size is fixed. When iterating through pixel blocks in a Raster, the size of the PixelBlock is determined automatically at the time of initiation. You can modify the size of the PixelBlock later on.
| Constructor Summary | |
|---|---|
PixelBlockCursor()
Constructs a PixelBlockCursor using ArcGIS Engine. |
|
PixelBlockCursor(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. PixelBlockCursor thePixelBlockCursor = (PixelBlockCursor) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
void |
getBlockSize(int[] pBlockSizeX,
int[] pBlockSizeY)
Gets the cursor block size. |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
void |
initByRaster(IRaster pRaster)
Initializes the cursor by the raster interface. |
void |
initByRawPixels(IRawPixels pRowPixels,
int blockSizeX,
int blockSizeY)
Initializes the cursor by the raw pixel interface. |
IPixelBlock |
nextBlock(int[] pLeft,
int[] pTop,
int[] pSizeX,
int[] pSizeY)
Obtains the next pixel block from the cursor. |
void |
setScanMode(int rhs1)
The cursor scan mode: Line = 0, LineSerpent = 1, Serpent2 = 3, alaGIF = 4. |
void |
updateBlockSize(int blockSizeX,
int blockSizeY)
Updates the cursor block size. |
| 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 PixelBlockCursor()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public PixelBlockCursor(Object obj)
throws IOException
PixelBlockCursor thePixelBlockCursor = (PixelBlockCursor) obj;
obj to PixelBlockCursor.
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 void initByRawPixels(IRawPixels pRowPixels,
int blockSizeX,
int blockSizeY)
throws IOException,
AutomationException
initByRawPixels in interface IPixelBlockCursorpRowPixels - A reference to a com.esri.arcgis.datasourcesraster.IRawPixels (in)blockSizeX - The blockSizeX (in)blockSizeY - The blockSizeY (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void initByRaster(IRaster pRaster)
throws IOException,
AutomationException
initByRaster in interface IPixelBlockCursorpRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void updateBlockSize(int blockSizeX,
int blockSizeY)
throws IOException,
AutomationException
This should be used only when reading a PixelBlock from a Raster.
updateBlockSize in interface IPixelBlockCursorblockSizeX - The blockSizeX (in)blockSizeY - The blockSizeY (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getBlockSize(int[] pBlockSizeX,
int[] pBlockSizeY)
throws IOException,
AutomationException
getBlockSize in interface IPixelBlockCursorpBlockSizeX - The pBlockSizeX (in/out: use single element array)pBlockSizeY - The pBlockSizeY (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setScanMode(int rhs1)
throws IOException,
AutomationException
The supported 4 scan modes are Line, LineSerpent, Serpent, and alaGIF, with value 0,1,3, and 4 respectively. The default is line mode.
If you wish to change the scan mode, this property must be set immedietly after initializing the pixel block (calling InitByRawPixels or InitByRaster).
setScanMode in interface IPixelBlockCursorrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPixelBlock nextBlock(int[] pLeft,
int[] pTop,
int[] pSizeX,
int[] pSizeY)
throws IOException,
AutomationException
nextBlock in interface IPixelBlockCursorpLeft - The pLeft (in/out: use single element array)pTop - The pTop (in/out: use single element array)pSizeX - The pSizeX (in/out: use single element array)pSizeY - The pSizeY (in/out: use single element array)
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 | ||||||||