Package com.luciad.shape.shape2D
Class TLcdLonLatZonalPoint
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.ALcdPoint
com.luciad.shape.shape2D.ALcd2DEditablePoint
com.luciad.shape.shape2D.TLcdLonLatPoint
com.luciad.shape.shape2D.TLcdLonLatZonalPoint
- All Implemented Interfaces:
ILcdBounded
,ILcdBounds
,ILcdPoint
,ILcdPointList
,ILcdPolypoint
,ILcdShape
,ILcdZonalPoint
,ILcd2DEditablePoint
,ILcd2DEditableShape
,ILcd2DEditableZonalPoint
,ILcdCloneable
,Serializable
,Cloneable
This class provides an implementation of
ILcd2DEditableZonalPoint
in the geodetic
space.
All longitude/latitude coordinates are expressed in degrees.
This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.
- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdLonLatZonalPoint
(double aLon, double aLat, int aZone) TLcdLonLatZonalPoint
(ILcd2DEditablePoint a2DEditablePoint, int aZone) TLcdLonLatZonalPoint
(ILcd2DEditableZonalPoint a2DEditableZonalPoint) -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of thisILcdPoint
that is also anILcd2DEditablePoint
.boolean
Returns whether the given object has the same class, the same coordinates, and the same zone.final int
getZone()
Returns the zone of thisILcdZonal2DEditablePoint
.int
hashCode()
The hash code of this shape is the hash code of its class, in order to be consistent with theALcdShape.equals(Object)
method.void
setZone
(int aZone) Sets the zone of thisILcdZonal2DEditablePoint
.toString()
Methods inherited from class com.luciad.shape.shape2D.TLcdLonLatPoint
cloneAs2DEditableBounds, cloneAs3DEditableBounds, cloneAs3DEditablePoint, contains2D, contains2D, getCosX, getCosY, getLat, getLon, getSinX, getSinY, getTanX, getTanY, getX, getY, interacts2D, move2D
Methods inherited from class com.luciad.shape.shape2D.ALcd2DEditablePoint
getZ, move2D, translate2D
Methods inherited from class com.luciad.shape.ALcdPoint
contains2D, contains3D, contains3D, contains3D, getBounds, getDepth, getFocusPoint, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getPoint, getPointCount, getWidth, interacts2D, interacts3D, interacts3D, isDefined
Methods inherited from class com.luciad.shape.ALcdShape
clone, contains2D, contains3D, fromDomainObject
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2D
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.shape.ILcdBounds
getCenter
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.shape.ILcdPoint
cloneAs3DEditablePoint, getCosX, getCosY, getSinX, getSinY, getTanX, getTanY, getX, getY, getZ
Methods inherited from interface com.luciad.shape.ILcdPointList
getPointSFCT, getX, getY, getZ
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdLonLatZonalPoint
public TLcdLonLatZonalPoint(double aLon, double aLat, int aZone) -
TLcdLonLatZonalPoint
-
TLcdLonLatZonalPoint
-
-
Method Details
-
getZone
public final int getZone()Description copied from interface:ILcdZonalPoint
Returns the zone of thisILcdZonal2DEditablePoint
.- Specified by:
getZone
in interfaceILcdZonalPoint
- Returns:
- the zone of this
ILcdZonal2DEditablePoint
.
-
setZone
public void setZone(int aZone) Description copied from interface:ILcd2DEditableZonalPoint
Sets the zone of thisILcdZonal2DEditablePoint
.- Specified by:
setZone
in interfaceILcd2DEditableZonalPoint
- Parameters:
aZone
- the new zone of this point.
-
cloneAs2DEditablePoint
Description copied from interface:ILcdPoint
Returns a copy of thisILcdPoint
that is also anILcd2DEditablePoint
. This makes sure that the first two dimensions of the copy are writable,- Specified by:
cloneAs2DEditablePoint
in interfaceILcdPoint
- Overrides:
cloneAs2DEditablePoint
in classTLcdLonLatPoint
- Returns:
- a copy of this
ILcdPoint
that is also anILcd2DEditablePoint
. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdPoint
object may be read-only. - See Also:
-
equals
Returns whether the given object has the same class, the same coordinates, and the same zone.- Specified by:
equals
in interfaceILcdPoint
- Overrides:
equals
in classTLcdLonLatPoint
- Parameters:
aObject
- the object to check for equality- Returns:
- true if the object has the same class and it has the same coordinates, taking into account a 360 degree difference for longitudes.
-
hashCode
public int hashCode()Description copied from class:ALcdShape
The hash code of this shape is the hash code of its class, in order to be consistent with theALcdShape.equals(Object)
method. Extensions should refine this implementation, based on their properties. -
toString
- Overrides:
toString
in classALcd2DEditablePoint
-