This class defines a circular arc segment.
More...
#include <ilviews/maps/geometry/geoarcseg.h>
This class defines a circular arc segment.
Library: ilvmaps
An IlvMapArcSegment
is a circular arc defined by three control points called the start point, the intermediate point and the end point. The instances of this class can be rendered by an IlvDefaultFeatureRenderer
or by an IlvDefaultCurveRenderer
.
§ IlvMapArcSegment() [1/3]
IlvMapArcSegment::IlvMapArcSegment |
( |
| ) |
|
Constructor.
Initializes an instance of the class.
§ IlvMapArcSegment() [2/3]
Creates an arc segment by copying an existing one.
- Parameters
-
source | The source arc segment. |
§ IlvMapArcSegment() [3/3]
Creates an arc segment that goes through the three points given as argument.
- Parameters
-
start | The first point. |
intermediate | The middle point. |
end | The end point. |
§ copy()
§ getClassInfo()
virtual IlvClassInfo* IlvMapArcSegment::getClassInfo |
( |
| ) |
const |
|
virtual |
§ getEndPoint()
virtual const IlvCoordinate& IlvMapArcSegment::getEndPoint |
( |
| ) |
const |
|
virtual |
Returns the end point of the segment.
- Returns
- The end point.
Implements IlvMapSegment.
§ getHorizontalIntersectionCount()
virtual IlUInt IlvMapArcSegment::getHorizontalIntersectionCount |
( |
const IlvCoordinate & |
point | ) |
const |
|
virtual |
Returns the number of intersections between an horizontal half line defined by its right extremity point and the segment. This function is used for point inclusion tests of IlvMapRing
.
- Parameters
-
point | The point at the right extremity of the horizontal half line. |
- Returns
- The number of intersections between the point and the 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.
§ getIntermediatePoint()
const IlvCoordinate& IlvMapArcSegment::getIntermediatePoint |
( |
| ) |
const |
Returns the intermediate point of the arc.
- Returns
- The intermediate control point.
§ getStartPoint()
virtual const IlvCoordinate& IlvMapArcSegment::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 IlvMapArcSegment::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 IlvMapArcSegment::isCollection |
( |
| ) |
const |
|
virtual |
§ setEndPoint()
virtual void IlvMapArcSegment::setEndPoint |
( |
const IlvCoordinate & |
end | ) |
|
|
virtual |
Sets the end point of the segment.
- Parameters
-
Implements IlvMapSegment.
§ setIntermediatePoint()
void IlvMapArcSegment::setIntermediatePoint |
( |
const IlvCoordinate & |
intermediate | ) |
|
Sets the intermediate point of the arc.
- Parameters
-
intermediate | The intermediate point. |
§ setStartPoint()
virtual void IlvMapArcSegment::setStartPoint |
( |
const IlvCoordinate & |
start | ) |
|
|
virtual |
Sets the start point of the segment.
- Parameters
-
Implements IlvMapSegment.
© Copyright 2017, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.