Class TLcdGML32DirectPositionList
- All Implemented Interfaces:
ILcdDataObject
,com.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs
,ILcdPointList
,ILcd2DEditablePointList
,ILcd3DEditablePointList
,ILcdCloneable
,ILcdDeepCloneable
,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
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Property that maps on thecount
attribute.static final TLcdDataProperty
Property that maps on theSRSReferenceGroup
attributes.static final TLcdDataProperty
Property that maps on the value defined by the simple content. -
Constructor Summary
ConstructorDescriptionTLcdGML32DirectPositionList
(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_PROPERTY
property.getPoint
(int aIndex) Returns theILcdPoint
at a given index.int
Returns the number ofILcdPoint
objects in the list.getSrs()
Gets the value of theSRS_PROPERTY
property.Returns the value of the value property.void
insert2DPoint
(int aIndex, double aX, double aY) Inserts a point at the given index into thisILcd2DEditablePointList
.void
insert3DPoint
(int aIndex, double aX, double aY, double aZ) Inserts a point at the given index into thisILcd3DEditablePointList
.void
move2DPoint
(int aIndex, double aX, double aY) Moves the specified point of thisILcd2DEditablePointList
to the given point in the 2D space.void
move3DPoint
(int aIndex, double aX, double aY, double aZ) Moves the specified point of thisILcd3DEditablePointList
to the given point in the 3D space.void
removePointAt
(int aIndex) Removes the point at the given index from thisILcd3DEditablePointList
.void
Sets the value of theCOUNT_PROPERTY
property.void
setSrs
(ILcdModelReference aValue) Sets the value of theSRS_PROPERTY
property.void
setValue
(TLcdDataProperty aProperty, Object aFeature) Sets the value of the given property for this data object.void
setValueObject
(ILcdDoubleList aValue) Sets the value of the value property to the given value.void
translate2D
(double aDeltaX, double aDeltaY) Translates all the points of thisILcd2DEditablePointList
from their current positions over the given translation vector in the 2D space.void
translate2DPoint
(int aIndex, double aDeltaX, double aDeltaY) Translates the specified point of thisILcd2DEditablePointList
from its current position over the given translation vector in the 2D space.void
translate3D
(double aDeltaX, double aDeltaY, double aDeltaZ) Translates all the points of thisILcd3DEditablePointList
from their current positions over the given translation vector in the 3D space.void
translate3DPoint
(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ) Translates the specified point of thisILcd3DEditablePointList
from its current position over the given translation vector in the 3D space.Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint
Methods 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 thecount
attribute. Acceptable values for this property are instances ofjava.lang.Long
. -
SRS_PROPERTY
Property that maps on theSRSReferenceGroup
attributes. Acceptable values for this property are instances ofILcdModelReference
.
-
-
Constructor Details
-
TLcdGML32DirectPositionList
public TLcdGML32DirectPositionList() -
TLcdGML32DirectPositionList
-
TLcdGML32DirectPositionList
Constructs a direct position list and initializes its model reference (srs).- Parameters:
aSrs
- the model reference for this object- See Also:
-
TLcdGML32DirectPositionList
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_PROPERTY
property.- Returns:
- the value of the
COUNT_PROPERTY
property.
-
setCount
Sets the value of theCOUNT_PROPERTY
property.- Parameters:
aValue
- the value to set for theCOUNT_PROPERTY
property.
-
getSrs
Gets the value of theSRS_PROPERTY
property.- Specified by:
getSrs
in interfacecom.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs
- Returns:
- the value of the
SRS_PROPERTY
property.
-
setSrs
Sets the value of theSRS_PROPERTY
property.- Specified by:
setSrs
in interfacecom.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs
- Parameters:
aValue
- the value to set for theSRS_PROPERTY
property.
-
translate3D
public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ) Description copied from interface:ILcd3DEditablePointList
Translates all the points of thisILcd3DEditablePointList
from their current positions over the given translation vector in the 3D space.- Specified by:
translate3D
in 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:ILcd3DEditablePointList
Moves the specified point of thisILcd3DEditablePointList
to the given point in the 3D space.- Specified by:
move3DPoint
in 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:ILcd3DEditablePointList
Translates the specified point of thisILcd3DEditablePointList
from its current position over the given translation vector in the 3D space.- Specified by:
translate3DPoint
in 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:ILcd3DEditablePointList
Inserts a point at the given index into thisILcd3DEditablePointList
.- Specified by:
insert3DPoint
in 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:ILcd3DEditablePointList
Removes the point at the given index from thisILcd3DEditablePointList
.- Specified by:
removePointAt
in interfaceILcd2DEditablePointList
- Specified by:
removePointAt
in interfaceILcd3DEditablePointList
- Parameters:
aIndex
- a valid index in the list ofILcdPoint
objects.
-
translate2D
public void translate2D(double aDeltaX, double aDeltaY) Description copied from interface:ILcd2DEditablePointList
Translates all the points of thisILcd2DEditablePointList
from 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:
translate2D
in 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:ILcd2DEditablePointList
Moves the specified point of thisILcd2DEditablePointList
to the given point in the 2D space. Only the first two dimensions of theILcdShape
are considered. The third dimension is left unchanged.- Specified by:
move2DPoint
in 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:ILcd2DEditablePointList
Translates the specified point of thisILcd2DEditablePointList
from 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:
translate2DPoint
in 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:ILcd2DEditablePointList
Inserts a point at the given index into thisILcd2DEditablePointList
.- Specified by:
insert2DPoint
in 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:ILcdPointList
Returns the number ofILcdPoint
objects in the list.- Specified by:
getPointCount
in interfaceILcdPointList
- Returns:
- the number of
ILcdPoint
objects in the list.
-
getPoint
Description copied from interface:ILcdPointList
Returns theILcdPoint
at a given index.- Specified by:
getPoint
in interfaceILcdPointList
- Parameters:
aIndex
- a valid index in the list ofILcdPoint
objects.- Returns:
- the
ILcdPoint
at the given index. - Throws:
IndexOutOfBoundsException
- if the given index is out of bounds.
-
setValue
Description copied from interface:ILcdDataObject
Sets 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 type
or 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:
setValue
in interfaceILcdDataObject
- Overrides:
setValue
in classTLcdDataObject
- Parameters:
aProperty
- the property for which the value is to be setaFeature
- the value to set- See Also:
-