Class TLcdKML22Point
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.kml22.model.TLcdKML22AbstractObject
com.luciad.format.kml22.model.geometry.TLcdKML22AbstractGeometry
com.luciad.format.kml22.model.geometry.TLcdKML22Point
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdPoint,ILcdShape,ILcd2DEditablePoint,ILcd2DEditableShape,ILcd3DEditablePoint,ILcd3DEditableShape,ILcdCache,ILcdCloneable,ILcdDeepCloneable,Serializable,Cloneable
public class TLcdKML22Point
extends TLcdKML22AbstractGeometry
implements ILcd3DEditableShape, ILcd3DEditablePoint
Domain class modeling the KML PointType type.
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractGeometryGroup A geographic location defined by a single geodetic longitude, geodetic latitude, and (optional) altitude coordinate tuple.
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theAbstractGeometryObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractGeometrySimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to thealtitudeModeGroupelement.static final TLcdDataPropertyData property that maps to thecoordinateselement.static final TLcdDataPropertyData property that maps to theextrudeelement.static final TLcdDataPropertyData property that maps to thePointObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to thePointSimpleExtensionGroupelement.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionTLcdKML22Point(TLcdDataType aType) Creates a newTLcdKML22Pointwith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a deep clone of this object.Returns a copy of thisILcdPointthat is also anILcd2DEditablePoint.Returns a copy of thisILcdPointthat is also anILcd3DEditablePoint.booleancontains2D(double aX, double aY) Checks whether thisILcdShapecontains the given point in the 2D space.booleancontains2D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 2D space.booleancontains3D(double aX, double aY, double aZ) Checks whether thisILcdShapecontains the given point in the 3D space.booleancontains3D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Gets the altitude mode of this geometry.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.Returns the value of the property that maps to thecoordinateselement.doublegetCosX()Returns cos(getX()* DEG2RAD ).doublegetCosY()Returns cos(getY()* DEG2RAD ).Returns whether or not this shape should be extruded.Returns the focus point of thisILcdShape.doublegetSinX()Returns sin(getX()* DEG2RAD ).doublegetSinY()Returns sin(getY()* DEG2RAD ).doublegetTanX()Returns tan(getX()* DEG2RAD ).doublegetTanY()Returns tan(getY()* DEG2RAD ).doublegetX()Returns the x coordinate of thisILcdPoint.doublegetY()Returns the y coordinate of thisILcdPoint.doublegetZ()Returns the z coordinate of thisILcdPoint.booleanvoidmove2D(double aX, double aY) Moves thisILcd2DEditableShapeto the given point in the 2D space.voidMoves thisILcd2DEditableShapeto the given point in the 2D space.voidmove3D(double aX, double aY, double aZ) Moves thisILcd3DEditableShapeto the given point in the 3D space.voidMoves thisILcd3DEditableShapeto the given point in the 3D space.voidsetAltitudeMode(ELcdKML22AltitudeMode aValue) Sets the value of the property that maps to thealtitudeModeGroupelement.voidsetCoordinates(TLcdKML22Coordinates aValue) Sets the value of the property that maps to thecoordinateselement.voidsetExtrude(Boolean aValue) Sets the value of the property that maps to theextrudeelement.voidtranslate2D(double aDeltaX, double aDeltaY) Translates thisILcd2DEditableShapefrom its current position over the given translation vector in the 2D space.voidtranslate3D(double aDeltaX, double aDeltaY, double aDeltaZ) Translates thisILcd3DEditableShapefrom its current position over the given translation vector in the 3D space.Methods inherited from class com.luciad.format.kml22.model.geometry.TLcdKML22AbstractGeometry
clearCache, clone, getCachedObject, insertIntoCache, removeCachedObjectMethods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetIdMethods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
-
Field Details
-
EXTRUDE_PROPERTY
Data property that maps to theextrudeelement. The possible values for this property are instances ofBoolean. -
ALTITUDE_MODE_PROPERTY
Data property that maps to thealtitudeModeGroupelement. The possible values for this property are instances ofELcdKML22AltitudeMode. -
COORDINATES_PROPERTY
Data property that maps to thecoordinateselement. The possible values for this property are instances ofTLcdKML22Coordinates. -
POINT_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to thePointSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
POINT_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to thePointObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>. -
ABSTRACT_GEOMETRY_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractGeometrySimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
ABSTRACT_GEOMETRY_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractGeometryObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22Point
Creates a newTLcdKML22Pointwith a customTLcdDataType.- Parameters:
aType- a customTLcdDataType
-
-
Method Details
-
getExtrude
Returns whether or not this shape should be extruded. Returns false if it was undefined.- Returns:
- true if this shape should be extruded; false otherwise.
-
getAltitudeMode
Gets the altitude mode of this geometry. Returns ELcdKML22AltitudeMode.CLAMP_TO_GROUND if it was undefined. * @return true if this shape should be tessellated; false otherwise.- Returns:
- An
ELcdKML22AltitudeMode
-
isExtruded
public boolean isExtruded() -
getX
public double getX()Description copied from interface:ILcdPointReturns the x coordinate of thisILcdPoint. -
getY
public double getY()Description copied from interface:ILcdPointReturns the y coordinate of thisILcdPoint. -
getZ
public double getZ()Description copied from interface:ILcdPointReturns the z coordinate of thisILcdPoint. -
getCosX
public double getCosX()Description copied from interface:ILcdPointReturns cos(getX()* DEG2RAD ). -
getCosY
public double getCosY()Description copied from interface:ILcdPointReturns cos(getY()* DEG2RAD ). -
getSinX
public double getSinX()Description copied from interface:ILcdPointReturns sin(getX()* DEG2RAD ). -
getSinY
public double getSinY()Description copied from interface:ILcdPointReturns sin(getY()* DEG2RAD ). -
getTanX
public double getTanX()Description copied from interface:ILcdPointReturns tan(getX()* DEG2RAD ). -
getTanY
public double getTanY()Description copied from interface:ILcdPointReturns tan(getY()* DEG2RAD ). -
cloneAs2DEditablePoint
Description copied from interface:ILcdPointReturns a copy of thisILcdPointthat is also anILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable,- Specified by:
cloneAs2DEditablePointin interfaceILcdPoint- Returns:
- a copy of this
ILcdPointthat is also anILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdPointobject may be read-only. - See Also:
-
cloneAs3DEditablePoint
Description copied from interface:ILcdPointReturns a copy of thisILcdPointthat is also anILcd3DEditablePoint. This makes sure that all three dimensions of the copy are writable,- Specified by:
cloneAs3DEditablePointin interfaceILcdPoint- Returns:
- a copy of this
ILcdPointthat is also anILcd3DEditablePoint. This makes sure that all three dimensions of the copy are writable, even if the originalILcdPointobject may be read-only. - See Also:
-
move3D
Description copied from interface:ILcd3DEditableShapeMoves thisILcd3DEditableShapeto the given point in the 3D space. The focus point is used as the handle by which the shape is moved.- Specified by:
move3Din interfaceILcd3DEditableShape- Overrides:
move3Din classTLcdKML22AbstractGeometry- Parameters:
aPoint- theILcdPointto move to.- See Also:
-
move3D
public void move3D(double aX, double aY, double aZ) Description copied from interface:ILcd3DEditableShapeMoves thisILcd3DEditableShapeto the given point in the 3D space. The focus point is used as the handle by which the shape is moved.- Specified by:
move3Din interfaceILcd3DEditableShape- Overrides:
move3Din classTLcdKML22AbstractGeometry- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.
-
translate3D
public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ) Description copied from interface:ILcd3DEditableShapeTranslates thisILcd3DEditableShapefrom its current position over the given translation vector in the 3D space.- Specified by:
translate3Din interfaceILcd3DEditableShape- Overrides:
translate3Din classTLcdKML22AbstractGeometry- 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.
-
move2D
Description copied from interface:ILcd2DEditableShapeMoves thisILcd2DEditableShapeto 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 theILcdShapeand theILcdPointare considered. The third dimension is left unchanged.- Specified by:
move2Din interfaceILcd2DEditableShape- Overrides:
move2Din classTLcdKML22AbstractGeometry- Parameters:
aPoint- theILcdPointto move to.- See Also:
-
move2D
public void move2D(double aX, double aY) Description copied from interface:ILcd2DEditableShapeMoves thisILcd2DEditableShapeto 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 theILcdShapeare considered. The third dimension is left unchanged.- Specified by:
move2Din interfaceILcd2DEditableShape- Overrides:
move2Din classTLcdKML22AbstractGeometry- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.
-
translate2D
public void translate2D(double aDeltaX, double aDeltaY) Description copied from interface:ILcd2DEditableShapeTranslates thisILcd2DEditableShapefrom its current position over the given translation vector in the 2D space. Only the first two dimensions of theILcdShapeare considered. The third dimension is left unchanged.- Specified by:
translate2Din interfaceILcd2DEditableShape- Overrides:
translate2Din classTLcdKML22AbstractGeometry- Parameters:
aDeltaX- the x coordinate of the translation vector.aDeltaY- the y coordinate of the translation vector.
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Overrides:
getFocusPointin classTLcdKML22AbstractGeometry- Returns:
- the focus point of this
ILcdShape.
-
contains2D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 2D space. Only the first two dimensions of theILcdShapeand theILcdPointare considered.- Specified by:
contains2Din interfaceILcdShape- Overrides:
contains2Din classTLcdKML22AbstractGeometry- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered.- Specified by:
contains2Din interfaceILcdShape- Overrides:
contains2Din classTLcdKML22AbstractGeometry- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains3D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 3D space.- Specified by:
contains3Din interfaceILcdShape- Overrides:
contains3Din classTLcdKML22AbstractGeometry- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 3D space.- Specified by:
contains3Din interfaceILcdShape- Overrides:
contains3Din classTLcdKML22AbstractGeometry- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.- Returns:
- the boolean result of the containment test.
-
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:
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject 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
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Overrides:
getBoundsin classTLcdKML22AbstractGeometry- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
setExtrude
Sets the value of the property that maps to theextrudeelement.- Parameters:
aValue- the value to set for theEXTRUDE_PROPERTYproperty.
-
setAltitudeMode
Sets the value of the property that maps to thealtitudeModeGroupelement.- Parameters:
aValue- the value to set for theALTITUDE_MODE_PROPERTYproperty.
-
getCoordinates
Returns the value of the property that maps to thecoordinateselement.- Returns:
- the value of the
COORDINATES_PROPERTYproperty.
-
setCoordinates
Sets the value of the property that maps to thecoordinateselement.- Parameters:
aValue- the value to set for theCOORDINATES_PROPERTYproperty.
-