public class TLcdGML31DirectPosition extends TLcdFeaturedDataObject implements com.luciad.internal.format.gmlcommon.ILcd3DEditablePointWithSrs
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
SRS_PROPERTY
Property that maps on the
SRSReferenceGroup attributes. |
static TLcdDataProperty |
VALUE_PROPERTY
Property that maps on the value defined by the simple content.
|
Constructor and Description |
---|
TLcdGML31DirectPosition() |
TLcdGML31DirectPosition(ILcdModelReference aSrs)
Constructs a direct position and initializes its
model reference (srs).
|
TLcdGML31DirectPosition(TLcdDataType aType) |
TLcdGML31DirectPosition(TLcdDataType aDataType,
ILcdModelReference aSrs)
Constructs a direct position and initializes its
model reference (srs).
|
Modifier and Type | Method and Description |
---|---|
TLcdGML31DirectPosition |
clone()
Returns a deep clone of this object.
|
TLcdDataObject |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
ILcd2DEditablePoint |
cloneAs2DEditablePoint()
Returns a copy of this
ILcdPoint that is also an ILcd2DEditablePoint . |
ILcd3DEditablePoint |
cloneAs3DEditablePoint()
Returns a copy of this
ILcdPoint that is also an ILcd3DEditablePoint . |
boolean |
contains2D(double v,
double v1)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double v,
double v1,
double v2)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
double |
getCosX()
Returns cos(
getX() * DEG2RAD ). |
double |
getCosY()
Returns cos(
getY() * DEG2RAD ). |
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
double |
getSinX()
Returns sin(
getX() * DEG2RAD ). |
double |
getSinY()
Returns sin(
getY() * DEG2RAD ). |
ILcdModelReference |
getSrs()
Gets the value of the
SRS_PROPERTY property. |
double |
getTanX()
Returns tan(
getX() * DEG2RAD ). |
double |
getTanY()
Returns tan(
getY() * DEG2RAD ). |
ILcdDoubleList |
getValueObject()
Returns the value of the value property.
|
double |
getX()
Returns the x coordinate of this
ILcdPoint . |
double |
getY()
Returns the y coordinate of this
ILcdPoint . |
double |
getZ()
Returns the z coordinate of this
ILcdPoint . |
void |
move2D(double x,
double y)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
void |
move2D(ILcdPoint aILcdPoint)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
void |
move3D(double x,
double y,
double z)
Moves this
ILcd3DEditableShape to the given point in the 3D space. |
void |
move3D(ILcdPoint aPoint)
Moves this
ILcd3DEditableShape to the given point in the 3D space. |
void |
setSrs(ILcdModelReference aValue)
Sets the value of the
SRS_PROPERTY property. |
void |
setValue(TLcdDataProperty aProperty,
Object aValue)
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.
|
String |
toString() |
void |
translate2D(double v,
double v1)
Translates this
ILcd2DEditableShape from its current position over the given translation
vector in the 2D space. |
void |
translate3D(double v,
double v1,
double v2)
Translates this
ILcd3DEditableShape from its current position over the given translation
vector in the 3D space. |
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeature
getDataType, getValue, getValue, hasValue, hasValue, setValue
public static final TLcdDataProperty VALUE_PROPERTY
com.luciad.util.collections.ILcdDoubleList
.public static final TLcdDataProperty SRS_PROPERTY
SRSReferenceGroup
attributes. Acceptable values for this property are instances of ILcdModelReference
.public TLcdGML31DirectPosition(TLcdDataType aType)
public TLcdGML31DirectPosition()
public TLcdGML31DirectPosition(ILcdModelReference aSrs)
aSrs
- the model reference for this objectsetSrs(ILcdModelReference)
public TLcdGML31DirectPosition(TLcdDataType aDataType, ILcdModelReference aSrs)
aDataType
- the data type for this objectaSrs
- the model reference for this objectsetSrs(ILcdModelReference)
public ILcdDoubleList getValueObject()
public void setValueObject(ILcdDoubleList aValue)
aValue
- the value to setpublic ILcdModelReference getSrs()
SRS_PROPERTY
property.getSrs
in interface com.luciad.internal.format.gmlcommon.ILcd3DEditablePointWithSrs
SRS_PROPERTY
property.public void setSrs(ILcdModelReference aValue)
SRS_PROPERTY
property.setSrs
in interface com.luciad.internal.format.gmlcommon.ILcd3DEditablePointWithSrs
aValue
- the value to set for the SRS_PROPERTY
property.public double getX()
ILcdPoint
ILcdPoint
.public double getY()
ILcdPoint
ILcdPoint
.public double getZ()
ILcdPoint
ILcdPoint
.public double getCosX()
ILcdPoint
getX()
* DEG2RAD ).public double getCosY()
ILcdPoint
getY()
* DEG2RAD ).public double getSinX()
ILcdPoint
getX()
* DEG2RAD ).public double getSinY()
ILcdPoint
getY()
* DEG2RAD ).public double getTanX()
ILcdPoint
getX()
* DEG2RAD ).public double getTanY()
ILcdPoint
getY()
* DEG2RAD ).public ILcd2DEditablePoint cloneAs2DEditablePoint()
ILcdPoint
ILcdPoint
that is also an ILcd2DEditablePoint
.
This makes sure that the first two dimensions of the copy are writable,cloneAs2DEditablePoint
in interface ILcdPoint
ILcdPoint
that is also an ILcd2DEditablePoint
.
This makes sure that the first two dimensions of the copy are writable,
even if the original ILcdPoint
object may be read-only.ILcd2DEditablePoint
public ILcd3DEditablePoint cloneAs3DEditablePoint()
ILcdPoint
ILcdPoint
that is also an ILcd3DEditablePoint
.
This makes sure that all three dimensions of the copy are writable,cloneAs3DEditablePoint
in interface ILcdPoint
ILcdPoint
that is also an ILcd3DEditablePoint
.
This makes sure that all three dimensions of the copy are writable,
even if the original ILcdPoint
object may be read-only.ILcd3DEditablePoint
public void move3D(ILcdPoint aPoint)
ILcd3DEditableShape
ILcd3DEditableShape
to the given point in the 3D space. The focus point
is used as the handle by which the shape is moved.move3D
in interface ILcd3DEditableShape
aPoint
- the ILcdPoint
to move to.ILcd3DEditableShape.move3D(double, double, double)
public void move3D(double x, double y, double z)
ILcd3DEditableShape
ILcd3DEditableShape
to the given point in the 3D space. The focus point
is used as the handle by which the shape is moved.move3D
in interface ILcd3DEditableShape
x
- the x coordinate of the point.y
- the y coordinate of the point.z
- the z coordinate of the point.public void translate3D(double v, double v1, double v2)
ILcd3DEditableShape
ILcd3DEditableShape
from its current position over the given translation
vector in the 3D space.translate3D
in interface ILcd3DEditableShape
v
- the x coordinate of the translation vector.v1
- the y coordinate of the translation vector.v2
- the z coordinate of the translation vector.public void move2D(ILcdPoint aILcdPoint)
ILcd2DEditableShape
ILcd2DEditableShape
to the given point in the 2D space. The focus point
is used as the handle by which the shape is moved. Only the first
two dimensions of the ILcdShape
and the ILcdPoint
are considered.
The third dimension is left unchanged.move2D
in interface ILcd2DEditableShape
aILcdPoint
- the ILcdPoint
to move to.ILcd2DEditableShape.move2D(double, double)
public void move2D(double x, double y)
ILcd2DEditableShape
ILcd2DEditableShape
to the given point in the 2D space. The focus point
is used as the handle by which the shape is moved. Only the first
two dimensions of the ILcdShape
are considered.
The third dimension is left unchanged.move2D
in interface ILcd2DEditableShape
x
- the x coordinate of the point.y
- the y coordinate of the point.public void translate2D(double v, double v1)
ILcd2DEditableShape
ILcd2DEditableShape
from its current position over the given translation
vector in the 2D space. Only the first two dimensions of the ILcdShape
are considered.
The third dimension is left unchanged.translate2D
in interface ILcd2DEditableShape
v
- the x coordinate of the translation vector.v1
- the y coordinate of the translation vector.public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public boolean contains2D(ILcdPoint aILcdPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains2D(double v, double v1)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
v
- the x coordinate of the point.v1
- the y coordinate of the point.public boolean contains3D(ILcdPoint aILcdPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains3D(double v, double v1, double v2)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
v
- the x coordinate of the point.v1
- the y coordinate of the point.v2
- the z coordinate of the point.public TLcdGML31DirectPosition clone()
TLcdDataObject
TLcdDataObject.clone(Map)
.clone
in interface ILcdCloneable
clone
in class TLcdDataObject
Object.clone()
public TLcdDataObject clone(Map aObjectDictionary)
TLcdDataObject
ILcdDataObject
, the value is cloned by first creating a new instance via
the value.getDataType().newInstance()
method, and then cloning its properties one by one.ILcdDeepCloneable
or
ILcdCloneable
then this interface is used to clone the value.clone
in interface ILcdDeepCloneable
clone
in class TLcdDataObject
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public String toString()
toString
in class TLcdDataObject
public void setValue(TLcdDataProperty aProperty, Object aValue)
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 an IllegalArgumentException
.setValue
in interface ILcdDataObject
setValue
in class TLcdDataObject
aProperty
- the property for which the value is to be setaValue
- the value to setTLcdDataType.getProperty(String)