Class TLcdNVG15Corridor
- All Implemented Interfaces:
ILcdDataObject
,ILcdNVGNode
,ILcdBounded
,ILcdCurve
,ILcdGeoBuffer
,ILcdPointList
,ILcdPolyline
,ILcdShape
,ILcd2DEditableGeoBuffer
,ILcd2DEditablePointList
,ILcd2DEditablePolyline
,ILcd2DEditableShape
,ILcdCache
,ILcdCloneable
,ILcdDeepCloneable
,ILcdInvalidateable
,Serializable
,Cloneable
ILcd2DEditableGeoBuffer
with an ILcd2DEditablePolyline
as an underlying shape
that represents an NVG 1.5 Corridor.- Since:
- 2015.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to thelabel
attribute.static final TLcdDataProperty
Data property that maps to theleg-type
attribute.static final TLcdDataProperty
Data property that maps to themaxaltitude
attribute.static final TLcdDataProperty
Data property that maps to theminaltitude
attribute.static final TLcdDataProperty
Data property that maps to themodifiers
attribute.static final TLcdDataProperty
Data property that maps to thepoints
attribute.static final TLcdDataProperty
Data property that maps to thestyle
attribute.static final TLcdDataProperty
Data property that maps to thesymbol
attribute.static final TLcdDataProperty
Data property that maps to theuri
attribute.static final TLcdDataProperty
Data property that maps to thewidth
attribute.Fields inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15DataObject
EXTENDED_DATA_PROPERTY, METADATA_PROPERTY
Fields inherited from interface com.luciad.shape.ILcdCurve
INTERPOLATION_CIRCLE_BY_3POINTS, INTERPOLATION_CIRCLE_BY_CENTERPOINT, INTERPOLATION_CIRCULARARC_BY_3POINTS, INTERPOLATION_CIRCULARARC_BY_BULGE, INTERPOLATION_CIRCULARARC_BY_CENTERPOINT, INTERPOLATION_ELLIPTICAL, INTERPOLATION_GEODESIC, INTERPOLATION_LINEAR, INTERPOLATION_MIXED, INTERPOLATION_RHUMB
Fields inherited from interface com.luciad.shape.ILcdGeoBuffer
CAP_BUTT, CAP_ROUND, JOIN_ROUND
-
Constructor Summary
ConstructorDescriptionTLcdNVG15Corridor
(TLcdDataType aDataType) Constructs a new instance of TLcdNVG15Corridor with the given data type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the cache.clone()
Returns a deep clone of this object.Returns a deep clone of this object.boolean
contains2D
(double x, double y) Checks whether thisILcdShape
contains the given point in the 2D space.boolean
contains2D
(ILcdPoint aPoint) Checks whether thisILcdShape
contains the givenILcdPoint
in the 2D space.boolean
contains3D
(double aX, double aY, double aZ) Checks whether thisILcdShape
contains the given point in the 3D space.boolean
contains3D
(ILcdPoint aPoint) Checks whether thisILcdShape
contains the givenILcdPoint
in the 3D space.Returns the base shape of the buffer.Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.getCachedObject
(Object aKey) Looks up and returns the cached Object corresponding to the given key.int
Returns the end cap style of this buffer, which defines the representation of the contour at the endings of the base shape.Returns the focus point of thisILcdShape
.int
Returns the join style for the contour of this buffer, which defines the representation of the contour at the joins between two line segments of the base shape.getLabel()
Returns the value of the property that maps to thelabel
attribute.Returns the value of the property that maps to theleg-type
attribute.double
Returns the value of the property that maps to themaxaltitude
attribute.double
Returns the value of the property that maps to theminaltitude
attribute.Returns the value of the property that maps to themodifiers
attribute.Returns the value of the property that maps to thepoints
attribute.getStyle()
Returns the value of the property that maps to thestyle
attribute.Returns the value of the property that maps to thesymbol
attribute.getUri()
Returns the value of the property that maps to theuri
attribute.double
getWidth()
Returns the width of this buffer, expressed in meters and measured from the line segments of the base shape to the contour.double
Returns the value of the property that maps to thewidth
attribute.void
insertIntoCache
(Object aKey, Object aObject) Inserts a cache Object corresponding to the given key Object.void
Invalidates all cached values of this object.void
Indicates that the base shape has been changed, and that the buffer should be recalculated.void
move2D
(double aX, double aY) Moves thisILcd2DEditableShape
to the given point in the 2D space.void
Moves thisILcd2DEditableShape
to the given point in the 2D space.removeCachedObject
(Object aKey) Looks up and removes the cached Object corresponding to the given key.void
setBaseShape
(ILcdShape aBaseShape) Sets the base shape of the buffer.void
setEllipsoid
(ILcdEllipsoid aEllipsoid) void
setEndCapStyle
(int aEndCapStyle) Sets the end cap style of the buffer, which must be eitherILcdGeoBuffer.CAP_BUTT
orILcdGeoBuffer.CAP_ROUND
.void
setJoinStyle
(int aJoinStyle) Sets the join style of the buffer, which must beILcdGeoBuffer.JOIN_ROUND
.void
Sets the value of the property that maps to thelabel
attribute.void
setMaximumZ
(double aValue) Sets the value of the property that maps to themaxaltitude
attribute.void
setMinimumZ
(double aValue) Sets the value of the property that maps to theminaltitude
attribute.void
setModifiers
(TLcdNVGModifiers aValue) Sets the value of the property that maps to themodifiers
attribute.void
setStyle
(TLcdNVGStyle aValue) Sets the value of the property that maps to thestyle
attribute.void
setSymbol
(TLcdNVGSymbol aValue) Sets the value of the property that maps to thesymbol
attribute.void
Sets the value of the property that maps to theuri
attribute.void
setWidth
(double aWidth) Sets the width of the buffer, expressed in meters and measured from the axis to the border.void
setWidthNVG
(double aValue) Sets the value of the property that maps to thewidth
attribute.void
translate2D
(double aX, double aY) Translates thisILcd2DEditableShape
from its current position over the given translation vector in the 2D space.Methods inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15Polyline
computePointSFCT, getEndPoint, getEndTangent2D, getInterpolation, getLength2D, getLineSegmentIntersectionCount, getPoint, getPointCount, getStartPoint, getStartTangent2D, getTangent2D, insert2DPoint, move2DPoint, removePointAt, setLegType, setPoints, setValue, translate2DPoint
Methods inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15MapObject
getAPP6CodedFromMapObject, getMS2525CodedFromMapObject, setSymbolFromAPP6, setSymbolFromMS2525
Methods inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15DataObject
getExtendedData, getMetadata, setExtendedData, setMetadata
Methods inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15Base
getParent, setParent
Methods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint
Methods inherited from interface com.luciad.shape.ILcdPointList
getPointSFCT, getX, getY, getZ
-
Field Details
-
MAXIMUM_Z_PROPERTY
Data property that maps to themaxaltitude
attribute. The possible values for this property are instances ofdouble
. -
MINIMUM_Z_PROPERTY
Data property that maps to theminaltitude
attribute. The possible values for this property are instances ofdouble
. -
WIDTH_NVG_PROPERTY
Data property that maps to thewidth
attribute. The possible values for this property are instances ofdouble
. -
LEG_TYPE_PROPERTY
Data property that maps to theleg-type
attribute. The possible values for this property are instances ofString
. -
POINTS_PROPERTY
Data property that maps to thepoints
attribute. The possible values for this property are instances ofILcd2DEditablePointList
. -
MODIFIERS_PROPERTY
Data property that maps to themodifiers
attribute. The possible values for this property are instances ofTLcdNVGModifiers
. -
SYMBOL_PROPERTY
Data property that maps to thesymbol
attribute. The possible values for this property are instances ofTLcdNVGSymbol
. -
LABEL_PROPERTY
Data property that maps to thelabel
attribute. The possible values for this property are instances ofString
. -
STYLE_PROPERTY
Data property that maps to thestyle
attribute. The possible values for this property are instances ofTLcdNVGStyle
. -
URI_PROPERTY
Data property that maps to theuri
attribute. The possible values for this property are instances ofURI
.
-
-
Constructor Details
-
TLcdNVG15Corridor
public TLcdNVG15Corridor() -
TLcdNVG15Corridor
Constructs a new instance of TLcdNVG15Corridor with the given data type.- Parameters:
aDataType
- the data type of the corridor.
-
-
Method Details
-
setBaseShape
Description copied from interface:ILcd2DEditableGeoBuffer
Sets the base shape of the buffer.- Specified by:
setBaseShape
in interfaceILcd2DEditableGeoBuffer
- Parameters:
aBaseShape
- the base shape of the buffer.
-
setJoinStyle
public void setJoinStyle(int aJoinStyle) Description copied from interface:ILcd2DEditableGeoBuffer
Sets the join style of the buffer, which must beILcdGeoBuffer.JOIN_ROUND
.- Specified by:
setJoinStyle
in interfaceILcd2DEditableGeoBuffer
- Parameters:
aJoinStyle
- the join style of the buffer.
-
setEndCapStyle
public void setEndCapStyle(int aEndCapStyle) Description copied from interface:ILcd2DEditableGeoBuffer
Sets the end cap style of the buffer, which must be eitherILcdGeoBuffer.CAP_BUTT
orILcdGeoBuffer.CAP_ROUND
.- Specified by:
setEndCapStyle
in interfaceILcd2DEditableGeoBuffer
- Parameters:
aEndCapStyle
- the end cap style of the buffer.
-
setWidth
public void setWidth(double aWidth) Description copied from interface:ILcd2DEditableGeoBuffer
Sets the width of the buffer, expressed in meters and measured from the axis to the border.- Specified by:
setWidth
in interfaceILcd2DEditableGeoBuffer
- Parameters:
aWidth
- the width of the buffer.
-
getWidth
public double getWidth()Description copied from interface:ILcdGeoBuffer
Returns the width of this buffer, expressed in meters and measured from the line segments of the base shape to the contour. The width is positive (width >= 0).- Specified by:
getWidth
in interfaceILcdGeoBuffer
- Returns:
- the width of the buffer.
-
getBaseShape
Description copied from interface:ILcdGeoBuffer
Returns the base shape of the buffer.- Specified by:
getBaseShape
in interfaceILcdGeoBuffer
- Returns:
- the base shape of the buffer.
-
invalidateObject
public void invalidateObject()Description copied from interface:ILcdInvalidateable
Invalidates all cached values of this object. Call this method whenever one or more of this object's compositing values has been changed, to notify this object it needs to recompute its cached values.- Specified by:
invalidateObject
in interfaceILcdInvalidateable
- Overrides:
invalidateObject
in classTLcdNVG15Polyline
-
setWidthNVG
public void setWidthNVG(double aValue) Sets the value of the property that maps to thewidth
attribute.Width of the corridor (distance)
- Parameters:
aValue
- the value to set for theWIDTH_NVG_PROPERTY
property.
-
getEndCapStyle
public int getEndCapStyle()Description copied from interface:ILcdGeoBuffer
Returns the end cap style of this buffer, which defines the representation of the contour at the endings of the base shape. This is one ofILcdGeoBuffer.CAP_ROUND
orILcdGeoBuffer.CAP_BUTT
.- Specified by:
getEndCapStyle
in interfaceILcdGeoBuffer
- Returns:
- the end cap style of the buffer.
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map)
.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLcdNVG15Polyline
- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject
, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()
method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneable
orILcdCloneable
then this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clone
in interfaceILcdDeepCloneable
- Overrides:
clone
in classTLcdNVG15Polyline
- Parameters:
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
getJoinStyle
public int getJoinStyle()Description copied from interface:ILcdGeoBuffer
Returns the join style for the contour of this buffer, which defines the representation of the contour at the joins between two line segments of the base shape. This is alwaysILcdGeoBuffer.JOIN_ROUND
.- Specified by:
getJoinStyle
in interfaceILcdGeoBuffer
- Returns:
- the join style of the buffer.
-
invalidateShape
public void invalidateShape()Description copied from interface:ILcd2DEditableGeoBuffer
Indicates that the base shape has been changed, and that the buffer should be recalculated.- Specified by:
invalidateShape
in interfaceILcd2DEditableGeoBuffer
-
getEllipsoid
-
setEllipsoid
-
contains2D
Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the givenILcdPoint
in the 2D space. Only the first two dimensions of theILcdShape
and theILcdPoint
are considered.- Specified by:
contains2D
in interfaceILcdShape
- Overrides:
contains2D
in classTLcdNVG15Polyline
- Parameters:
aPoint
- theILcdPoint
to test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double x, double y) Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the given point in the 2D space. Only the first two dimensions of theILcdShape
are considered.- Specified by:
contains2D
in interfaceILcdShape
- Overrides:
contains2D
in classTLcdNVG15Polyline
- Parameters:
x
- the x coordinate of the point.y
- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
getFocusPoint
Description copied from interface:ILcdShape
Returns the focus point of thisILcdShape
.- Specified by:
getFocusPoint
in interfaceILcdShape
- Overrides:
getFocusPoint
in classTLcdNVG15Polyline
- Returns:
- the focus point of this
ILcdShape
.
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefined
bounds. You can create undefined bounds using the default constructors ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Overrides:
getBounds
in classTLcdNVG15Polyline
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-
insertIntoCache
Description copied from interface:ILcdCache
Inserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCache
in interfaceILcdCache
- Overrides:
insertIntoCache
in classTLcdNVG15Polyline
- Parameters:
aKey
- the key Object that will be used to identify the Object. The key must therefore be a unique identifier, typically the caller itself:insertIntoCache(this, ...)
.aObject
- the Object to be cached.
-
getCachedObject
Description copied from interface:ILcdCache
Looks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObject
in interfaceILcdCache
- Overrides:
getCachedObject
in classTLcdNVG15Polyline
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there is no Object corresponding to the given key.
-
removeCachedObject
Description copied from interface:ILcdCache
Looks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObject
in interfaceILcdCache
- Overrides:
removeCachedObject
in classTLcdNVG15Polyline
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there was no Object corresponding to the given key.
-
clearCache
public void clearCache()Description copied from interface:ILcdCache
Clears the cache.- Specified by:
clearCache
in interfaceILcdCache
- Overrides:
clearCache
in classTLcdNVG15Polyline
-
move2D
Description copied from interface:ILcd2DEditableShape
Moves thisILcd2DEditableShape
to the given point in the 2D space. The focus point is used as the handle by which the shape is moved. Only the first two dimensions of theILcdShape
and theILcdPoint
are considered. The third dimension is left unchanged.- Specified by:
move2D
in interfaceILcd2DEditableShape
- Overrides:
move2D
in classTLcdNVG15Polyline
- Parameters:
aPoint
- theILcdPoint
to move to.- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ) Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the given point in the 3D space.- Specified by:
contains3D
in interfaceILcdShape
- Overrides:
contains3D
in classTLcdNVG15Polyline
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains3D
Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the givenILcdPoint
in the 3D space.- Specified by:
contains3D
in interfaceILcdShape
- Overrides:
contains3D
in classTLcdNVG15Polyline
- Parameters:
aPoint
- theILcdPoint
to test.- Returns:
- the boolean result of the containment test.
- See Also:
-
move2D
public void move2D(double aX, double aY) Description copied from interface:ILcd2DEditableShape
Moves thisILcd2DEditableShape
to the given point in the 2D space. The focus point is used as the handle by which the shape is moved. Only the first two dimensions of theILcdShape
are considered. The third dimension is left unchanged.- Specified by:
move2D
in interfaceILcd2DEditableShape
- Overrides:
move2D
in classTLcdNVG15Polyline
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.
-
translate2D
public void translate2D(double aX, double aY) Description copied from interface:ILcd2DEditableShape
Translates thisILcd2DEditableShape
from its current position over the given translation vector in the 2D space. Only the first two dimensions of theILcdShape
are considered. The third dimension is left unchanged.- Specified by:
translate2D
in interfaceILcd2DEditablePointList
- Specified by:
translate2D
in interfaceILcd2DEditableShape
- Overrides:
translate2D
in classTLcdNVG15Polyline
- Parameters:
aX
- the x coordinate of the translation vector.aY
- the y coordinate of the translation vector.
-
getMaximumZ
public double getMaximumZ()Returns the value of the property that maps to themaxaltitude
attribute.- Returns:
- the value of the
MAXIMUM_Z_PROPERTY
property.
-
setMaximumZ
public void setMaximumZ(double aValue) Sets the value of the property that maps to themaxaltitude
attribute.- Parameters:
aValue
- the value to set for theMAXIMUM_Z_PROPERTY
property.
-
getMinimumZ
public double getMinimumZ()Returns the value of the property that maps to theminaltitude
attribute.- Returns:
- the value of the
MINIMUM_Z_PROPERTY
property.
-
setMinimumZ
public void setMinimumZ(double aValue) Sets the value of the property that maps to theminaltitude
attribute.- Parameters:
aValue
- the value to set for theMINIMUM_Z_PROPERTY
property.
-
getWidthNVG
public double getWidthNVG()Returns the value of the property that maps to thewidth
attribute.Width of the corridor (distance)
- Returns:
- the value of the
WIDTH_NVG_PROPERTY
property.
-
getLegType
Returns the value of the property that maps to theleg-type
attribute.- Returns:
- the value of the
LEG_TYPE_PROPERTY
property.
-
getPoints
Returns the value of the property that maps to thepoints
attribute.Point list in decimal degrees, coordinate pairs, separated by spaces: lon1,lat1 lon2,lat2 ... lonn,latn
- Returns:
- the value of the
POINTS_PROPERTY
property.
-
getModifiers
Returns the value of the property that maps to themodifiers
attribute.Modifiers to the specified symbology, possibly including rendering hints.
- Returns:
- the value of the
MODIFIERS_PROPERTY
property.
-
setModifiers
Sets the value of the property that maps to themodifiers
attribute.Modifiers to the specified symbology, possibly including rendering hints.
- Parameters:
aValue
- the value to set for theMODIFIERS_PROPERTY
property.
-
getSymbol
Returns the value of the property that maps to thesymbol
attribute.The symbol attribute is used to associate symbology with a given shape. Its format is the name of a standard followed by a colon and the text representation of the element in that standard. That standard can be used to derive the graphical representation of the element.
- Returns:
- the value of the
SYMBOL_PROPERTY
property.
-
setSymbol
Sets the value of the property that maps to thesymbol
attribute.The symbol attribute is used to associate symbology with a given shape. Its format is the name of a standard followed by a colon and the text representation of the element in that standard. That standard can be used to derive the graphical representation of the element.
- Parameters:
aValue
- the value to set for theSYMBOL_PROPERTY
property.
-
getLabel
Returns the value of the property that maps to thelabel
attribute.A textual representation of this element.
- Returns:
- the value of the
LABEL_PROPERTY
property.
-
setLabel
Sets the value of the property that maps to thelabel
attribute.A textual representation of this element.
- Parameters:
aValue
- the value to set for theLABEL_PROPERTY
property.
-
getStyle
Returns the value of the property that maps to thestyle
attribute.CSS based style description which indicates how this element should be rendered graphically.
- Returns:
- the value of the
STYLE_PROPERTY
property.
-
setStyle
Sets the value of the property that maps to thestyle
attribute.CSS based style description which indicates how this element should be rendered graphically.
- Parameters:
aValue
- the value to set for theSTYLE_PROPERTY
property.
-
getUri
Returns the value of the property that maps to theuri
attribute.URI schema that uniquely identifies the object. See the URI Scheme for more details.
- Returns:
- the value of the
URI_PROPERTY
property.
-
setUri
Sets the value of the property that maps to theuri
attribute.URI schema that uniquely identifies the object. See the URI Scheme for more details.
- Parameters:
aValue
- the value to set for theURI_PROPERTY
property.
-