GLMapPointArray


@interface GLMapPointArray : NSObject

Array of GLMapPoint. Usesefull to load lines and polygons into GLMapVectorObject. Based on C++ vector and works faster with GLMapPoints without obj-c overhead, *

  • Initialize array with no capacity hint

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Initialize array with initial capacity hint

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCapacity:(NSUInteger)initialCapacity;
  • Initialize array with points

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPoints:(nonnull GLMapPoint *)points
                                     count:(NSUInteger)count;
  • Initialize array with callback. Usefull in case of generated geometerey. Or to convert data without creating additional array.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCount:(NSUInteger)count
                                 callback:(nonnull GetPointBlock)callback;
  • Add points to array *

    Declaration

    Objective-C

    - (BOOL)addPoints:(const GLMapPoint *_Nonnull)points count:(NSUInteger)count;
  • Add one point to array

    Declaration

    Objective-C

    - (BOOL)addPoint:(GLMapPoint)pt;
  • Point count in array

    Declaration

    Objective-C

    @property (readonly) NSUInteger count;
  • Returns point at index

    Declaration

    Objective-C

    - (GLMapPoint)pointAtIndex:(NSUInteger)index;

    Parameters

    index

    Point index

    Return Value

    Point value

  • Enumerates points with block

    Declaration

    Objective-C

    - (void)enumeratePointsWithBlock:(nonnull EnumeratePointBlock)block;

    Parameters

    block

    Enumerator block