|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.analyst3d.GeometryMaterial
public class GeometryMaterial
The Geometry Material component.
Once a GeometryMaterial is defined (thru IGeometryMaterial interface), it can be used as a property of TextureLineSymbol or TextureFillSymbol. Alternatively, it can be added to the GeometryMaterialList to be used by the Init method of GeneralMultipatchCreator to create a textured multipatch. Note that a valid GeometryMaterial does not require a texture image. It is the developer's responsibility to make sure that a valid texture image exists before the intended use.
Note on transparency issues:
We need to differentiate Transparency, Transparent Color, and Alpha Channel three different issues.
Transparency refers to a transparent value that is applied to all pixels of an image, ranging from 0% to 100% with 0% meaning opaque and 100% transparent. When you set a transparency value to an image (or a GeometryMaterial made from that image), the value is applied blankly to all its pixels (this is called 'blending' in computer graphics term).
Transparent color specifies one particular color, with a certain RGB value, to be set to 100% transparent (i.e. invisible). When you set a transparent color, the pixels with that color value becomes completely transparent.
The alpha channel is often the fourth channel in a four-band color image. A pixel's alpha value is used as a transparency measure only applicable to that pixel. So an image (or a GeometryMaterial made from that image) with an alpha channel may have various degrees of transparency among all its pixels. If an alpha channel is present with the original image, it will be utilized automatically when the GeometryMaterial is created from that image.
| Constructor Summary | |
|---|---|
GeometryMaterial()
Constructs a GeometryMaterial using ArcGIS Engine. |
|
GeometryMaterial(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GeometryMaterial theGeometryMaterial = (GeometryMaterial) obj; |
|
| Method Summary | |
|---|---|
void |
clearTextureImage()
Clear Texture Image file. |
void |
clearTransparentTextureColor()
Clear the transparent color to the texture image. |
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
void |
getColor(double[] pRed,
double[] pGreen,
double[] pBlue)
Get color, red, green, blue is in range of 0.0 - 1.0. |
IRgbColor |
getColor2()
The color. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
void |
getTextureColorPalette(IArray[] ppRgbColors)
The values of unique RGB colors in the texture image. |
String |
getTextureImage()
The Texture Image file. |
double |
getTransparency()
The transparency, in range of 0.0 - 1.0. |
IRgbColor |
getTransparentTextureColor()
The transparent texture color. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isHasTransparentTextureColor()
Indicates if a transparent color has been assigned to the texture image. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setColor(double red,
double green,
double blue)
Set color, red, green, blue is in range of 0.0 - 1.0. |
void |
setColorByRef(IRgbColor ppRgbColor)
The color. |
void |
setTextureImage(String pFilePath)
The Texture Image file. |
void |
setTransparency(double pTransparency)
The transparency, in range of 0.0 - 1.0. |
void |
setTransparentTextureColorByRef(IRgbColor ppRgbColor)
The transparent texture color. |
void |
writeExternal(ObjectOutput out)
|
| 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 GeometryMaterial()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public GeometryMaterial(Object obj)
throws IOException
GeometryMaterial theGeometryMaterial = (GeometryMaterial) obj;
obj to GeometryMaterial.
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 setColor(double red,
double green,
double blue)
throws IOException,
AutomationException
setColor in interface IGeometryMaterialred - The red (in)green - The green (in)blue - The blue (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getColor(double[] pRed,
double[] pGreen,
double[] pBlue)
throws IOException,
AutomationException
getColor in interface IGeometryMaterialpRed - The pRed (out: use single element array)pGreen - The pGreen (out: use single element array)pBlue - The pBlue (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setColorByRef(IRgbColor ppRgbColor)
throws IOException,
AutomationException
setColorByRef in interface IGeometryMaterialppRgbColor - A reference to a com.esri.arcgis.display.IRgbColor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRgbColor getColor2()
throws IOException,
AutomationException
getColor2 in interface IGeometryMaterialIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTransparency(double pTransparency)
throws IOException,
AutomationException
setTransparency in interface IGeometryMaterialpTransparency - The pTransparency (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getTransparency()
throws IOException,
AutomationException
getTransparency in interface IGeometryMaterialIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTextureImage(String pFilePath)
throws IOException,
AutomationException
The following texture image formats are supported:
setTextureImage in interface IGeometryMaterialpFilePath - The pFilePath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getTextureImage()
throws IOException,
AutomationException
getTextureImage in interface IGeometryMaterialIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearTextureImage()
throws IOException,
AutomationException
clearTextureImage in interface IGeometryMaterialIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTransparentTextureColorByRef(IRgbColor ppRgbColor)
throws IOException,
AutomationException
setTransparentTextureColorByRef in interface IGeometryMaterialppRgbColor - A reference to a com.esri.arcgis.display.IRgbColor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRgbColor getTransparentTextureColor()
throws IOException,
AutomationException
getTransparentTextureColor in interface IGeometryMaterialIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasTransparentTextureColor()
throws IOException,
AutomationException
isHasTransparentTextureColor in interface IGeometryMaterialIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearTransparentTextureColor()
throws IOException,
AutomationException
clearTransparentTextureColor in interface IGeometryMaterialIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getTextureColorPalette(IArray[] ppRgbColors)
throws IOException,
AutomationException
getTextureColorPalette in interface IGeometryMaterialppRgbColors - A reference to a com.esri.arcgis.system.IArray (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
int fClearDirty)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||