CartoType iOS API 9.0-11-g64131709d
for development in Swift and Objective C for iOS and Mac OS
Loading...
Searching...
No Matches
<CtPath> Protocol Reference

#include <CartoTypeBase.h>

Inheritance diagram for <CtPath>:
<CartoTypePath> CtMapObject CtRoute CtRouteSegment

Instance Methods

(int) - contourCount
 
(int) - pointCount:
 
(CtPathPoint- 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 CtMapObject, CtRoute, and CtRouteSegment.

◆ point:pointIndex:

- (CtPathPoint) 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 CtMapObject, CtRoute, and CtRouteSegment.

◆ pointCount:

- (int) pointCount: (int) aContourIndex

Gets the number of points in a certain contour.

Reimplemented in CtMapObject, CtRoute, and CtRouteSegment.


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