public class TLcdNVG15Corridor extends TLcdNVG15Polyline implements ILcd2DEditableGeoBuffer, ILcdInvalidateable
ILcd2DEditableGeoBuffer
with an ILcd2DEditablePolyline
as an underlying shape
that represents an NVG 1.5 Corridor.Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
LABEL_PROPERTY
Data property that maps to the
label attribute. |
static TLcdDataProperty |
LEG_TYPE_PROPERTY
Data property that maps to the
leg-type attribute. |
static TLcdDataProperty |
MAXIMUM_Z_PROPERTY
Data property that maps to the
maxaltitude attribute. |
static TLcdDataProperty |
MINIMUM_Z_PROPERTY
Data property that maps to the
minaltitude attribute. |
static TLcdDataProperty |
MODIFIERS_PROPERTY
Data property that maps to the
modifiers attribute. |
static TLcdDataProperty |
POINTS_PROPERTY
Data property that maps to the
points attribute. |
static TLcdDataProperty |
STYLE_PROPERTY
Data property that maps to the
style attribute. |
static TLcdDataProperty |
SYMBOL_PROPERTY
Data property that maps to the
symbol attribute. |
static TLcdDataProperty |
URI_PROPERTY
Data property that maps to the
uri attribute. |
static TLcdDataProperty |
WIDTH_NVG_PROPERTY
Data property that maps to the
width attribute. |
EXTENDED_DATA_PROPERTY, METADATA_PROPERTY
CAP_BUTT, CAP_ROUND, JOIN_ROUND
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
Constructor and Description |
---|
TLcdNVG15Corridor() |
TLcdNVG15Corridor(TLcdDataType aDataType)
Constructs a new instance of TLcdNVG15Corridor with the given data type.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache.
|
TLcdNVG15Corridor |
clone()
Returns a deep clone of this object.
|
TLcdNVG15Corridor |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
boolean |
contains2D(double x,
double y)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double aX,
double aY,
double aZ)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
ILcd2DEditablePolyline |
getBaseShape()
Returns the base shape of the buffer.
|
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
Object |
getCachedObject(Object aKey)
Looks up and returns the cached Object corresponding to the given key.
|
ILcdEllipsoid |
getEllipsoid() |
int |
getEndCapStyle()
Returns the end cap style of this buffer, which defines
the representation of the contour at the endings of the base shape.
|
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
int |
getJoinStyle()
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.
|
String |
getLabel()
Returns the value of the property that maps to the
label attribute. |
String |
getLegType()
Returns the value of the property that maps to the
leg-type attribute. |
double |
getMaximumZ()
Returns the value of the property that maps to the
maxaltitude attribute. |
double |
getMinimumZ()
Returns the value of the property that maps to the
minaltitude attribute. |
TLcdNVGModifiers |
getModifiers()
Returns the value of the property that maps to the
modifiers attribute. |
ILcd2DEditablePointList |
getPoints()
Returns the value of the property that maps to the
points attribute. |
TLcdNVGStyle |
getStyle()
Returns the value of the property that maps to the
style attribute. |
TLcdNVGSymbol |
getSymbol()
Returns the value of the property that maps to the
symbol attribute. |
URI |
getUri()
Returns the value of the property that maps to the
uri 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 |
getWidthNVG()
Returns the value of the property that maps to the
width attribute. |
void |
insertIntoCache(Object aKey,
Object aObject)
Inserts a cache Object corresponding to the given key Object.
|
void |
invalidateObject()
Invalidates all cached values of this object.
|
void |
invalidateShape()
Indicates that the base shape has been changed,
and that the buffer should be recalculated.
|
void |
move2D(double aX,
double aY)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
void |
move2D(ILcdPoint aPoint)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
Object |
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 either
ILcdGeoBuffer.CAP_BUTT or
ILcdGeoBuffer.CAP_ROUND . |
void |
setJoinStyle(int aJoinStyle)
Sets the join style of the buffer,
which must be
ILcdGeoBuffer.JOIN_ROUND . |
void |
setLabel(String aValue)
Sets the value of the property that maps to the
label attribute. |
void |
setMaximumZ(double aValue)
Sets the value of the property that maps to the
maxaltitude attribute. |
void |
setMinimumZ(double aValue)
Sets the value of the property that maps to the
minaltitude attribute. |
void |
setModifiers(TLcdNVGModifiers aValue)
Sets the value of the property that maps to the
modifiers attribute. |
void |
setStyle(TLcdNVGStyle aValue)
Sets the value of the property that maps to the
style attribute. |
void |
setSymbol(TLcdNVGSymbol aValue)
Sets the value of the property that maps to the
symbol attribute. |
void |
setUri(URI aValue)
Sets the value of the property that maps to the
uri 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 the
width attribute. |
void |
translate2D(double aX,
double aY)
Translates this
ILcd2DEditableShape from its current position over the given translation
vector in the 2D space. |
computePointSFCT, getEndPoint, getEndTangent2D, getInterpolation, getLength2D, getLineSegmentIntersectionCount, getPoint, getPointCount, getStartPoint, getStartTangent2D, getTangent2D, insert2DPoint, move2DPoint, removePointAt, setLegType, setPoints, setValue, translate2DPoint
getAPP6CodedFromMapObject, getMS2525CodedFromMapObject, setSymbolFromAPP6, setSymbolFromMS2525
getExtendedData, getMetadata, setExtendedData, setMetadata
getParent, setParent
getDataType, getValue, getValue, hasValue, hasValue, setValue, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append2DPoint
getPointSFCT, getX, getY, getZ
public static final TLcdDataProperty MAXIMUM_Z_PROPERTY
maxaltitude
attribute.
The possible values for this property are instances of double
.public static final TLcdDataProperty MINIMUM_Z_PROPERTY
minaltitude
attribute.
The possible values for this property are instances of double
.public static final TLcdDataProperty WIDTH_NVG_PROPERTY
width
attribute.
The possible values for this property are instances of double
.public static final TLcdDataProperty LEG_TYPE_PROPERTY
leg-type
attribute.
The possible values for this property are instances of String
.public static final TLcdDataProperty POINTS_PROPERTY
points
attribute.
The possible values for this property are instances of ILcd2DEditablePointList
.public static final TLcdDataProperty MODIFIERS_PROPERTY
modifiers
attribute.
The possible values for this property are instances of TLcdNVGModifiers
.public static final TLcdDataProperty SYMBOL_PROPERTY
symbol
attribute.
The possible values for this property are instances of TLcdNVGSymbol
.public static final TLcdDataProperty LABEL_PROPERTY
label
attribute.
The possible values for this property are instances of String
.public static final TLcdDataProperty STYLE_PROPERTY
style
attribute.
The possible values for this property are instances of TLcdNVGStyle
.public static final TLcdDataProperty URI_PROPERTY
uri
attribute.
The possible values for this property are instances of URI
.public TLcdNVG15Corridor()
public TLcdNVG15Corridor(TLcdDataType aDataType)
aDataType
- the data type of the corridor.public void setBaseShape(ILcdShape aBaseShape)
ILcd2DEditableGeoBuffer
setBaseShape
in interface ILcd2DEditableGeoBuffer
aBaseShape
- the base shape of the buffer.public void setJoinStyle(int aJoinStyle)
ILcd2DEditableGeoBuffer
ILcdGeoBuffer.JOIN_ROUND
.setJoinStyle
in interface ILcd2DEditableGeoBuffer
aJoinStyle
- the join style of the buffer.public void setEndCapStyle(int aEndCapStyle)
ILcd2DEditableGeoBuffer
ILcdGeoBuffer.CAP_BUTT
or
ILcdGeoBuffer.CAP_ROUND
.setEndCapStyle
in interface ILcd2DEditableGeoBuffer
aEndCapStyle
- the end cap style of the buffer.public void setWidth(double aWidth)
ILcd2DEditableGeoBuffer
setWidth
in interface ILcd2DEditableGeoBuffer
aWidth
- the width of the buffer.public double getWidth()
ILcdGeoBuffer
getWidth
in interface ILcdGeoBuffer
public ILcd2DEditablePolyline getBaseShape()
ILcdGeoBuffer
getBaseShape
in interface ILcdGeoBuffer
public void invalidateObject()
ILcdInvalidateable
invalidateObject
in interface ILcdInvalidateable
invalidateObject
in class TLcdNVG15Polyline
public void setWidthNVG(double aValue)
width
attribute.
Width of the corridor (distance)
aValue
- the value to set for the WIDTH_NVG_PROPERTY
property.public int getEndCapStyle()
ILcdGeoBuffer
ILcdGeoBuffer.CAP_ROUND
or ILcdGeoBuffer.CAP_BUTT
.getEndCapStyle
in interface ILcdGeoBuffer
public TLcdNVG15Corridor clone()
TLcdDataObject
TLcdDataObject.clone(Map)
.clone
in interface ILcdCloneable
clone
in class TLcdNVG15Polyline
Object.clone()
public TLcdNVG15Corridor clone(Map aObjectDictionary)
TLcdDataObject
ILcdDataObject
, the value is cloned by first creating a new instance via
the value.getDataType().newInstance()
method, and then cloning its properties one by one.ILcdDeepCloneable
or
ILcdCloneable
then this interface is used to clone the value.clone
in interface ILcdDeepCloneable
clone
in class TLcdNVG15Polyline
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.public int getJoinStyle()
ILcdGeoBuffer
ILcdGeoBuffer.JOIN_ROUND
.getJoinStyle
in interface ILcdGeoBuffer
public void invalidateShape()
ILcd2DEditableGeoBuffer
invalidateShape
in interface ILcd2DEditableGeoBuffer
public ILcdEllipsoid getEllipsoid()
public void setEllipsoid(ILcdEllipsoid aEllipsoid)
public boolean contains2D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
contains2D
in class TLcdNVG15Polyline
aPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains2D(double x, double y)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
contains2D
in class TLcdNVG15Polyline
x
- the x coordinate of the point.y
- the y coordinate of the point.public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
getFocusPoint
in class TLcdNVG15Polyline
ILcdShape
.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
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
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
getBounds
in class TLcdNVG15Polyline
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public void insertIntoCache(Object aKey, Object aObject)
ILcdCache
insertIntoCache
in interface ILcdCache
insertIntoCache
in class TLcdNVG15Polyline
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.public Object getCachedObject(Object aKey)
ILcdCache
getCachedObject
in interface ILcdCache
getCachedObject
in class TLcdNVG15Polyline
aKey
- the key Object that was used for storing the cache Object.public Object removeCachedObject(Object aKey)
ILcdCache
removeCachedObject
in interface ILcdCache
removeCachedObject
in class TLcdNVG15Polyline
aKey
- the key Object that was used for storing the cache Object.public void clearCache()
ILcdCache
clearCache
in interface ILcdCache
clearCache
in class TLcdNVG15Polyline
public void move2D(ILcdPoint aPoint)
ILcd2DEditableShape
ILcd2DEditableShape
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 the ILcdShape
and the ILcdPoint
are considered.
The third dimension is left unchanged.move2D
in interface ILcd2DEditableShape
move2D
in class TLcdNVG15Polyline
aPoint
- the ILcdPoint
to move to.ILcd2DEditableShape.move2D(double, double)
public boolean contains3D(double aX, double aY, double aZ)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
contains3D
in class TLcdNVG15Polyline
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.public boolean contains3D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
contains3D
in class TLcdNVG15Polyline
aPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public void move2D(double aX, double aY)
ILcd2DEditableShape
ILcd2DEditableShape
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 the ILcdShape
are considered.
The third dimension is left unchanged.move2D
in interface ILcd2DEditableShape
move2D
in class TLcdNVG15Polyline
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public void translate2D(double aX, double aY)
ILcd2DEditableShape
ILcd2DEditableShape
from its current position over the given translation
vector in the 2D space. Only the first two dimensions of the ILcdShape
are considered.
The third dimension is left unchanged.translate2D
in interface ILcd2DEditablePointList
translate2D
in interface ILcd2DEditableShape
translate2D
in class TLcdNVG15Polyline
aX
- the x coordinate of the translation vector.aY
- the y coordinate of the translation vector.public double getMaximumZ()
maxaltitude
attribute.MAXIMUM_Z_PROPERTY
property.public void setMaximumZ(double aValue)
maxaltitude
attribute.aValue
- the value to set for the MAXIMUM_Z_PROPERTY
property.public double getMinimumZ()
minaltitude
attribute.MINIMUM_Z_PROPERTY
property.public void setMinimumZ(double aValue)
minaltitude
attribute.aValue
- the value to set for the MINIMUM_Z_PROPERTY
property.public double getWidthNVG()
width
attribute.
Width of the corridor (distance)
WIDTH_NVG_PROPERTY
property.public String getLegType()
leg-type
attribute.LEG_TYPE_PROPERTY
property.public ILcd2DEditablePointList getPoints()
points
attribute.
Point list in decimal degrees, coordinate pairs, separated by spaces: lon1,lat1 lon2,lat2 ... lonn,latn
POINTS_PROPERTY
property.public TLcdNVGModifiers getModifiers()
modifiers
attribute.
Modifiers to the specified symbology, possibly including rendering hints.
MODIFIERS_PROPERTY
property.public void setModifiers(TLcdNVGModifiers aValue)
modifiers
attribute.
Modifiers to the specified symbology, possibly including rendering hints.
aValue
- the value to set for the MODIFIERS_PROPERTY
property.public TLcdNVGSymbol getSymbol()
symbol
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.
SYMBOL_PROPERTY
property.public void setSymbol(TLcdNVGSymbol aValue)
symbol
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.
aValue
- the value to set for the SYMBOL_PROPERTY
property.public String getLabel()
label
attribute.
A textual representation of this element.
LABEL_PROPERTY
property.public void setLabel(String aValue)
label
attribute.
A textual representation of this element.
aValue
- the value to set for the LABEL_PROPERTY
property.public TLcdNVGStyle getStyle()
style
attribute.
CSS based style description which indicates how this element should be rendered graphically.
STYLE_PROPERTY
property.public void setStyle(TLcdNVGStyle aValue)
style
attribute.
CSS based style description which indicates how this element should be rendered graphically.
aValue
- the value to set for the STYLE_PROPERTY
property.public URI getUri()
uri
attribute.
URI schema that uniquely identifies the object. See the URI Scheme for more details.
URI_PROPERTY
property.public void setUri(URI aValue)
uri
attribute.
URI schema that uniquely identifies the object. See the URI Scheme for more details.
aValue
- the value to set for the URI_PROPERTY
property.