This class defines a linear segment.
More...
#include <ilviews/maps/geometry/geolineseg.h>
This class defines a linear segment.
Library: ilvmaps
The instances of this class can be rendered by an IlvDefaultFeatureRenderer or by an IlvDefaultCurveRenderer.
◆ IlvMapLinearSegment() [1/2]
Initializes a new linear segment by specifying the start and end point.
- Parameters
-
| start | The start point. |
| end | The end point. |
◆ IlvMapLinearSegment() [2/2]
Initializes a new linear segment by copying an existing one.
- Parameters
-
| source | The source linear segment. |
◆ copy()
◆ getClassInfo()
| virtual IlvClassInfo* IlvMapLinearSegment::getClassInfo |
( |
| ) |
const |
|
virtual |
◆ getEndPoint()
| virtual const IlvCoordinate& IlvMapLinearSegment::getEndPoint |
( |
| ) |
const |
|
virtual |
Returns the end point of the segment.
- Returns
- The end point.
Implements IlvMapSegment.
◆ getHorizontalIntersectionCount()
| virtual IlUInt IlvMapLinearSegment::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.
◆ getStartPoint()
| virtual const IlvCoordinate& IlvMapLinearSegment::getStartPoint |
( |
| ) |
const |
|
virtual |
Returns the start point of the segment.
- Returns
- The start point.
Implements IlvMapSegment.
◆ getSubElement()
Returns a sub element of a collection geometry.
- Parameters
-
| index | The index of the sub-geometry to be retrieved. |
- Returns
- The sub element of index index if the geometry is a collection or
0 if it is not.
Implements IlvMapGeometry.
◆ getSubElementCount()
| virtual IlUInt IlvMapLinearSegment::getSubElementCount |
( |
| ) |
const |
|
virtual |
Returns the number of elements contained in the geometry if the geometry is a collection.
- Returns
- The number of elements contained in the geometry if the geometry is a collection. If it is not, this method returns
0.
Implements IlvMapGeometry.
◆ isCollection()
| virtual IlBoolean IlvMapLinearSegment::isCollection |
( |
| ) |
const |
|
virtual |
◆ setEndPoint()
| virtual void IlvMapLinearSegment::setEndPoint |
( |
const IlvCoordinate & |
end | ) |
|
|
virtual |
Sets the end point of the segment.
- Parameters
-
Implements IlvMapSegment.
◆ setStartPoint()
| virtual void IlvMapLinearSegment::setStartPoint |
( |
const IlvCoordinate & |
start | ) |
|
|
virtual |
Sets the start point of the segment.
- Parameters
-
Implements IlvMapSegment.