Class TLcyGeodeticReference
java.lang.Object
com.luciad.reference.ALcdGeoReference
com.luciad.reference.TLcdGeodeticReference
com.luciad.lucy.addons.modelreference.TLcyGeodeticReference
- All Implemented Interfaces:
ILcdExtendedModelReference,ILcdModelReference,ILcdGeodeticReference,ILcdGeoReference,ILcdCloneable,Serializable,Cloneable
Adds a property displayName and editable to its superclass. The editable property tells the model
reference addon if this geodetic reference can be modified or not. The display name is used to
present the geodetic reference to a user.
- See Also:
-
Field Summary
Fields inherited from interface com.luciad.reference.ILcdGeoReference
CARTESIAN, GEODETIC -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcyGeodeticReferencewith a WGS84 geodetic datum.TLcyGeodeticReference(ILcdGeodeticDatum aGeodeticDatum) Creates a newTLcyGeodeticReferencewith the given geodetic datum.TLcyGeodeticReference(ILcdGeodeticDatum aGeodeticDatum, String aDisplayName, boolean aEditable) Creates a newTLcyGeodeticReferencewith the given geodetic datum, display name and editable value.TLcyGeodeticReference(TLcyGeodeticReference aGeodeticReference) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()MakesObject.clone()public.booleanintReturns ILcdGeoReference.GEODETIC.Deprecated.Use #getName() instead.Returns theILcdGeodeticDatumof thisILcdGeoReference.getName()inthashCode()booleanReturns true if thisTLcyGeodeticReferencecan be edited, false otherwise.voidloadProperties(String aPrefix, Properties aProperties) This method will, givenaPrefixandaProperties, set its property geodeticDatum to an instance ofILcdGeodeticDatum.Creates a model point that is compatible with this model reference.voidsetDisplayName(String aDisplayName) Deprecated.Use #setName(String) instead.voidsetEditable(boolean aEditable) Sets true if thisTLcyGeodeticReferencecan be modified, false otherwise.voidsetGeodeticDatum(ILcdGeodeticDatum aGeodeticDatum) Sets the geodetic datum this reference is based on.voidtoString()Returns the name of the geodetic datum.voidwritePropertiesSFCT(String aPrefix, Properties aProperties) Stores the properties that define this model reference into the specifiedPropertiesobject as a side effect.Methods inherited from class com.luciad.reference.ALcdGeoReference
getModelReferenceMetadata, setModelReferenceMetadata
-
Constructor Details
-
TLcyGeodeticReference
public TLcyGeodeticReference()Creates a newTLcyGeodeticReferencewith a WGS84 geodetic datum.- See Also:
-
TLcyGeodeticReference
Creates a newTLcyGeodeticReferencewith the given geodetic datum.- Parameters:
aGeodeticDatum- The geodetic datum to use for this geodetic reference.- See Also:
-
TLcyGeodeticReference
public TLcyGeodeticReference(ILcdGeodeticDatum aGeodeticDatum, String aDisplayName, boolean aEditable) Creates a newTLcyGeodeticReferencewith the given geodetic datum, display name and editable value.- Parameters:
aGeodeticDatum- The geodetic datum to use for thisTLcyGeodeticReference.aDisplayName- The display name to present thisTLcyGeodeticReferenceto a user.aEditable- True if this geodetic reference can be modified, false otherwise.- See Also:
-
TLcyGeodeticReference
Copy constructor.- Parameters:
aGeodeticReference- The reference to copy.- See Also:
-
-
Method Details
-
getDisplayName
Deprecated.Use #getName() instead.Returns the display name of thisTLcyGeodeticReferenceusing the methodgetName().- Returns:
- the display name of this
TLcyGeodeticReference. - See Also:
-
setDisplayName
Deprecated.Use #setName(String) instead.Sets the display name of thisTLcyGeodeticReferenceusing the methodsetName(String).- Parameters:
aDisplayName- the display name of thisTLcyGeodeticReference.- See Also:
-
isEditable
public boolean isEditable()Returns true if thisTLcyGeodeticReferencecan be edited, false otherwise.- Returns:
- true if this
TLcyGeodeticReferencecan be edited, false otherwise. - See Also:
-
setEditable
public void setEditable(boolean aEditable) Sets true if thisTLcyGeodeticReferencecan be modified, false otherwise.- Parameters:
aEditable- True if thisTLcyGeodeticReferencecan be modified, false otherwise.
-
getGeodeticDatum
Description copied from interface:ILcdGeoReferenceReturns theILcdGeodeticDatumof thisILcdGeoReference.- Specified by:
getGeodeticDatumin interfaceILcdGeoReference- Overrides:
getGeodeticDatumin classALcdGeoReference- Returns:
- the
ILcdGeodeticDatumof thisILcdGeoReference. - See Also:
-
setGeodeticDatum
Description copied from class:ALcdGeoReferenceSets the geodetic datum this reference is based on.- Overrides:
setGeodeticDatumin classALcdGeoReference- Parameters:
aGeodeticDatum- the geodetic datum this reference is based on.- See Also:
-
getName
- Overrides:
getNamein classALcdGeoReference
-
setName
- Overrides:
setNamein classALcdGeoReference
-
getCoordinateType
public int getCoordinateType()Description copied from class:TLcdGeodeticReferenceReturns ILcdGeoReference.GEODETIC.- Specified by:
getCoordinateTypein interfaceILcdGeoReference- Overrides:
getCoordinateTypein classTLcdGeodeticReference- Returns:
- ILcdGeoReference.GEODETIC.
-
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- Overrides:
makeModelPointin classTLcdGeodeticReference- Returns:
- a point that is compatible with this model reference.
-
loadProperties
Description copied from class:TLcdGeodeticReferenceThis method will, givenaPrefixandaProperties, set its property geodeticDatum to an instance ofILcdGeodeticDatum. To be able to set the property geodeticDatum the aProperties should contain entries which will be analyzed by theTLcdGeodeticDatumFactory. The keys of those entries should begin with '<aPrefix>TLcdGeodeticReference.geodeticDatum.'.- Specified by:
loadPropertiesin interfaceILcdModelReference- Overrides:
loadPropertiesin classTLcdGeodeticReference- Parameters:
aPrefix- a common prefix for all property names that are read.aProperties- the properties to be parsed.- Throws:
IllegalArgumentException- if the model reference cannot be constructed from the properties.
-
writePropertiesSFCT
public void writePropertiesSFCT(String aPrefix, Properties aProperties) 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- Overrides:
writePropertiesSFCTin classTLcdGeodeticReference- Parameters:
aPrefix- a common prefix for all property names written.aProperties- 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.- See Also:
-
equals
- Overrides:
equalsin classTLcdGeodeticReference
-
hashCode
public int hashCode()- Overrides:
hashCodein classALcdGeoReference
-
clone
Description copied from interface:ILcdCloneableMakes
When for example extending fromObject.clone()public.java.lang.Object, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }- Specified by:
clonein interfaceILcdCloneable- Specified by:
clonein interfaceILcdGeodeticReference- Overrides:
clonein classALcdGeoReference- See Also:
-
toString
Description copied from class:TLcdGeodeticReferenceReturns the name of the geodetic datum.- Overrides:
toStringin classTLcdGeodeticReference- Returns:
- the name of the geodetic datum.
- See Also:
-