Loading...
Searching...
No Matches

Class is used for storing graph vertex. More...

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

Inherits NSObject.

Properties

int32_t id
 graph vertex unique identifier.
 
NCPointpoint
 graph vertex position in meters Point.
 
NSString * name
 graph vertex name.
 
BOOL isExternal
 graph vertex can be used to communicate with external graphs or not.
 
BOOL isElevation
 graph vertex used in elevation graph ElevationGraph or not.
 

Detailed Description

Class is used for storing graph vertex.

Definition at line 18 of file NCGraphVertex.h.

Property Documentation

◆ id

- (int32_t) id
readnonatomicassign

graph vertex unique identifier.

Swift code snippet:

// Get vertex ID
let vertexId = vertex.getId()
print("Vertex ID: \‍(vertexId)")

Objective C code snippet:

// Get vertex ID
int32_t vertexId = [vertex getId];
NSLog(@"Vertex ID: %d", vertexId);

Definition at line 32 of file NCGraphVertex.h.

◆ isElevation

- (BOOL) isElevation
readnonatomicassign

graph vertex used in elevation graph ElevationGraph or not.

Swift code snippet:

// Get vertex elevation flag
let isElevation = vertex.getIsElevation()
print("Vertex is elevation: \‍(isElevation)")

Objective C code snippet:

// Get vertex elevation flag
BOOL isElevation = [vertex getIsElevation];
NSLog(@"Vertex is elevation: %@", isElevation ? @"YES" : @"NO");

Definition at line 88 of file NCGraphVertex.h.

◆ isExternal

- (BOOL) isExternal
readnonatomicassign

graph vertex can be used to communicate with external graphs or not.

Swift code snippet:

// Get vertex external flag
let isExternal = vertex.getIsExternal()
print("Vertex is external: \‍(isExternal)")

Objective C code snippet:

// Get vertex external flag
BOOL isExternal = [vertex getIsExternal];
NSLog(@"Vertex is external: %@", isExternal ? @"YES" : @"NO");

Definition at line 74 of file NCGraphVertex.h.

◆ name

- (NSString*) name
readnonatomicassign

graph vertex name.

Swift code snippet:

// Get vertex name
let name = vertex.getName()
print("Vertex name: \‍(name ?? "nil")")

Objective C code snippet:

// Get vertex name
NSString *name = [vertex getName];
NSLog(@"Vertex name: %@", name);

Definition at line 60 of file NCGraphVertex.h.

◆ point

- (NCPoint*) point
readnonatomicassign

graph vertex position in meters Point.

Swift code snippet:

// Get vertex point
let point = vertex.getPoint()
if let point = point {
demonstratePointUsage(point)
}

Objective C code snippet:

// Get vertex point
NCPoint *point = [vertex getPoint];
if (point != nil) {
[self demonstratePointUsage:point];
}

Definition at line 46 of file NCGraphVertex.h.


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