|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesraster.RasterCursor
public class RasterCursor
A raster cursor class.
The RasterCursor object is used for iterating through all of the pixel blocks in a raster. It is useful for rasters that are too large to be brought into memory at once.
IRaster::CreateCursor or IRaster2::CreateCursorEx can be used to create a RasterCursor .
The IRaster::CreateCursor divides the Raster into blocks of 128 pixels high (rows) that span the full width of the raster. Each successive pixel block is read 128 lines below the previous pixel block. IRaster2::CreateCursorEx divides the Raster with your specified block size.
PixelBlock
,
Serialized FormConstructor Summary | |
---|---|
RasterCursor(Object obj)
Construct a RasterCursor using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
IPixelBlock |
getPixelBlock()
The current PixelBlock. |
IPnt |
getTopLeft()
The offset of the current PixelBlock. |
int |
hashCode()
the hashcode for this object |
boolean |
next()
Iterates to the next PixelBlock. |
void |
reset()
Return to state when first created. |
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 RasterCursor(Object obj) throws IOException
obj
to RasterCursor
. *
RasterCursor o = (RasterCursor)obj; // will not work
RasterCursor o = new RasterCursor(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
RasterCursor theRasterCursor = (RasterCursor) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IPnt getTopLeft() throws IOException, AutomationException
getTopLeft
in interface IRasterCursor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPixelBlock getPixelBlock() throws IOException, AutomationException
getPixelBlock
in interface IRasterCursor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean next() throws IOException, AutomationException
next
in interface IRasterCursor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void reset() throws IOException, AutomationException
reset
in interface IRasterCursor
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 |