public class TLcdKML22Scale extends TLcdKML22AbstractObject
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractObjectGroup Scales a model along the x, y, and z axes in the model's coordinate space. kml:Scale should contain at least one child element outside of an update context, that is when not a descendant of kml:Update. It is advised that kml:x, kml:y, and kml:z all be specified.
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
SCALE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
ScaleObjectExtensionGroup element. |
static TLcdDataProperty |
SCALE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
ScaleSimpleExtensionGroup element. |
static TLcdDataProperty |
X_PROPERTY
Data property that maps to the
x element. |
static TLcdDataProperty |
Y_PROPERTY
Data property that maps to the
y element. |
static TLcdDataProperty |
Z_PROPERTY
Data property that maps to the
z element. |
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
Constructor and Description |
---|
TLcdKML22Scale(TLcdDataType aType)
Creates a new
TLcdKML22Scale with a custom TLcdDataType . |
Modifier and Type | Method and Description |
---|---|
Double |
getX()
Gets the x value of this scale.
|
Double |
getY()
Gets the y value of this scale.
|
Double |
getZ()
Gets the z value of this scale.
|
void |
setX(Double aValue)
Sets the value of the property that maps to the
x element. |
void |
setY(Double aValue)
Sets the value of the property that maps to the
y element. |
void |
setZ(Double aValue)
Sets the value of the property that maps to the
z element. |
getId, getTargetId, setId, setTargetId
public static final TLcdDataProperty X_PROPERTY
x
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty Y_PROPERTY
y
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty Z_PROPERTY
z
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty SCALE_SIMPLE_EXTENSION_GROUP_PROPERTY
ScaleSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty SCALE_OBJECT_EXTENSION_GROUP_PROPERTY
ScaleObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public TLcdKML22Scale(TLcdDataType aType)
TLcdKML22Scale
with a custom TLcdDataType
.aType
- a custom TLcdDataType
public Double getX()
public Double getY()
public Double getZ()
public void setX(Double aValue)
x
element.aValue
- the value to set for the X_PROPERTY
property.public void setY(Double aValue)
y
element.aValue
- the value to set for the Y_PROPERTY
property.public void setZ(Double aValue)
z
element.aValue
- the value to set for the Z_PROPERTY
property.