Package com.luciad.reference
Class TLcdGeocentricReference
java.lang.Object
com.luciad.reference.ALcdGeoReference
com.luciad.reference.TLcdGeocentricReference
- All Implemented Interfaces:
ILcdExtendedModelReference
,ILcdModelReference
,ILcdGeocentricReference
,ILcdGeoReference
,ILcdCloneable
,ILcdXYZWorldReference
,Serializable
,Cloneable
public class TLcdGeocentricReference
extends ALcdGeoReference
implements ILcdGeocentricReference, ILcdXYZWorldReference
The default implementation of
ILcdGeocentricReference
.
This implementation is "Earth Centered, Earth Fixed", also known as ECEF: the axes are attached to the solid
body of the Earth.- See Also:
-
Field Summary
Fields inherited from interface com.luciad.reference.ILcdGeoReference
CARTESIAN, GEODETIC
-
Constructor Summary
ConstructorDescriptionConstructs a geocentric reference that uses the default geodetic datum.TLcdGeocentricReference
(ILcdGeodeticDatum aGeodeticDatum) Constructs a geocentric reference that uses a specified. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns the type of coordinates used with thisILcdGeoReference
:CARTESIAN
orGEODETIC
.double
Returns the unit of measure of this geocentric reference with respect to meters.int
hashCode()
void
loadProperties
(String aPrefix, Properties properties) This method will, given aPrefix and aProperties, set its property geodeticDatum to an instance of ILcdGeodeticDatum.Creates a model point that is compatible with this model reference.void
setUnitOfMeasure
(double aUnitOfMeasure) Sets the unit of measure for this geocentric reference.void
writePropertiesSFCT
(String aPrefix, Properties properties) Stores the properties that define this model reference into the specifiedProperties
object as a side effect.Methods inherited from class com.luciad.reference.ALcdGeoReference
clone, getGeodeticDatum, getModelReferenceMetadata, getName, setGeodeticDatum, setModelReferenceMetadata, setName
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.reference.ILcdGeoReference
getGeodeticDatum
-
Constructor Details
-
TLcdGeocentricReference
public TLcdGeocentricReference()Constructs a geocentric reference that uses the default geodetic datum.- See Also:
-
TLcdGeocentricReference
Constructs a geocentric reference that uses a specified.- Parameters:
aGeodeticDatum
- the geodetic datum for this geocentric reference
-
-
Method Details
-
getCoordinateType
public int getCoordinateType()Description copied from interface:ILcdGeoReference
Returns the type of coordinates used with thisILcdGeoReference
:CARTESIAN
orGEODETIC
.- Specified by:
getCoordinateType
in interfaceILcdGeoReference
- Returns:
- the type of coordinates used with this
ILcdGeoReference
:CARTESIAN
orGEODETIC
.
-
getUnitOfMeasure
public double getUnitOfMeasure()Description copied from interface:ILcdGeocentricReference
Returns the unit of measure of this geocentric reference with respect to meters. This means the if the unit of measure of this geocentric reference is 0.001 for instance, the unit of the values defined in this reference is millimeters.- Specified by:
getUnitOfMeasure
in interfaceILcdGeocentricReference
- Returns:
- the unit of measure of this geocentric reference
-
setUnitOfMeasure
public void setUnitOfMeasure(double aUnitOfMeasure) Sets the unit of measure for this geocentric reference.- Parameters:
aUnitOfMeasure
- the new unit of measure for this geocentric reference- Throws:
IllegalArgumentException
- if the unit of measure is less than or equal to 0- See Also:
-
makeModelPoint
Description copied from interface:ILcdModelReference
Creates a model point that is compatible with this model reference. It is unspecified how (which coordinates) the point is initialized. Users should initialize the point correctly before inserting it into a model.- Specified by:
makeModelPoint
in interfaceILcdModelReference
- Returns:
- a point that is compatible with this model reference.
-
loadProperties
This method will, given aPrefix and aProperties, set its property geodeticDatum to an instance of ILcdGeodeticDatum. To be able to set the property geodeticDatum the aProperties should contain entries which will be analyzed by the TLcdGeodeticDatumFactory. The keys of those entries should begin with '<aPrefix>TLcdGeodeticReference.geodeticDatum.'.- Specified by:
loadProperties
in interfaceILcdModelReference
- Parameters:
aPrefix
- a common prefix for all property names that are readproperties
- the given set of properties to be parsed- Throws:
IllegalArgumentException
- if the model reference cannot be constructed from the properties
-
writePropertiesSFCT
public void writePropertiesSFCT(String aPrefix, Properties properties) throws IllegalArgumentException Description copied from interface:ILcdModelReference
Stores the properties that define this model reference into the specifiedProperties
object as a side effect. Each particular implementation of this interface can define which properties it stores.- Specified by:
writePropertiesSFCT
in interfaceILcdModelReference
- Parameters:
aPrefix
- a common prefix for all property names written.properties
- the properties that will contain the serialized properties for this model reference, as a side effect.- Throws:
IllegalArgumentException
- if the model reference cannot be serialized into properties.
-
hashCode
public int hashCode()- Overrides:
hashCode
in classALcdGeoReference
-
equals
- Overrides:
equals
in classALcdGeoReference
-