public class Ilv3DSymbol extends Object
Ilv3DSymbolManager
Constructor and Description |
---|
Ilv3DSymbol(IlvSDMNode node,
BufferedImage image,
double ratio)
Creates a new 3D Symbol.
|
Modifier and Type | Method and Description |
---|---|
double |
getAltitude()
Returns the altitude of the symbol in the current altitude unit.
|
double |
getLatitude()
Returns the latitude of the symbol(in radians) transformed from the SDM property.
|
double |
getLongitude()
Returns the longitude of the symbol(in radians) transformed from the SDM property.
|
IlvSDMNode |
getNode()
Returns the SDM node attached to this 3D symbol.
|
void |
setAltitudePropertyName(String altitudePropertyName)
Sets the name of the property to use to retrieve altitude in the symbol
node.
|
void |
setAltitudeUnit(IlvLinearUnit altitudeUnit)
Sets the unit for the altitude property.
|
void |
setImage(BufferedImage image)
Sets the image for this symbol.
|
void |
setLatitudePropertyName(String latitudePropertyName)
Sets the name of the property to use to retrieve latitude in the symbol
node.
|
void |
setLongitudePropertyName(String longitudePropertyName)
Sets the name of the property to use to retrieve longitude in the symbol
node.
|
public Ilv3DSymbol(IlvSDMNode node, BufferedImage image, double ratio)
node
- the node to representimage
- the image to use as an icon above the node position
image to use to represent symbol.ratio
- a ratio for displaying the image.public double getAltitude() throws IlvConvertException
IlvConvertException
public double getLatitude() throws IlvConvertException
IlvConvertException
IlvMapRenderer.convertLatLong(Object, boolean)
,
setLatitudePropertyName(String)
public double getLongitude() throws IlvConvertException
IlvConvertException
IlvMapRenderer.convertLatLong(Object, boolean)
,
setLongitudePropertyName(String)
public void setAltitudePropertyName(String altitudePropertyName)
altitudePropertyName
- name of the property.getAltitude()
public void setAltitudeUnit(IlvLinearUnit altitudeUnit)
altitudeUnit
- the unit. Default value is IlvLinearUnit.METER
.getAltitude()
public void setImage(BufferedImage image)
image
- The image to set.public void setLatitudePropertyName(String latitudePropertyName)
latitudePropertyName
- name of the property. Default value is
IlvMapRenderer.LATITUDE_PROPERTY
.getLatitude()
public void setLongitudePropertyName(String longitudePropertyName)
longitudePropertyName
- name of the property. Default value is
IlvMapRenderer.LONGITUDE_PROPERTY
.getLongitude()
public IlvSDMNode getNode()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.