|
|||||||||
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.IPixelBlock3Proxy
public class IPixelBlock3Proxy
Provides access to members that control a PixelBlock.
The IPixelBlock3 interface provides all the functionality of IPixelBlock interface, plus more properties on mask based NoData and SafeArray handling.
Basically, there are two ways to work with NoData mask and pixel values. They are by value (PixelData and NoDataMask properties) and by reference (PixelDataByRef and NoDataMaskByRef). Normally passing pixel values by reference is recommented since it saves memory. However for Java and .Net, passing by value (PixelData) should be used.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IPixelBlock3Proxy()
|
|
IPixelBlock3Proxy(Object obj)
|
protected |
IPixelBlock3Proxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
clear(int plane)
Clears a given plane (sets to NoData). |
int |
getBytesPerPixel()
The number of bytes per pixel for the PixelBlock. |
int |
getHeight()
The height of the PixelBlock in pixels. |
Object |
getNoDataMask(int plane)
The NoData mask for a specified plane. |
Object |
getNoDataMaskByRef(int plane)
The NoData mask for a specified plane. |
Object |
getNoDataMaskVal(int plane,
int x,
int y)
Gets the NoData mask value for a specified pixel. |
Object |
getPixelData(int plane)
An array of pixels for a specified plane. |
Object |
getPixelDataByRef(int plane)
A pointer to an array of pixels for a specified plane. |
int |
getPixelType(int plane)
The pixel type of the PixelBlock. |
int |
getPlanes()
The number of pixel arrays contained in the PixelBlock. |
Object |
getVal(int plane,
int x,
int y)
The value for a specified pixel. |
int |
getWidth()
The width of the PixelBlock in pixels. |
boolean |
hasNoData(int plane)
Checks if this PixelBlock contains NoData. |
void |
mask(Object noData)
Generates NoData Mask using a given NoData value. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setNoDataMask(int plane,
Object pVal)
The NoData mask for a specified plane. |
void |
setPixelData(int plane,
Object pVal)
An array of pixels for a specified plane. |
void |
setPixelType(int plane,
int pVal)
The pixel type of the PixelBlock. |
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 IPixelBlock3Proxy()
public IPixelBlock3Proxy(Object obj) throws IOException
IOException
protected IPixelBlock3Proxy(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 int getPlanes() throws IOException, AutomationException
The Planes property returns the number of bands in the PixelBlock.
getPlanes
in interface IPixelBlock3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getWidth() throws IOException, AutomationException
getWidth
in interface IPixelBlock3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHeight() throws IOException, AutomationException
getHeight
in interface IPixelBlock3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getPixelType(int plane) throws IOException, AutomationException
getPixelType
in interface IPixelBlock3
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPixelType(int plane, int pVal) throws IOException, AutomationException
setPixelType
in interface IPixelBlock3
plane
- The plane (in)pVal
- A com.esri.arcgis.geodatabase.rstPixelType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBytesPerPixel() throws IOException, AutomationException
getBytesPerPixel
in interface IPixelBlock3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getPixelData(int plane) throws IOException, AutomationException
getPixelData
in interface IPixelBlock3
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPixelData(int plane, Object pVal) throws IOException, AutomationException
setPixelData
in interface IPixelBlock3
plane
- The plane (in)pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getPixelDataByRef(int plane) throws IOException, AutomationException
getPixelDataByRef
in interface IPixelBlock3
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getVal(int plane, int x, int y) throws IOException, AutomationException
The GetVal method returns an individual value for the pixel specified by the band and pixel location input.
getVal
in interface IPixelBlock3
plane
- The plane (in)x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNoDataMask(int plane, Object pVal) throws IOException, AutomationException
setNoDataMask
in interface IPixelBlock3
plane
- The plane (in)pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getNoDataMask(int plane) throws IOException, AutomationException
getNoDataMask
in interface IPixelBlock3
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getNoDataMaskByRef(int plane) throws IOException, AutomationException
getNoDataMaskByRef
in interface IPixelBlock3
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getNoDataMaskVal(int plane, int x, int y) throws IOException, AutomationException
The GetNoDataMaskVal property allows you to identify whether a specific pixel is NoData or not. Value 1 means this corresponding pixel has a value and 0 means this corresponding pixel is NoData
getNoDataMaskVal
in interface IPixelBlock3
plane
- The plane (in)x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean hasNoData(int plane) throws IOException, AutomationException
The HasNoData property indicates whether the PixelBlock has NoData or not. True means it has NoData.
hasNoData
in interface IPixelBlock3
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clear(int plane) throws IOException, AutomationException
clear
in interface IPixelBlock3
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void mask(Object noData) throws IOException, AutomationException
mask
in interface IPixelBlock3
noData
- A Variant (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 |