|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.datasourcesraster.IRawPixelsProxy
public class IRawPixelsProxy
Provides access to members that control pixel reading and writing from a RasterBand.
When using a PixelBlock created by the RasterBand coclass, use only the first plane because the RasterBand is a single band. All formats can be read using this technique, but only GRID, TIFF, Imagine, BIL, BIP, and BSQ formats can be written. Reading the PixelBlock from the band completes the initialization of the PixelBlock and should be done before writing to the band.
The Read method reads a block of pixels into the input PixelBlock object. The data is read beginning at a specified pixel location. This pixel location is the offset from the top-left corner of the image, represented by (0,0), and increases down and to the right.
The Write method outputs the contents of a PixelBlock to the RasterBand. The PixelBlock is written to an area in the band specified by its top-left corner in the same pixel coordinate space used by the Read method. If transactioning is enabled, this write is persisted temporarily to a memory cache that allows undo support; otherwise, the data is persisted directly to disk at this time.
The AcquireCache and ReturnCache methods control a cache within the band object that allows the transactioning mechanism used by the RasterBand to be activated.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IRawPixelsProxy()
|
|
IRawPixelsProxy(Object obj)
|
protected |
IRawPixelsProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
Object |
acquireCache()
Gets reference to edit cache. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
IPixelBlock |
createPixelBlock(IPnt size)
Allocates a PixelBlock of size requested and type of this band. |
int |
getNumCacheRefs()
Number of outstanding cache references |
void |
read(IPnt tlc,
IPixelBlock pxls)
Read a block of pixels starting from tlc (top left corner). |
void |
removeListener(String iidStr,
Object theListener)
|
int |
returnCache(Object cache)
Restores edit cache to previous state. |
void |
write(IPnt tlc,
IPixelBlock pxls)
Write a block of pixels starting from tlc (top left corner). |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IRawPixelsProxy()
public IRawPixelsProxy(Object obj) throws IOException
IOException
protected IRawPixelsProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public IPixelBlock createPixelBlock(IPnt size) throws IOException, AutomationException
CreatePixelBlock method only initializes the properties of a pixel block, such as dimension, pixel type etc. Read method of this interface should be used to read pixels into the pixel block.
createPixelBlock
in interface IRawPixels
size
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void read(IPnt tlc, IPixelBlock pxls) throws IOException, AutomationException
read
in interface IRawPixels
tlc
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)pxls
- A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void write(IPnt tlc, IPixelBlock pxls) throws IOException, AutomationException
write
in interface IRawPixels
tlc
- A reference to a com.esri.arcgis.geodatabase.IPnt (in)pxls
- A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object acquireCache() throws IOException, AutomationException
acquireCache
in interface IRawPixels
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int returnCache(Object cache) throws IOException, AutomationException
returnCache
in interface IRawPixels
cache
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getNumCacheRefs() throws IOException, AutomationException
getNumCacheRefs
in interface IRawPixels
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 |