This subclass of IlvMapSegmentString
is optimized to handle strings that contain only IlvMapArcSegment
instances.
More...
#include <ilviews/maps/geometry/geoarcstr.h>
This subclass of IlvMapSegmentString
is optimized to handle strings that contain only IlvMapArcSegment
instances.
Library: ilvmaps
The instances of this class can be rendered by an IlvDefaultFeatureRenderer
or by an IlvDefaultCurveRenderer
.
- See also
IlvMapCurveString
.
◆ IlvMapArcString() [1/3]
IlvMapArcString::IlvMapArcString |
( |
| ) |
|
Initializes a new arc.
The start point is set to (0, 0).
◆ IlvMapArcString() [2/3]
Initializes a new arc specifying its start point.
- Parameters
-
◆ IlvMapArcString() [3/3]
Initializes a new arc by copying an existing one.
- Parameters
-
◆ arcTo()
Adds an arc at the end of the string.
- Parameters
-
intermediate | The intermediate point. |
end | The end point. |
◆ copy()
◆ getArcSegment()
Returns the arc segment at a given index.
- Parameters
-
index | The index of the segment to be retrieved. index must have a value between 0 and getSegmentCount() -1 . |
- Returns
IlvMapArcSegment
that should not be modified nor deleted by the user. The returned IlvMapSegment
is volatile. This means that it may be modified or deleted by the IlvMapSegmentString
istelf after another call to this function, or after any modification.
◆ getClassInfo()
virtual IlvClassInfo* IlvMapArcString::getClassInfo |
( |
| ) |
const |
|
virtual |
◆ getEndPoint()
virtual const IlvCoordinate& IlvMapArcString::getEndPoint |
( |
| ) |
const |
|
virtual |
Returns the end point of the last segment.
- Returns
- The end point. If there is no end point, the point
(0, 0)
is returned.
Implements IlvMapSegmentString.
◆ getHorizontalIntersectionCount()
virtual IlUInt IlvMapArcString::getHorizontalIntersectionCount |
( |
const IlvCoordinate & |
point | ) |
const |
|
virtual |
Returns the number of intersections between this segment and an horizontal half line.
This function is used for point inclusion tests of IlvMapRing
.
- Parameters
-
point | The point at the right end of the horizontal half line. |
- Returns
- The number of intersections between the point and this segment. Tangent intersections should be counted as:
1
if the point is on the segment, 2
if the point is not on the segment. If the point is on the segment where the tangent is not horizontal, the intersection should not be counted.
Implements IlvMapSegment.
◆ getSegment()
Returns the segment at a given index.
- Parameters
-
index | The index of the segment to be retrieved. index must have a value between 0 and getSegmentCount()-1 . |
- Returns
- An
IlvMapSegment
object that should not be modified nor deleted by the user. The returned IlvMapSegment
is volatile: it may be modified or deleted by the IlvMapSegmentString
itself after an other call to this function, or after any modification.
Implements IlvMapSegmentString.
◆ getSegmentCount()
virtual IlUInt IlvMapArcString::getSegmentCount |
( |
| ) |
const |
|
virtual |
Returns the number of segments contained in the string.
- Returns
- The number of segments.
Implements IlvMapSegmentString.
◆ getStartPoint()
virtual const IlvCoordinate& IlvMapArcString::getStartPoint |
( |
| ) |
const |
|
virtual |
Returns the start point of the first segment, if it exists, otherwise, it returns an IlvCoordinate
set to (0,0).
- Returns
- The start point.
Implements IlvMapSegmentString.
◆ setEndPoint()
virtual void IlvMapArcString::setEndPoint |
( |
const IlvCoordinate & |
end | ) |
|
|
virtual |
Sets the end point of the last segment if it exists.
If the end point of the last segment does not exists, this method does nothing.
- Parameters
-
Implements IlvMapSegmentString.
◆ setStartPoint()
virtual void IlvMapArcString::setStartPoint |
( |
const IlvCoordinate & |
start | ) |
|
|
virtual |