GLMapImageGroupDataSource
Objective-C
@protocol GLMapImageGroupDataSource
Swift
protocol GLMapImageGroupDataSource
GLMapImageGroupDataSource
is a callback that provide infromation images.
Warning
Do not edit image group while it is updated-
Called at start of updating image group.
Declaration
Objective-C
- (void)startUpdate;
Swift
func startUpdate()
-
Called at end of uparing image group
Declaration
Objective-C
- (void)endUpdate;
Swift
func endUpdate()
-
Returns number of unique images
Declaration
Objective-C
- (NSInteger)getVariantsCount;
Swift
func getVariantsCount() -> Int
-
Returns image.
Declaration
Objective-C
- (PlatformImage *_Nonnull)getVariant:(NSInteger)index offset:(CGPoint *_Nonnull)offset;
Swift
func getVariant(_ index: Int, offset: UnsafeMutablePointer<CGPoint>) -> NSImage
Parameters
index
index of image in range [0..getVariantsCount)
offset
offset of image in points
-
Returns number of images to draw
Declaration
Objective-C
- (NSInteger)getImagesCount;
Swift
func getImagesCount() -> Int
-
Fills infromation for image
Declaration
Objective-C
- (void)getImageInfo:(NSInteger)index vairiant:(uint32_t *_Nonnull)variant position:(GLMapPoint *_Nonnull)position;
Swift
func getImageInfo(_ index: Int, vairiant variant: UnsafeMutablePointer<UInt32>, position: UnsafeMutablePointer<GLMapPoint>)
Parameters
index
index of image in range [0..getImagesCount)
variant
index of image to draw in range [0..getVarriantsCount)
position
position where to draw image