public class TLcdGML32AbstractCurveSegment extends TLcdDataObject implements ILcdShape, ILcdCurve
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
NUM_DERIVATIVE_INTERIOR_PROPERTY
Data property that maps to the
numDerivativeInterior attribute. |
static TLcdDataProperty |
NUM_DERIVATIVES_AT_END_PROPERTY
Data property that maps to the
numDerivativesAtEnd attribute. |
static TLcdDataProperty |
NUM_DERIVATIVES_AT_START_PROPERTY
Data property that maps to the
numDerivativesAtStart attribute. |
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 |
---|
TLcdGML32AbstractCurveSegment() |
TLcdGML32AbstractCurveSegment(TLcdDataType aType) |
Modifier and Type | Method and Description |
---|---|
void |
computePointSFCT(double aParam,
ILcd3DEditablePoint aPointSFCT)
Computes a point of the curve, defined by the given parameter.
|
boolean |
contains2D(double v,
double v1)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double v,
double v1,
double v2)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ILcdPoint |
getEndPoint()
Retrieves the end point of the curve.
|
double |
getEndTangent2D()
Returns the angle of the curve's tangent at the end point,
in degrees counterclockwise from the direction at 3 o'clock.
|
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
String |
getInterpolation()
Returns the interpolation method used by this curve.
|
double |
getLength2D(double aParam1,
double aParam2)
Returns the length between two points of the curve,
defined by the given parameters.
|
int |
getLineSegmentIntersectionCount(ILcdPoint aP1,
ILcdPoint aP2)
Returns the number of intersections between this curve and a line segment
defined by the two specified points.
|
long |
getNumDerivativeInterior()
Returns the value of the property that maps to the
numDerivativeInterior attribute. |
long |
getNumDerivativesAtEnd()
Returns the value of the property that maps to the
numDerivativesAtEnd attribute. |
long |
getNumDerivativesAtStart()
Returns the value of the property that maps to the
numDerivativesAtStart attribute. |
ILcdPoint |
getStartPoint()
Retrieves the start point of the curve.
|
double |
getStartTangent2D()
Returns the angle of the curve's tangent at the start point,
in degrees counterclockwise from the direction at 3 o'clock.
|
double |
getTangent2D(double aParam)
Returns the angle of the curve's tangent in the point defined
by the given parameter, in degrees counterclockwise from the
direction at 3 o'clock.
|
void |
setNumDerivativeInterior(long aValue)
Sets the value of the property that maps to the
numDerivativeInterior attribute. |
void |
setNumDerivativesAtEnd(long aValue)
Sets the value of the property that maps to the
numDerivativesAtEnd attribute. |
void |
setNumDerivativesAtStart(long aValue)
Sets the value of the property that maps to the
numDerivativesAtStart attribute. |
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone
public static final TLcdDataProperty NUM_DERIVATIVE_INTERIOR_PROPERTY
numDerivativeInterior
attribute.
The possible values for this property are instances of long
.public static final TLcdDataProperty NUM_DERIVATIVES_AT_END_PROPERTY
numDerivativesAtEnd
attribute.
The possible values for this property are instances of long
.public static final TLcdDataProperty NUM_DERIVATIVES_AT_START_PROPERTY
numDerivativesAtStart
attribute.
The possible values for this property are instances of long
.public TLcdGML32AbstractCurveSegment()
public TLcdGML32AbstractCurveSegment(TLcdDataType aType)
public ILcdPoint getStartPoint()
ILcdCurve
This is equivalent to computePointSFCT(0)
.
getStartPoint
in interface ILcdCurve
public ILcdPoint getEndPoint()
ILcdCurve
This is equivalent to computePointSFCT(1)
.
getEndPoint
in interface ILcdCurve
public double getStartTangent2D()
ILcdCurve
The tangent orientation is from the start point towards the rest of the shape.
This is the same as getTangent2D(0)
.
getStartTangent2D
in interface ILcdCurve
public double getEndTangent2D()
ILcdCurve
The tangent orientation is from the end point, away from the curve before it.
This is the same as getTangent2D(1)
.
getEndTangent2D
in interface ILcdCurve
public double getTangent2D(double aParam)
ILcdCurve
The tangent orientation is from the point at parameter aParam
towards the rest of the shape.
ILcdCurve.getStartTangent2D()
.ILcdCurve.getEndTangent2D()
.getTangent2D
in interface ILcdCurve
aParam
- a value of the closed interval [0,1]public double getLength2D(double aParam1, double aParam2)
ILcdCurve
aParam1 == aParam2
, the length is 0.aParam1 == 0 and aParam2 == 1
, the length is the whole length of the curve.aParam1 > aParam2
, the length is (aParam1 to 1
) + (0 to aParam2
).getLength2D
in interface ILcdCurve
aParam1
- a value of the closed interval [0,1]aParam2
- a value of the closed interval [0,1]public void computePointSFCT(double aParam, ILcd3DEditablePoint aPointSFCT)
ILcdCurve
ILcdCurve.getStartPoint()
.ILcdCurve.getEndPoint()
.computePointSFCT
in interface ILcdCurve
aParam
- a value of the closed interval [0,1]aPointSFCT
- the point to store the computed curve point inpublic String getInterpolation()
ILcdCurve
A set of predefined constants are defined in this interface,
which are used by the default ILcdCurve
implementations
provided by LuciadLightspeed.
Custom implementations can define their own constants, and use them to interpret the interpolation of the curve.
getInterpolation
in interface ILcdCurve
public int getLineSegmentIntersectionCount(ILcdPoint aP1, ILcdPoint aP2)
ILcdCurve
This information can be used to perform containment calculations, if this curve is closed or if this curve is part of a composite closed curve. By determining the number of intersections between this curve and a line segment starting from a given point in a fixed direction, one can determine whether a point is located within the closed curve by using the even-odd rule.
getLineSegmentIntersectionCount
in interface ILcdCurve
aP1
- the first point of the line segmentaP2
- the second point of the line segmentpublic ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public boolean contains2D(ILcdPoint aILcdPoint)
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
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains2D(double v, double v1)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
v
- the x coordinate of the point.v1
- the y coordinate of the point.public boolean contains3D(ILcdPoint aILcdPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains3D(double v, double v1, double v2)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
v
- the x coordinate of the point.v1
- the y coordinate of the point.v2
- the z coordinate of the point.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
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public long getNumDerivativeInterior()
numDerivativeInterior
attribute.NUM_DERIVATIVE_INTERIOR_PROPERTY
property.public void setNumDerivativeInterior(long aValue)
numDerivativeInterior
attribute.aValue
- the value to set for the NUM_DERIVATIVE_INTERIOR_PROPERTY
property.public long getNumDerivativesAtEnd()
numDerivativesAtEnd
attribute.NUM_DERIVATIVES_AT_END_PROPERTY
property.public void setNumDerivativesAtEnd(long aValue)
numDerivativesAtEnd
attribute.aValue
- the value to set for the NUM_DERIVATIVES_AT_END_PROPERTY
property.public long getNumDerivativesAtStart()
numDerivativesAtStart
attribute.NUM_DERIVATIVES_AT_START_PROPERTY
property.public void setNumDerivativesAtStart(long aValue)
numDerivativesAtStart
attribute.aValue
- the value to set for the NUM_DERIVATIVES_AT_START_PROPERTY
property.