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
ConstructorDescriptionCreates a newTLcyGeodeticReference
with a WGS84 geodetic datum.TLcyGeodeticReference
(ILcdGeodeticDatum aGeodeticDatum) Creates a newTLcyGeodeticReference
with the given geodetic datum.TLcyGeodeticReference
(ILcdGeodeticDatum aGeodeticDatum, String aDisplayName, boolean aEditable) Creates a newTLcyGeodeticReference
with the given geodetic datum, display name and editable value.TLcyGeodeticReference
(TLcyGeodeticReference aGeodeticReference) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.boolean
int
Returns ILcdGeoReference.GEODETIC.Deprecated.Use #getName() instead.Returns theILcdGeodeticDatum
of thisILcdGeoReference
.getName()
int
hashCode()
boolean
Returns true if thisTLcyGeodeticReference
can be edited, false otherwise.void
loadProperties
(String aPrefix, Properties aProperties) This method will, givenaPrefix
andaProperties
, set its property geodeticDatum to an instance ofILcdGeodeticDatum
.Creates a model point that is compatible with this model reference.void
setDisplayName
(String aDisplayName) Deprecated.Use #setName(String) instead.void
setEditable
(boolean aEditable) Sets true if thisTLcyGeodeticReference
can be modified, false otherwise.void
setGeodeticDatum
(ILcdGeodeticDatum aGeodeticDatum) Sets the geodetic datum this reference is based on.void
toString()
Returns the name of the geodetic datum.void
writePropertiesSFCT
(String aPrefix, Properties aProperties) Stores the properties that define this model reference into the specifiedProperties
object as a side effect.Methods inherited from class com.luciad.reference.ALcdGeoReference
getModelReferenceMetadata, setModelReferenceMetadata
-
Constructor Details
-
TLcyGeodeticReference
public TLcyGeodeticReference()Creates a newTLcyGeodeticReference
with a WGS84 geodetic datum.- See Also:
-
TLcyGeodeticReference
Creates a newTLcyGeodeticReference
with 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 newTLcyGeodeticReference
with the given geodetic datum, display name and editable value.- Parameters:
aGeodeticDatum
- The geodetic datum to use for thisTLcyGeodeticReference
.aDisplayName
- The display name to present thisTLcyGeodeticReference
to 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 thisTLcyGeodeticReference
using the methodgetName()
.- Returns:
- the display name of this
TLcyGeodeticReference
. - See Also:
-
setDisplayName
Deprecated.Use #setName(String) instead.Sets the display name of thisTLcyGeodeticReference
using the methodsetName(String)
.- Parameters:
aDisplayName
- the display name of thisTLcyGeodeticReference
.- See Also:
-
isEditable
public boolean isEditable()Returns true if thisTLcyGeodeticReference
can be edited, false otherwise.- Returns:
- true if this
TLcyGeodeticReference
can be edited, false otherwise. - See Also:
-
setEditable
public void setEditable(boolean aEditable) Sets true if thisTLcyGeodeticReference
can be modified, false otherwise.- Parameters:
aEditable
- True if thisTLcyGeodeticReference
can be modified, false otherwise.
-
getGeodeticDatum
Description copied from interface:ILcdGeoReference
Returns theILcdGeodeticDatum
of thisILcdGeoReference
.- Specified by:
getGeodeticDatum
in interfaceILcdGeoReference
- Overrides:
getGeodeticDatum
in classALcdGeoReference
- Returns:
- the
ILcdGeodeticDatum
of thisILcdGeoReference
. - See Also:
-
setGeodeticDatum
Description copied from class:ALcdGeoReference
Sets the geodetic datum this reference is based on.- Overrides:
setGeodeticDatum
in classALcdGeoReference
- Parameters:
aGeodeticDatum
- the geodetic datum this reference is based on.- See Also:
-
getName
- Overrides:
getName
in classALcdGeoReference
-
setName
- Overrides:
setName
in classALcdGeoReference
-
getCoordinateType
public int getCoordinateType()Description copied from class:TLcdGeodeticReference
Returns ILcdGeoReference.GEODETIC.- Specified by:
getCoordinateType
in interfaceILcdGeoReference
- Overrides:
getCoordinateType
in classTLcdGeodeticReference
- Returns:
- ILcdGeoReference.GEODETIC.
-
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
- Overrides:
makeModelPoint
in classTLcdGeodeticReference
- Returns:
- a point that is compatible with this model reference.
-
loadProperties
Description copied from class:TLcdGeodeticReference
This method will, givenaPrefix
andaProperties
, 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:
loadProperties
in interfaceILcdModelReference
- Overrides:
loadProperties
in 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: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
- Overrides:
writePropertiesSFCT
in 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:
equals
in classTLcdGeodeticReference
-
hashCode
public int hashCode()- Overrides:
hashCode
in classALcdGeoReference
-
clone
Description copied from interface:ILcdCloneable
Makes
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:
clone
in interfaceILcdCloneable
- Specified by:
clone
in interfaceILcdGeodeticReference
- Overrides:
clone
in classALcdGeoReference
- See Also:
-
toString
Description copied from class:TLcdGeodeticReference
Returns the name of the geodetic datum.- Overrides:
toString
in classTLcdGeodeticReference
- Returns:
- the name of the geodetic datum.
- See Also:
-