Loading...
Searching...
No Matches

Class describing a graph that connects the sublocations. More...

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

Inherits NSObject.

Properties

NSArray< NCGraphEdge * > * edges
 List of edges that connect two sublocations GraphEdge.
 
BOOL valid
 

Detailed Description

Class describing a graph that connects the sublocations.

Referenced from Location

Definition at line 19 of file NCElevationGraph.h.

Property Documentation

◆ edges

- (NSArray<NCGraphEdge *>*) edges
readnonatomicassign

List of edges that connect two sublocations GraphEdge.

Swift code snippet:

// Get elevation graph edges
let edges = elevationGraph.getEdges()
print("Number of elevation graph edges: \‍(edges.count)")
// Demonstrate each edge
for (index, edge) in edges.enumerated() {
print("Elevation graph edge \‍(index + 1):")
demonstrateGraphEdgeUsage(edge)
}

Objective C code snippet:

// Get elevation graph edges
NSArray<NCGraphEdge *> *edges = [elevationGraph getEdges];
NSLog(@"Number of elevation graph edges: %lu", (unsigned long)edges.count);
// Demonstrate each edge
for (int i = 0; i < edges.count; i++) {
NCGraphEdge *edge = edges[i];
NSLog(@"Elevation graph edge %d:", i + 1);
[self demonstrateGraphEdgeUsage:edge];
}

Definition at line 34 of file NCElevationGraph.h.

◆ valid

- (BOOL) valid
readnonatomicassign

Tells if this object is valid or not. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now.

Definition at line 42 of file NCElevationGraph.h.


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