CartoType iOS API 8.8-13-g03c6f7017
for development in Swift and Objective C for iOS and Mac OS
Instance Methods | List of all members
<CartoTypePath> Protocol Reference

#import <CartoTypeBase.h>

Inheritance diagram for <CartoTypePath>:
CartoTypeMapObject CartoTypeRoute CartoTypeRouteSegment

Instance Methods

(int) - contourCount
 
(int) - pointCount:
 
(CartoTypePathPoint- point:pointIndex:
 

Detailed Description

The CartoType path protocol.

Method Documentation

◆ contourCount

- (int) contourCount

Gets the number of contours (sub-paths) in the path.

Reimplemented in CartoTypeMapObject, CartoTypeRouteSegment, and CartoTypeRoute.

◆ point:pointIndex:

- (CartoTypePathPoint) point: (int)  aContourIndex
pointIndex: (int)  aPointIndex 

Gets a point, given its contour index and point index. Returns (0,0) if the contour index or point index is out of range.

Reimplemented in CartoTypeMapObject, CartoTypeRouteSegment, and CartoTypeRoute.

◆ pointCount:

- (int) pointCount: (int)  aContourIndex

Gets the number of points in a certain contour.

Reimplemented in CartoTypeMapObject, CartoTypeRouteSegment, and CartoTypeRoute.


The documentation for this protocol was generated from the following file: