Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
This subclass of IlvMapSegmentString
is optimized to handle strings that contain only IlvMapArcSegment
instances.
More...
#include <ilviews/maps/geometry/geoarcstr.h>
Public Member Functions | |
IlvMapArcString (const IlvMapArcString &source) | |
Creates an arc string by copying an existing one. | |
IlvMapArcString () | |
Constructor. | |
IlvMapArcString (const IlvCoordinate &start) | |
Initializes an instance of the class specifying its start point. | |
void | arcTo (const IlvCoordinate &intermediate, const IlvCoordinate &end) |
Adds an arc at the end of the string. | |
virtual IlvMapGeometry * | copy () const |
Returns a copy of the object. | |
const IlvMapArcSegment * | getArcSegment (IlUInt index) const |
Returns the arc segment of index index. | |
virtual IlvClassInfo * | getClassInfo () const |
Returns the IlvClassInfo of the instance. | |
virtual const IlvCoordinate & | getEndPoint () const |
Returns the end point of the last segment, if it exists, otherwise, it returns an IlvCoordinate set to (0,0). | |
virtual IlUInt | getHorizontalIntersectionCount (const IlvCoordinate &point) const |
virtual const IlvMapSegment * | getSegment (IlUInt index) const |
Returns the segment of index index. | |
virtual IlUInt | getSegmentCount () const |
Returns the number of segments contained in the string. | |
virtual const IlvCoordinate & | getStartPoint () const |
Returns the start point of the first segment, if it exists, otherwise, it returns an IlvCoordinate set to (0,0). | |
virtual void | removeAll () |
Removes all the segments in the string and sets the start point to (0,0). | |
virtual void | setEndPoint (const IlvCoordinate &end) |
Sets the end point of the last segment if it exists. | |
virtual void | setStartPoint (const IlvCoordinate &start) |
Sets the start point of the first segment. |
This subclass of IlvMapSegmentString
is optimized to handle strings that contain only IlvMapArcSegment
instances.
The instances of this class can be rendered by an IlvDefaultFeatureRenderer
or by an IlvDefaultCurveRenderer
.
IlvMapArcString::IlvMapArcString | ( | const IlvCoordinate & | start | ) |
Initializes an instance of the class specifying its start point.
start | The start point. |
IlvMapArcString::IlvMapArcString | ( | ) |
Constructor.
Initializes an instance of the class and sets the start point to (0, 0).
IlvMapArcString::IlvMapArcString | ( | const IlvMapArcString & | source | ) |
Creates an arc string by copying an existing one.
source | The source arc string. |
void IlvMapArcString::arcTo | ( | const IlvCoordinate & | intermediate, | |
const IlvCoordinate & | end | |||
) |
Adds an arc at the end of the string.
intermediate | The intermediate point. | |
end | The end point. |
virtual IlvMapGeometry* IlvMapArcString::copy | ( | ) | const [virtual] |
Returns a copy of the object.
IlvMapGeometry
that must be deleted by the user. Implements IlvMapSegmentString.
const IlvMapArcSegment* IlvMapArcString::getArcSegment | ( | IlUInt | index | ) | const |
Returns the arc segment of index index.
index | The index of the segment to be retrieved. index must have a value between 0 and getSegmentCount() -1 . |
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. virtual IlvClassInfo* IlvMapArcString::getClassInfo | ( | ) | const [virtual] |
Returns the IlvClassInfo
of the instance.
IlvClassInfo
that should not be modified nor deleted. Implements IlvMapSegmentString.
virtual const IlvCoordinate& IlvMapArcString::getEndPoint | ( | ) | const [virtual] |
Returns the end point of the last segment, if it exists, otherwise, it returns an IlvCoordinate
set to (0,0).
Implements IlvMapSegmentString.
virtual IlUInt IlvMapArcString::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
.
point | The point at the right extremity of the horizontal half line. |
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.
virtual const IlvMapSegment* IlvMapArcString::getSegment | ( | IlUInt | index | ) | const [virtual] |
Returns the segment of index index.
index | The index of the segment to be retrieved. index must have a value between 0 and getSegmentCount() - 1 . |
IlvMapSegment
object 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
itself after an other call to this function, or after any modification. Implements IlvMapSegmentString.
virtual IlUInt IlvMapArcString::getSegmentCount | ( | ) | const [virtual] |
Returns the number of segments contained in the string.
Implements IlvMapSegmentString.
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).
Implements IlvMapSegmentString.
virtual void IlvMapArcString::setEndPoint | ( | const IlvCoordinate & | end | ) | [virtual] |
Sets the end point of the last segment if it exists.
Otherwise, it does nothing.
end | The end point. |
Implements IlvMapSegmentString.
virtual void IlvMapArcString::setStartPoint | ( | const IlvCoordinate & | start | ) | [virtual] |
Sets the start point of the first segment.
start | The start point. |
Implements IlvMapSegmentString.
© Copyright 2012, 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.