Package com.luciad.projection
Class ALcdTransverseCylindrical
java.lang.Object
com.luciad.projection.ALcdProjection
com.luciad.projection.ALcdTransverseCylindrical
- All Implemented Interfaces:
ILcdProjection
,ILcdTransverseCylindrical
,ILcdPropertyChangeSource
,Serializable
,Cloneable
- Direct Known Subclasses:
TLcdCassini
,TLcdTransverseMercator
,TLcdTransverseMercatorSPCS
public abstract class ALcdTransverseCylindrical
extends ALcdProjection
implements ILcdTransverseCylindrical, Cloneable
A
ALcdTransverseCylindrical
is a ILcdProjection
for which a cylinder is wrapped around the globe. The cylinder touches the
poles and the axis of the cylinder is in the direction of the central
meridian. The central meridian is determined by its longitude and it
determines together with the origin latitude the position of the origin of
the ALcdTransverseCylindrical
.
- See Also:
-
Field Summary
Fields inherited from class com.luciad.projection.ALcdProjection
fPropertyChangeDispatcher
Fields inherited from interface com.luciad.projection.ILcdProjection
EPSILON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Constants based on the central meridian of the projection don't have to be recalculated every time a method is called.clone()
Makes a deep clone of thisILcdProjection
.boolean
Checks if thisILcdProjection
equals some other Object.double
Gets the longitude of the centralMeridian of thisILcdTransverseCylindrical
.Origin of the projection is theILcd2DEditablePoint
that corresponds with origin (0, 0) of the cartesian coordinate system of the projection.double
Gets the latitude of the originLat of thisILcdTransverseCylindrical
.int
hashCode()
boolean
AnILcdProjection
is continuous if there are no interruptions in the world coordinates.void
loadProperties
(String aPrefix, Properties aProperty) Load the property of anALcdTransverseCylindrical
: the central meridian of the projection.void
setCentralMeridian
(double aLongitude) Sets the centralMeridian to the meridian with longitudeaLongitude
.void
setOriginLat
(double aLatitude) Sets the originLat to the latitudeaLatitude
.void
writePropertiesSFCT
(String aPrefix, Properties aPropertySFCT) Writes the property of anALcdTransverseCylindrical
: the central meridian of the projection.Methods inherited from class com.luciad.projection.ALcdProjection
addPropertyChangeListener, boundaryLats, boundaryLons, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCT
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.projection.ILcdProjection
boundaryLats, boundaryLons, inLonLatBounds, inWorldBoundsOnEllipsoid, inWorldBoundsOnSphere, isAllInBounds, lonlatheight2worldOnEllipsoidSFCT, lonlatheight2worldOnSphereSFCT, toString, world2DEditableBoundsOnEllipsoidSFCT, world2DEditableBoundsOnSphereSFCT, world2lonlatOnEllipsoidSFCT, world2lonlatOnSphereSFCT
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
ALcdTransverseCylindrical
public ALcdTransverseCylindrical()
-
-
Method Details
-
setCentralMeridian
public void setCentralMeridian(double aLongitude) Description copied from interface:ILcdTransverseCylindrical
Sets the centralMeridian to the meridian with longitudeaLongitude
.- Specified by:
setCentralMeridian
in interfaceILcdTransverseCylindrical
- Parameters:
aLongitude
- The new centralMeridian value.- See Also:
-
setOriginLat
public void setOriginLat(double aLatitude) Description copied from interface:ILcdTransverseCylindrical
Sets the originLat to the latitudeaLatitude
.- Specified by:
setOriginLat
in interfaceILcdTransverseCylindrical
- Parameters:
aLatitude
- The new originLat value.- See Also:
-
getCentralMeridian
public double getCentralMeridian()Description copied from interface:ILcdTransverseCylindrical
Gets the longitude of the centralMeridian of thisILcdTransverseCylindrical
.- Specified by:
getCentralMeridian
in interfaceILcdTransverseCylindrical
- Returns:
- the longitude of the centralMeridian of this
ILcdTransverseCylindrical
. - See Also:
-
getOriginLat
public double getOriginLat()Description copied from interface:ILcdTransverseCylindrical
Gets the latitude of the originLat of thisILcdTransverseCylindrical
.- Specified by:
getOriginLat
in interfaceILcdTransverseCylindrical
- Returns:
- the latitude of the originLat of this
ILcdTransverseCylindrical
. - See Also:
-
getOrigin
Description copied from interface:ILcdProjection
Origin of the projection is theILcd2DEditablePoint
that corresponds with origin (0, 0) of the cartesian coordinate system of the projection.- Specified by:
getOrigin
in interfaceILcdProjection
- Returns:
- the origin of the projection.
-
isContinuous
public boolean isContinuous()Description copied from interface:ILcdProjection
AnILcdProjection
is continuous if there are no interruptions in the world coordinates. Most projections are continuous.- Specified by:
isContinuous
in interfaceILcdProjection
- Returns:
true
if the projection is continuous,false
otherwise.
-
loadProperties
Load the property of anALcdTransverseCylindrical
: the central meridian of the projection. This method will, given aPrefix, analyze the aProperties object to set the property of thisALcdTransverseCylindrical
. The value of following key is retrieved:- <aPrefix><the name of the class that extends this abstract class>.centralMeridian
- <aPrefix><the name of the class that extends this abstract class>.originLat
- Specified by:
loadProperties
in interfaceILcdProjection
- Parameters:
aPrefix
- prefix of the property names.aProperty
- Properties object containing the serialized properties.- Throws:
IllegalArgumentException
- if the projection cannot be created.
-
writePropertiesSFCT
Writes the property of anALcdTransverseCylindrical
: the central meridian of the projection. This method will, given aPrefix, store the property of thisALcdTransverseCylindrical
the aProperties object. The value of following key is stored:- <aPrefix><the name of the class that extends this abstract class>.centralMeridian
- <aPrefix><the name of the class that extends this abstract class>.originLat
- Specified by:
writePropertiesSFCT
in interfaceILcdProjection
- Parameters:
aPrefix
- prefix for the property names.aPropertySFCT
- Properties object to store the serialized properties by side effect.
-
calculateCachedValues
protected void calculateCachedValues()Constants based on the central meridian of the projection don't have to be recalculated every time a method is called. They only have to be calculated when the projection properties change. Within the methods the precalculated values then can be used in order to gain efficiency. -
hashCode
public int hashCode() -
equals
Description copied from interface:ILcdProjection
Checks if thisILcdProjection
equals some other Object.- Specified by:
equals
in interfaceILcdProjection
- Overrides:
equals
in classObject
- Parameters:
aObject
- Object to compare with.- Returns:
- true if the Object is an instance of the same
ILcdProjection
class and having the same projection properties, false otherwise.
-
clone
Description copied from interface:ILcdProjection
Makes a deep clone of thisILcdProjection
.- Specified by:
clone
in interfaceILcdProjection
- Overrides:
clone
in classALcdProjection
- Returns:
- deep clone of this
ILcdProjection
.
-