Class TLcdGML32Coordinates
- All Implemented Interfaces:
ILcdDataObject,ILcdPointList,ILcd2DEditablePointList,ILcd3DEditablePointList,ILcdCloneable,ILcdDeepCloneable,Serializable,Cloneable
- Decimal: symbol used for a decimal point (default="." a stop or period)
- cs: symbol used to separate components within a tuple or coordinate string (default="," a comma)
- ts: symbol used to separate tuples or coordinate strings (default=" " a space)
Note that the implementation of the ILcd3DEditablePointList interface in this
class has been made deprecated. This is because a coordinates object does not have enough information
to correctly implement it. In particular, the coordinates object does not know if the coordinate
values should be interpreted as lon-lat or lat-lon coordinates. In a larger context, this is
not an issue because coordinates are always encapsulated by other geometries (such as
for instance a line string) that do know how to interpret the coordinate values.
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to thecsattribute.static final TLcdDataPropertyData property that maps to thedecimalattribute.static final TLcdDataPropertyData property that maps to thetsattribute.static final TLcdDataPropertyData property that maps to the value defined by the simple content. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a deep clone of this object.Returns a deep clone of this object.getCs()Returns the value of the property that maps to thecsattribute.Returns the value of the property that maps to thedecimalattribute.getPoint(int aIndex) Deprecated.intReturns the number ofILcdPointobjects in the list.getTs()Returns the value of the property that maps to thetsattribute.getValue()getValue(TLcdDataProperty aProperty) Returns the value of the given property.Returns the value of the property that maps to the value defined by the simple content.double[]Returns the coordinate values.booleanhasValue(TLcdDataProperty aProperty) Indicates whether this data object has a value for the given property.voidinsert2DPoint(int aIndex, double aX, double aY) Deprecated.voidinsert3DPoint(int aIndex, double aX, double aY, double aZ) Deprecated.voidmove2DPoint(int aIndex, double aX, double aY) Deprecated.voidmove3DPoint(int aIndex, double aX, double aY, double aZ) Deprecated.voidremovePointAt(int aIndex) Removes the point at the given index from thisILcd3DEditablePointList.voidSets the value of the property that maps to thecsattribute.voidsetDecimal(String aValue) Sets the value of the property that maps to thedecimalattribute.voidSets the value of the property that maps to thetsattribute.voidsetValue(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.voidvoidsetValueObject(String aValue) Sets the value of the property that maps to the value defined by the simple content.toString()voidtranslate2D(double aDeltaX, double aDeltaY) Deprecated.voidtranslate2DPoint(int aIndex, double aDeltaX, double aDeltaY) Deprecated.voidtranslate3D(double aDeltaX, double aDeltaY, double aDeltaZ) Deprecated.voidtranslate3DPoint(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ) Deprecated.Methods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, hasValue, setValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPointMethods inherited from interface com.luciad.shape.ILcdPointList
getPointSFCT, getX, getY, getZ
-
Field Details
-
VALUE_PROPERTY
Data property that maps to the value defined by the simple content. The possible values for this property are instances ofString. -
CS_PROPERTY
Data property that maps to thecsattribute. The possible values for this property are instances ofString. -
DECIMAL_PROPERTY
Data property that maps to thedecimalattribute. The possible values for this property are instances ofString. -
TS_PROPERTY
Data property that maps to thetsattribute. The possible values for this property are instances ofString.
-
-
Constructor Details
-
TLcdGML32Coordinates
public TLcdGML32Coordinates() -
TLcdGML32Coordinates
-
-
Method Details
-
getValue
-
setValue
-
translate3D
Deprecated.Description copied from interface:ILcd3DEditablePointListTranslates all the points of thisILcd3DEditablePointListfrom their current positions over the given translation vector in the 3D space.- Specified by:
translate3Din interfaceILcd3DEditablePointList- Parameters:
aDeltaX- the x coordinate of the translation vector.aDeltaY- the y coordinate of the translation vector.aDeltaZ- the z coordinate of the translation vector.
-
move3DPoint
Deprecated.Description copied from interface:ILcd3DEditablePointListMoves the specified point of thisILcd3DEditablePointListto the given point in the 3D space.- Specified by:
move3DPointin interfaceILcd3DEditablePointList- Parameters:
aIndex- a valid index in the list of points.aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.
-
translate3DPoint
@Deprecated public void translate3DPoint(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ) Deprecated.Description copied from interface:ILcd3DEditablePointListTranslates the specified point of thisILcd3DEditablePointListfrom its current position over the given translation vector in the 3D space.- Specified by:
translate3DPointin interfaceILcd3DEditablePointList- Parameters:
aIndex- a valid new index in the list of points.aDeltaX- the x coordinate of the translation vector.aDeltaY- the y coordinate of the translation vector.aDeltaZ- the z coordinate of the translation vector.
-
insert3DPoint
Deprecated.Description copied from interface:ILcd3DEditablePointListInserts a point at the given index into thisILcd3DEditablePointList.- Specified by:
insert3DPointin interfaceILcd3DEditablePointList- Parameters:
aIndex- a valid new index in the list of points.aX- the x coordinate of the new point.aY- the y coordinate of the new point.aZ- the z coordinate of the new point.
-
removePointAt
public void removePointAt(int aIndex) Description copied from interface:ILcd3DEditablePointListRemoves the point at the given index from thisILcd3DEditablePointList.- Specified by:
removePointAtin interfaceILcd2DEditablePointList- Specified by:
removePointAtin interfaceILcd3DEditablePointList- Parameters:
aIndex- a valid index in the list ofILcdPointobjects.
-
translate2D
Deprecated.Description copied from interface:ILcd2DEditablePointListTranslates all the points of thisILcd2DEditablePointListfrom their current positions over the given translation vector in the 2D space. Only the first two dimensions of the points are considered. The third dimension is left unchanged.- Specified by:
translate2Din interfaceILcd2DEditablePointList- Parameters:
aDeltaX- the x coordinate of the translation vector.aDeltaY- the y coordinate of the translation vector.
-
move2DPoint
Deprecated.Description copied from interface:ILcd2DEditablePointListMoves the specified point of thisILcd2DEditablePointListto the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered. The third dimension is left unchanged.- Specified by:
move2DPointin interfaceILcd2DEditablePointList- Parameters:
aIndex- a valid index in the list of points.aX- the x coordinate of the point.aY- the y coordinate of the point.
-
translate2DPoint
Deprecated.Description copied from interface:ILcd2DEditablePointListTranslates the specified point of thisILcd2DEditablePointListfrom its current position over the given translation vector in the 2D space. Only the first two dimensions of the points are considered. The third dimension is left unchanged.- Specified by:
translate2DPointin interfaceILcd2DEditablePointList- Parameters:
aDeltaX- the x coordinate of the translation vector.aDeltaY- the y coordinate of the translation vector.
-
insert2DPoint
Deprecated.Description copied from interface:ILcd2DEditablePointListInserts a point at the given index into thisILcd2DEditablePointList.- Specified by:
insert2DPointin interfaceILcd2DEditablePointList- Parameters:
aIndex- a valid new index in the list of points.aX- the x coordinate of the new point.aY- the y coordinate of the new point.
-
getPointCount
public int getPointCount()Description copied from interface:ILcdPointListReturns the number ofILcdPointobjects in the list.- Specified by:
getPointCountin interfaceILcdPointList- Returns:
- the number of
ILcdPointobjects in the list.
-
getPoint
Deprecated.Description copied from interface:ILcdPointListReturns theILcdPointat a given index.- Specified by:
getPointin interfaceILcdPointList- Parameters:
aIndex- a valid index in the list ofILcdPointobjects.- Returns:
- the
ILcdPointat the given index. - Throws:
IndexOutOfBoundsException- if the given index is out of bounds.
-
getValue
Description copied from interface:ILcdDataObjectReturns the value of the given property.
If the property is a collection, the returned value will never be null. If the property has not been set, an empty collection of the appropriate type will be returned (Set, List or Map).
The property must not be null, and must be declared in the
data object's typeor in one of its super types. Otherwise anIllegalArgumentExceptionis thrown.- Specified by:
getValuein interfaceILcdDataObject- Overrides:
getValuein classTLcdDataObject- Parameters:
aProperty- the property for which the value is to be returned- Returns:
- the value of the given property for this data object
-
hasValue
Description copied from interface:ILcdDataObjectIndicates whether this data object has a value for the given property.aPropertyis from theright data type, and this instance has a value for it: returnstrueaPropertyis from theright data type, and this instance has no value for it: returnsfalseaPropertyis not from theright data type: not allowed, you will get IllegalArgumentExceptionaPropertyisnull: not allowed, you will get NullPointerException
- Specified by:
hasValuein interfaceILcdDataObject- Overrides:
hasValuein classTLcdDataObject- Parameters:
aProperty- the property for which to return whether a value is present or not.- Returns:
trueif this data object has a value for the given property,falseotherwise.
-
setValue
Description copied from interface:ILcdDataObjectSets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's typeor in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw anIllegalArgumentException.- Specified by:
setValuein interfaceILcdDataObject- Overrides:
setValuein classTLcdDataObject- Parameters:
aProperty- the property for which the value is to be setaValue- the value to set- See Also:
-
toString
- Overrides:
toStringin classTLcdDataObject
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map).- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdDataObject- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein classTLcdDataObject- Parameters:
aObjectDictionary- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
getValues
public double[] getValues()Returns the coordinate values. This array is computed from the value of theALcdGML32Coordinates.VALUE_PROPERTY.- Returns:
- the coordinate values of this object
- See Also:
-
getValueObject
Returns the value of the property that maps to the value defined by the simple content.- Returns:
- the value of the
VALUE_PROPERTYproperty.
-
setValueObject
Sets the value of the property that maps to the value defined by the simple content.- Parameters:
aValue- the value to set for theVALUE_PROPERTYproperty.
-
getCs
Returns the value of the property that maps to thecsattribute.- Returns:
- the value of the
CS_PROPERTYproperty.
-
setCs
Sets the value of the property that maps to thecsattribute.- Parameters:
aValue- the value to set for theCS_PROPERTYproperty.
-
getDecimal
Returns the value of the property that maps to thedecimalattribute.- Returns:
- the value of the
DECIMAL_PROPERTYproperty.
-
setDecimal
Sets the value of the property that maps to thedecimalattribute.- Parameters:
aValue- the value to set for theDECIMAL_PROPERTYproperty.
-
getTs
Returns the value of the property that maps to thetsattribute.- Returns:
- the value of the
TS_PROPERTYproperty.
-
setTs
Sets the value of the property that maps to thetsattribute.- Parameters:
aValue- the value to set for theTS_PROPERTYproperty.
-