Rogue Wave Views
Maps Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvMapCurveString Class Reference

This implementation fo the IlvMapSegmentString class supports any sequence of IlvMapSegment. More...

#include <ilviews/maps/geometry/geocurvstr.h>

Inheritance diagram for IlvMapCurveString:
IlvMapSegmentString IlvMapSegment IlvMapCurve IlvMapGeometry

Public Member Functions

 IlvMapCurveString ()
 Constructor. More...
 
 IlvMapCurveString (const IlvMapCurveString &source)
 Creates a segment string by copying an existing one. More...
 
virtual IlvMapGeometrycopy () const
 Returns a copy of the object. More...
 
virtual IlvClassInfogetClassInfo () const
 Returns the IlvClassInfo of the instance. More...
 
virtual const IlvCoordinategetEndPoint () const
 Returns the end point of the last segment, if it exists, otherwise, it returns an IlvCoordinate set to (0,0). More...
 
virtual IlUInt getHorizontalIntersectionCount (const IlvCoordinate &point) const
 
virtual const IlvMapSegmentgetSegment (IlUInt index) const
 Returns the segment of index index. More...
 
virtual IlUInt getSegmentCount () const
 Returns the number of segments contained in the string. More...
 
virtual const IlvCoordinategetStartPoint () const
 Returns the start point of the first segment, if it exists, otherwise, it returns an IlvCoordinate set to (0,0). More...
 
void joinSegment (IlvMapSegment *segment)
 Joins a segment at the end of the string. More...
 
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. More...
 
virtual void setStartPoint (const IlvCoordinate &start)
 Sets the start point of the first segment. More...
 
- Public Member Functions inherited from IlvMapSegmentString
virtual const IlvMapGeometrygetSubElement (IlUInt index) const
 Returns a sub element of a collection geometry. More...
 
virtual IlUInt getSubElementCount () const
 Returns the number of elements contained in the geometry if the geometry is a collection. More...
 
virtual IlBoolean isCollection () const
 Checks if this geometry is a collection of other geometries. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from IlvMapGeometry
static IlvClassInfoClassInfo ()
 Returns the class info. More...
 
- Protected Member Functions inherited from IlvMapSegmentString
 IlvMapSegmentString ()
 Constructor. More...
 
- Protected Member Functions inherited from IlvMapSegment
 IlvMapSegment ()
 Constructor. More...
 
- Protected Member Functions inherited from IlvMapCurve
 IlvMapCurve ()
 Constructor. More...
 
- Protected Member Functions inherited from IlvMapGeometry
 IlvMapGeometry ()
 Constructor. More...
 

Detailed Description

This implementation fo the IlvMapSegmentString class supports any sequence of IlvMapSegment.

The instances of this class can be rendered by an IlvDefaultFeatureRenderer or by an IlvDefaultCurveRenderer. Library: ilvmaps

Constructor & Destructor Documentation

§ IlvMapCurveString() [1/2]

IlvMapCurveString::IlvMapCurveString ( )

Constructor.

Initializes an instance of the class.

§ IlvMapCurveString() [2/2]

IlvMapCurveString::IlvMapCurveString ( const IlvMapCurveString source)

Creates a segment string by copying an existing one.

Parameters
sourceThe source segment string.

Member Function Documentation

§ copy()

virtual IlvMapGeometry* IlvMapCurveString::copy ( ) const
virtual

Returns a copy of the object.

Returns
An IlvMapGeometry that must be deleted by the user.

Implements IlvMapSegmentString.

§ getClassInfo()

virtual IlvClassInfo* IlvMapCurveString::getClassInfo ( ) const
virtual

Returns the IlvClassInfo of the instance.

Returns
An IlvClassInfo that should not be modified nor deleted.

Implements IlvMapSegmentString.

§ getEndPoint()

virtual const IlvCoordinate& IlvMapCurveString::getEndPoint ( ) const
virtual

Returns the end point of the last segment, if it exists, otherwise, it returns an IlvCoordinate set to (0,0).

Returns
The end point.

Implements IlvMapSegmentString.

§ getHorizontalIntersectionCount()

virtual IlUInt IlvMapCurveString::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
pointThe 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.

§ getSegment()

virtual const IlvMapSegment* IlvMapCurveString::getSegment ( IlUInt  index) const
virtual

Returns the segment of index index.

Parameters
indexThe 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. 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.

§ getSegmentCount()

virtual IlUInt IlvMapCurveString::getSegmentCount ( ) const
virtual

Returns the number of segments contained in the string.

Returns
The number of segments.

Implements IlvMapSegmentString.

§ getStartPoint()

virtual const IlvCoordinate& IlvMapCurveString::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.

§ joinSegment()

void IlvMapCurveString::joinSegment ( IlvMapSegment segment)

Joins a segment at the end of the string.

The last point of the preceding segment is moved to fit the starting point of the segment given as argument. In this operation, the IlvMapCurveString object becomes owner of segment.

Parameters
segmentThe segment to be joined.

§ setEndPoint()

virtual void IlvMapCurveString::setEndPoint ( const IlvCoordinate end)
virtual

Sets the end point of the last segment if it exists.

Otherwise, it does nothing.

Parameters
endThe end point.

Implements IlvMapSegmentString.

§ setStartPoint()

virtual void IlvMapCurveString::setStartPoint ( const IlvCoordinate start)
virtual

Sets the start point of the first segment.

Parameters
startThe start point.

Implements IlvMapSegmentString.


© 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.