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
ConstructorsConstructorDescriptionConstructs a geocentric reference that uses the default geodetic datum.TLcdGeocentricReference(ILcdGeodeticDatum aGeodeticDatum) Constructs a geocentric reference that uses a specified. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the type of coordinates used with thisILcdGeoReference:CARTESIANorGEODETIC.doubleReturns the unit of measure of this geocentric reference with respect to meters.inthashCode()voidloadProperties(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.voidsetUnitOfMeasure(double aUnitOfMeasure) Sets the unit of measure for this geocentric reference.voidwritePropertiesSFCT(String aPrefix, Properties properties) Stores the properties that define this model reference into the specifiedPropertiesobject as a side effect.Methods inherited from class com.luciad.reference.ALcdGeoReference
clone, getGeodeticDatum, getModelReferenceMetadata, getName, setGeodeticDatum, setModelReferenceMetadata, setNameMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods 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:ILcdGeoReferenceReturns the type of coordinates used with thisILcdGeoReference:CARTESIANorGEODETIC.- Specified by:
getCoordinateTypein interfaceILcdGeoReference- Returns:
- the type of coordinates used with this
ILcdGeoReference:CARTESIANorGEODETIC.
-
getUnitOfMeasure
public double getUnitOfMeasure()Description copied from interface:ILcdGeocentricReferenceReturns 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:
getUnitOfMeasurein 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:ILcdModelReferenceCreates 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:
makeModelPointin 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:
loadPropertiesin 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:ILcdModelReferenceStores the properties that define this model reference into the specifiedPropertiesobject as a side effect. Each particular implementation of this interface can define which properties it stores.- Specified by:
writePropertiesSFCTin 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:
hashCodein classALcdGeoReference
-
equals
- Overrides:
equalsin classALcdGeoReference
-