public abstract class ALcdConic extends ALcdProjection implements ILcdConic, Cloneable
ALcdConic
is a ILcdProjection
that is derived
by projection of geodetic points on a cone which is then unrolled.
The cone can be placed on top of the earth globe with the apex or tip along
the axis of the earth globe and the sides of the cone tangent to the globe
along a specified standard latitude aLatitude
which is
true
to scale.
The cone doesn't have to be tangent to the globe but can also be secant at two specified standard parallels.
A ALcdConic
has a firstParallel and a secondParallel, both
determined by a latitude. The latitude of the firstParallel must be less than
or equal to the latitude of the secondParallel. Its origin is determined by a
longitude and a latitude.
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
ALcdConic() |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateCachedValues()
Constants based on the point of origin of the projection and the two
standard parallels don't have to be recalculated every time a method is
called.
|
Object |
clone()
Makes a deep clone of this
ILcdProjection . |
boolean |
equals(Object aObject)
Checks if this
ILcdProjection equals some other Object. |
double |
getFirstParallel()
Gets the latitude of the firstParallel of this
ILcdConic . |
ILcdPoint |
getOrigin()
Origin of the projection is the
ILcd2DEditablePoint that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection. |
double |
getOriginLat()
Gets the latitude of the origin of this
ILcdConic . |
double |
getOriginLon()
Gets the longitude of the origin of this
ILcdConic . |
double |
getSecondParallel()
Gets the latitude of the secondParallel of this
ILcdConic . |
int |
hashCode() |
boolean |
isContinuous()
An
ILcdProjection is continuous if there are no interruptions
in the world coordinates. |
void |
loadProperties(String aPrefix,
Properties aProperty)
Loads the 4 properties of an
ALcdConic : the longitude and
latitude of the point of origin of the projection and the first and second
standard parallels. |
void |
setFirstParallel(double aLat)
Sets the firstParallel of this
ILcdConic to the parallel with
latitude aLatitude . |
void |
setOriginLat(double aLatitude)
Sets the latitude of the origin of this
ILcdConic to aLatitude . |
void |
setOriginLon(double aLongitude)
Sets the longitude of the origin of this
ILcdConic to aLongitude . |
void |
setSecondParallel(double aLat)
Sets the secondParallel of this
ILcdConic to the parallel with
latitude aLatitude . |
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertySFCT)
Writes the 4 properties of an
ALcdConic : the longitude and
latitude of the point of origin of the projection and the first and second
standard parallels. |
addPropertyChangeListener, boundaryLats, boundaryLons, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCT
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
boundaryLats, boundaryLons, inLonLatBounds, inWorldBoundsOnEllipsoid, inWorldBoundsOnSphere, isAllInBounds, lonlatheight2worldOnEllipsoidSFCT, lonlatheight2worldOnSphereSFCT, toString, world2DEditableBoundsOnEllipsoidSFCT, world2DEditableBoundsOnSphereSFCT, world2lonlatOnEllipsoidSFCT, world2lonlatOnSphereSFCT
addPropertyChangeListener, removePropertyChangeListener
public void setOriginLat(double aLatitude)
ILcdConic
ILcdConic
to aLatitude
.setOriginLat
in interface ILcdConic
aLatitude
- The new originLat value.ILcdConic.getOriginLat()
public void setOriginLon(double aLongitude)
ILcdConic
ILcdConic
to aLongitude
.setOriginLon
in interface ILcdConic
aLongitude
- The new originLon value.ILcdConic.getOriginLon()
public void setFirstParallel(double aLat)
ILcdConic
ILcdConic
to the parallel with
latitude aLatitude
.setFirstParallel
in interface ILcdConic
aLat
- The new firstParallel value.ILcdConic.getFirstParallel()
public void setSecondParallel(double aLat)
ILcdConic
ILcdConic
to the parallel with
latitude aLatitude
.setSecondParallel
in interface ILcdConic
aLat
- The new secondParallel value.ILcdConic.getSecondParallel()
public ILcdPoint getOrigin()
ILcdProjection
ILcd2DEditablePoint
that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection.getOrigin
in interface ILcdProjection
public double getOriginLat()
ILcdConic
ILcdConic
.getOriginLat
in interface ILcdConic
ILcdConic
.ILcdConic.setOriginLat(double)
public double getOriginLon()
ILcdConic
ILcdConic
.getOriginLon
in interface ILcdConic
ILcdConic
.ILcdConic.setOriginLon(double)
public double getFirstParallel()
ILcdConic
ILcdConic
.getFirstParallel
in interface ILcdConic
ILcdConic
.ILcdConic.setFirstParallel(double)
public double getSecondParallel()
ILcdConic
ILcdConic
.getSecondParallel
in interface ILcdConic
ILcdConic
.ILcdConic.setSecondParallel(double)
public boolean isContinuous()
ILcdProjection
ILcdProjection
is continuous if there are no interruptions
in the world coordinates. Most projections are continuous.isContinuous
in interface ILcdProjection
true
if the projection is continuous,
false
otherwise.public void loadProperties(String aPrefix, Properties aProperty) throws IllegalArgumentException
ALcdConic
: the longitude and
latitude of the point of origin of the projection and the first and second
standard parallels. This method will, given aPrefix, analyze the
aProperties object to set the properties of this ALcdConic
.
The values of following keys are retrieved:
loadProperties
in interface ILcdProjection
aPrefix
- prefix of the property names.aProperty
- Properties object containing the serialized properties.IllegalArgumentException
- if the projection cannot be created.public void writePropertiesSFCT(String aPrefix, Properties aPropertySFCT)
ALcdConic
: the longitude and
latitude of the point of origin of the projection and the first and second
standard parallels. This method will, given aPrefix, put the properties of
this ALcdConic
into the aPropertiesSFCT object. The values of
following keys are stored:
writePropertiesSFCT
in interface ILcdProjection
aPrefix
- prefix for the property names.aPropertySFCT
- Properties object to store the serialized properties by side effect.protected void calculateCachedValues()
public boolean equals(Object aObject)
ILcdProjection
ILcdProjection
equals some other Object.equals
in interface ILcdProjection
equals
in class Object
aObject
- Object to compare with.ILcdProjection
class and having the same
projection properties, false otherwise.public Object clone()
ILcdProjection
ILcdProjection
.clone
in interface ILcdProjection
clone
in class ALcdProjection
ILcdProjection
.