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:
  • Constructor Details

    • TLcdGeocentricReference

      public TLcdGeocentricReference()
      Constructs a geocentric reference that uses the default geodetic datum.
      See Also:
    • TLcdGeocentricReference

      public TLcdGeocentricReference(ILcdGeodeticDatum aGeodeticDatum)
      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 this ILcdGeoReference: CARTESIAN or GEODETIC.
      Specified by:
      getCoordinateType in interface ILcdGeoReference
      Returns:
      the type of coordinates used with this ILcdGeoReference: CARTESIAN or GEODETIC.
    • 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 interface ILcdGeocentricReference
      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

      public ILcdPoint 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 interface ILcdModelReference
      Returns:
      a point that is compatible with this model reference.
    • loadProperties

      public void loadProperties(String aPrefix, Properties properties) throws IllegalArgumentException
      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 interface ILcdModelReference
      Parameters:
      aPrefix - a common prefix for all property names that are read
      properties - 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 specified Properties object as a side effect. Each particular implementation of this interface can define which properties it stores.
      Specified by:
      writePropertiesSFCT in interface ILcdModelReference
      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 class ALcdGeoReference
    • equals

      public boolean equals(Object aObject)
      Overrides:
      equals in class ALcdGeoReference