|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.analyst3d.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(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
void |
clearTextureImage()
Clear Texture Image file. |
void |
clearTransparentTextureColor()
Clear the transparent color to the texture image. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
IGeometryMaterial |
getAsIGeometryMaterial()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IPersist |
getAsIPersist()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IPersistStream |
getAsIPersistStream()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
void |
getClassID(GUID[] pClassID)
Supported Platforms |
static java.lang.String |
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)
Supported Platforms |
void |
getTextureColorPalette(IArray[] ppRgbColors)
The values of unique RGB colors in the texture image. |
java.lang.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()
Supported Platforms |
boolean |
isHasTransparentTextureColor()
Indicates if a transparent color has been assigned to the texture image. |
void |
load(IStream pstm)
Supported Platforms |
void |
save(IStream pstm,
int fClearDirty)
Supported Platforms |
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(java.lang.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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeometryMaterial()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public GeometryMaterial(java.lang.Object obj)
throws java.io.IOException
obj to GeometryMaterial. GeometryMaterial theGeometryMaterial = (GeometryMaterial) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public IGeometryMaterial getAsIGeometryMaterial()
public IPersistStream getAsIPersistStream()
public IPersist getAsIPersist()
public boolean equals(java.lang.Object o)
public int hashCode()
public void setColor(double red,
double green,
double blue)
throws java.io.IOException,
AutomationException
IGeometryMaterial
setColor in interface IGeometryMaterialred - The red (in)green - The green (in)blue - The blue (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void getColor(double[] pRed,
double[] pGreen,
double[] pBlue)
throws java.io.IOException,
AutomationException
IGeometryMaterial
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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setColorByRef(IRgbColor ppRgbColor)
throws java.io.IOException,
AutomationException
IGeometryMaterial
setColorByRef in interface IGeometryMaterialppRgbColor - A reference to a com.esri.arcgis.display.IRgbColor (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRgbColor getColor2()
throws java.io.IOException,
AutomationException
IGeometryMaterial
getColor2 in interface IGeometryMaterialAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setTransparency(double pTransparency)
throws java.io.IOException,
AutomationException
IGeometryMaterial
setTransparency in interface IGeometryMaterialpTransparency - The pTransparency (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getTransparency()
throws java.io.IOException,
AutomationException
IGeometryMaterial
getTransparency in interface IGeometryMaterialAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setTextureImage(java.lang.String pFilePath)
throws java.io.IOException,
AutomationException
IGeometryMaterial
setTextureImage in interface IGeometryMaterialpFilePath - The pFilePath (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getTextureImage()
throws java.io.IOException,
AutomationException
IGeometryMaterial
getTextureImage in interface IGeometryMaterialjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearTextureImage()
throws java.io.IOException,
AutomationException
IGeometryMaterial
clearTextureImage in interface IGeometryMaterialAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setTransparentTextureColorByRef(IRgbColor ppRgbColor)
throws java.io.IOException,
AutomationException
IGeometryMaterial
setTransparentTextureColorByRef in interface IGeometryMaterialppRgbColor - A reference to a com.esri.arcgis.display.IRgbColor (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IRgbColor getTransparentTextureColor()
throws java.io.IOException,
AutomationException
IGeometryMaterial
getTransparentTextureColor in interface IGeometryMaterialAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isHasTransparentTextureColor()
throws java.io.IOException,
AutomationException
IGeometryMaterial
isHasTransparentTextureColor in interface IGeometryMaterialjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearTransparentTextureColor()
throws java.io.IOException,
AutomationException
IGeometryMaterial
clearTransparentTextureColor in interface IGeometryMaterialjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getTextureColorPalette(IArray[] ppRgbColors)
throws java.io.IOException,
AutomationException
IGeometryMaterial
getTextureColorPalette in interface IGeometryMaterialppRgbColors - A reference to a com.esri.arcgis.system.IArray (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void isDirty()
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void save(IStream pstm,
int fClearDirty)
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream 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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void getClassID(GUID[] pClassID)
throws java.io.IOException,
AutomationException
IPersistIPersist 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||