Loading...
Searching...
No Matches

Class is used for representing certain polyline within the location Polyline. More...

#include <com/navigine/idl/objc/NCLocationPolyline.h>

Inherits NSObject.

Instance Methods

(nonnull instancetype) - initWithPolyline:locationId:sublocationId:
 Default constructor for class NCLocationPolyline.
 

Class Methods

(nonnull instancetype) + locationPolylineWithPolyline:locationId:sublocationId:
 Factory method for class NCLocationPolyline.
 

Properties

NCPolylinepolyline
 Metrics polyline NCPolyline.
 
int32_t locationId
 location polyline location identifier.
 
int32_t sublocationId
 location polyline sublocation identifier.
 

Detailed Description

Class is used for representing certain polyline within the location Polyline.

Swift code snippet:

let linePts = [NCPoint(x: 0.0, y: 0.0), NCPoint(x: 10.0, y: 10.0)]
let metricPolyline = NCPolyline(points: linePts)
let locationPolyline = NCLocationPolyline(polyline: metricPolyline, locationId: 42, sublocationId: 7)
let polylineBack = locationPolyline.polyline
print("LocationPolyline points \‍(polylineBack.points.count)")

Objective C code snippet:

NSArray<NCPoint *> *linePts = @[
[[NCPoint alloc] initWithX:0.0 y:0.0],
[[NCPoint alloc] initWithX:10.0 y:10.0],
];
NCPolyline *metricPolyline = [[NCPolyline alloc] initWithPoints:linePts];
NCLocationPolyline *locationPolyline = [[NCLocationPolyline alloc] initWithPolyline:metricPolyline locationId:42 sublocationId:7];
NCPolyline *polylineBack = locationPolyline.polyline;
NSLog(@"LocationPolyline points %lu", (unsigned long)polylineBack.points.count);

Definition at line 27 of file NCLocationPolyline.h.

Method Documentation

◆ initWithPolyline:locationId:sublocationId:

- (nonnull instancetype) initWithPolyline: (nonnull NCPolyline *) polyline
locationId: (int32_t) locationId
sublocationId: (int32_t) sublocationId 

Default constructor for class NCLocationPolyline.

◆ locationPolylineWithPolyline:locationId:sublocationId:

+ (nonnull instancetype) locationPolylineWithPolyline: (nonnull NCPolyline *) polyline
locationId: (int32_t) locationId
sublocationId: (int32_t) sublocationId 

Factory method for class NCLocationPolyline.

Property Documentation

◆ locationId

- (int32_t) locationId
readnonatomicassign

location polyline location identifier.

Definition at line 55 of file NCLocationPolyline.h.

◆ polyline

- (NCPolyline*) polyline
readnonatomicassign

Metrics polyline NCPolyline.

Definition at line 48 of file NCLocationPolyline.h.

◆ sublocationId

- (int32_t) sublocationId
readnonatomicassign

location polyline sublocation identifier.

Definition at line 62 of file NCLocationPolyline.h.


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