Class TLcdGML31DirectPositionList
- All Implemented Interfaces:
ILcdDataObject,com.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs,ILcdPointList,ILcd2DEditablePointList,ILcd3DEditablePointList,ILcdCloneable,ILcdDeepCloneable,ILcdFeatured,ILcdSelfDescribedFeatured,Serializable,Cloneable
posList instances (and other instances with the content model specified by DirectPositionListType) hold the coordinates for a sequence of direct positions within the same coordinate reference system (CRS).
if no srsName attribute is given, the CRS shall be specified as part of the larger context this geometry element is part of, typically a geometric object like a point, curve, etc.
The optional attribute count specifies the number of direct positions in the list. If the attribute count is present then the attribute srsDimension shall be present, too.
The number of entries in the list is equal to the product of the dimensionality of the coordinate reference system (i.e. it is a derived value of the coordinate reference system definition) and the number of direct positions.
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyProperty that maps on thecountattribute.static final TLcdDataPropertyProperty that maps on theSRSReferenceGroupattributes.static final TLcdDataPropertyProperty that maps on the value defined by the simple content. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdGML31DirectPositionList(TLcdDataType aDataType, ILcdModelReference aSrs) Constructs a direct position list and initializes its model reference (srs).Constructs a direct position list and initializes its model reference (srs). -
Method Summary
Modifier and TypeMethodDescriptiongetCount()Gets the value of theCOUNT_PROPERTYproperty.getPoint(int aIndex) Returns theILcdPointat a given index.intReturns the number ofILcdPointobjects in the list.getSrs()Gets the value of theSRS_PROPERTYproperty.Returns the value of the value property.voidinsert2DPoint(int aIndex, double aX, double aY) Inserts a point at the given index into thisILcd2DEditablePointList.voidinsert3DPoint(int aIndex, double aX, double aY, double aZ) Inserts a point at the given index into thisILcd3DEditablePointList.voidmove2DPoint(int aIndex, double aX, double aY) Moves the specified point of thisILcd2DEditablePointListto the given point in the 2D space.voidmove3DPoint(int aIndex, double aX, double aY, double aZ) Moves the specified point of thisILcd3DEditablePointListto the given point in the 3D space.voidremovePointAt(int aIndex) Removes the point at the given index from thisILcd3DEditablePointList.voidSets the value of theCOUNT_PROPERTYproperty.voidsetSrs(ILcdModelReference aValue) Sets the value of theSRS_PROPERTYproperty.voidsetValue(TLcdDataProperty aProperty, Object aFeature) Sets the value of the given property for this data object.voidsetValueObject(ILcdDoubleList aValue) Sets the value of the value property to the given value.voidtranslate2D(double aDeltaX, double aDeltaY) Translates all the points of thisILcd2DEditablePointListfrom their current positions over the given translation vector in the 2D space.voidtranslate2DPoint(int aIndex, double aDeltaX, double aDeltaY) Translates the specified point of thisILcd2DEditablePointListfrom its current position over the given translation vector in the 2D space.voidtranslate3D(double aDeltaX, double aDeltaY, double aDeltaZ) Translates all the points of thisILcd3DEditablePointListfrom their current positions over the given translation vector in the 3D space.voidtranslate3DPoint(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ) Translates the specified point of thisILcd3DEditablePointListfrom its current position over the given translation vector in the 3D space.Methods inherited from class com.luciad.datamodel.TLcdFeaturedDataObject
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeatureMethods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, toStringMethods 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
Property that maps on the value defined by the simple content. Acceptable values for this property are instances ofcom.luciad.util.collections.ILcdDoubleList. -
COUNT_PROPERTY
Property that maps on thecountattribute. Acceptable values for this property are instances ofjava.lang.Long. -
SRS_PROPERTY
Property that maps on theSRSReferenceGroupattributes. Acceptable values for this property are instances ofILcdModelReference.
-
-
Constructor Details
-
TLcdGML31DirectPositionList
public TLcdGML31DirectPositionList() -
TLcdGML31DirectPositionList
-
TLcdGML31DirectPositionList
Constructs a direct position list and initializes its model reference (srs).- Parameters:
aSrs- the model reference for this object- See Also:
-
TLcdGML31DirectPositionList
Constructs a direct position list and initializes its model reference (srs).- Parameters:
aDataType- the data type for this objectaSrs- the model reference for this object- See Also:
-
-
Method Details
-
getValueObject
Returns the value of the value property.- Returns:
- the value of the value property
-
setValueObject
Sets the value of the value property to the given value.- Parameters:
aValue- the value to set
-
getCount
Gets the value of theCOUNT_PROPERTYproperty.- Returns:
- the value of the
COUNT_PROPERTYproperty.
-
setCount
Sets the value of theCOUNT_PROPERTYproperty.- Parameters:
aValue- the value to set for theCOUNT_PROPERTYproperty.
-
getSrs
Gets the value of theSRS_PROPERTYproperty.- Specified by:
getSrsin interfacecom.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs- Returns:
- the value of the
SRS_PROPERTYproperty.
-
setSrs
Sets the value of theSRS_PROPERTYproperty.- Specified by:
setSrsin interfacecom.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs- Parameters:
aValue- the value to set for theSRS_PROPERTYproperty.
-
translate3D
public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ) 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
public void move3DPoint(int aIndex, double aX, double aY, double aZ) 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
public void translate3DPoint(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ) 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
public void insert3DPoint(int aIndex, double aX, double aY, double aZ) 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
public void translate2D(double aDeltaX, double aDeltaY) 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
public void move2DPoint(int aIndex, double aX, double aY) 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
public void translate2DPoint(int aIndex, double aDeltaX, double aDeltaY) 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
public void insert2DPoint(int aIndex, double aX, double aY) 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
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.
-
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 setaFeature- the value to set- See Also:
-