MSFMapRenderer
Objective-C
@interface MSFMapRenderer : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFMapRenderer : NSObject
The map renderer component.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Forgets that the camera has been moved, so the auto-flatten rule ignores the SDK’s initial view. See AutoFlatten.
Declaration
Objective-C
- (void)resetCameraPlaced;Swift
func resetCameraPlaced() -
Returns the map renderer listener. Can be null.
Declaration
Objective-C
- (MSFMapRendererListener *)getMapRendererListener;Swift
func getListener() -> MSFMapRendererListener!Return Value
The map renderer listener.
-
Sets the map renderer listener.
Declaration
Objective-C
- (void)setMapRendererListener:(MSFMapRendererListener *)listener;Swift
func setMapRendererListener(_ listener: MSFMapRendererListener!)Parameters
listenerThe new map renderer listener. Can be null.
-
Returns the current view state.
Return Value
The current view state.
-
Returns the last view state published by a frame, without waiting for the renderer mutex. For the application’s thread: _mutex is held for a whole frame, and waiting on it can deadlock against an event the frame emits. Up to a frame stale.
Declaration
Objective-C
- (MSFViewState *)getViewStateSnapshot;Swift
func getViewStateSnapshot() -> MSFViewState!Return Value
The last published view state.
-
Requests the renderer to refresh the view. Normally not needed, the SDK redraws when needed. The defaulted arguments record the call site for logRedrawSources; callers pass nothing.
Declaration
Objective-C
- (void)requestRedraw:(NSString *)callerFile callerLine:(int)callerLine;Swift
func requestRedraw(_ callerFile: String!, callerLine: Int32) -
Requests the renderer to refresh the view. Normally not needed, the SDK redraws when needed. The defaulted arguments record the call site for logRedrawSources; callers pass nothing.
Declaration
Objective-C
- (void)requestRedraw:(NSString *)callerFile;Swift
func requestRedraw(_ callerFile: String!) -
Requests the renderer to refresh the view. Normally not needed, the SDK redraws when needed. The defaulted arguments record the call site for logRedrawSources; callers pass nothing.
Declaration
Objective-C
- (void)requestRedraw;Swift
func requestRedraw() -
Captures map rendering as a bitmap. This operation is asynchronous and the result is returned via listener callback.
Declaration
Objective-C
- (void)captureRendering:(MSFRendererCaptureListener *)listener waitWhileUpdating:(BOOL)waitWhileUpdating;Swift
func captureRendering(_ listener: MSFRendererCaptureListener!, waitWhileUpdating: Bool)Parameters
listenerThe listener interface that will receive the callback once rendering is available.
waitWhileUpdatingIf true, delay the capture until all asynchronous processes are finished (for example, until all tiles are loaded).
-
Returns the current post-process effect. Can be null.
Declaration
Objective-C
- (MSFPostProcessEffect *)getPostProcessEffect;Swift
func getPostProcessEffect() -> MSFPostProcessEffect!Return Value
The current post-process effect.
-
Sets the post-process effect. When set, the map is rendered into an offscreen buffer and the effect fragment shader produces the final screen output. Note: this feature is experimental and may change in future SDK versions.
Declaration
Objective-C
- (void)setPostProcessEffect:(MSFPostProcessEffect *)postProcessEffect;Swift
func setPostProcessEffect(_ postProcessEffect: MSFPostProcessEffect!)Parameters
postProcessEffectThe new post-process effect. Can be null.
-
The elevation texture cache: one per map, shared by every tile layer. GL thread only. Internal method.
Declaration
Objective-C
- (SWIGTYPE_std__shared_ptrT_massif__ElevationTextureCache_t *) getElevationTextureCache: (SWIGTYPE_p_std__shared_ptrT_massif__ElevationManager_t *) elevationManager;Swift
func getElevationTextureCache(_ elevationManager: SWIGTYPE_p_std__shared_ptrT_massif__ElevationManager_t!) -> SWIGTYPE_std__shared_ptrT_massif__ElevationTextureCache_t! -
Returns the terrain renderer (may be null). GL thread only. Internal method.
Declaration
Objective-C
- (SWIGTYPE_p_massif__TerrainRenderer *)getTerrainRenderer;Swift
func getTerrainRenderer() -> SWIGTYPE_p_massif__TerrainRenderer! -
Undocumented
Declaration
Objective-C
-(void)setTouchGestureActive: (BOOL)active;Swift
func setTouchGestureActive(_ active: Bool) -
Undocumented
Declaration
Objective-C
-(void)drawMaskQuad: (unsigned int)texture invWidth: (float)invWidth invHeight: (float)invHeight;Swift
func drawMaskQuad(_ texture: UInt32, invWidth: Float, invHeight: Float) -
Undocumented
Declaration
Objective-C
-(void)multiplyScreenMask: (unsigned int)texture invWidth: (float)invWidth invHeight: (float)invHeight;Swift
func multiplyScreenMask(_ texture: UInt32, invWidth: Float, invHeight: Float) -
Undocumented
Declaration
Objective-C
-(void)vtLabelsPostponed: (SWIGTYPE_p_std__shared_ptrT_massif__Layer_t*)layer;Swift
func vtLabelsPostponed(_ layer: SWIGTYPE_p_std__shared_ptrT_massif__Layer_t!) -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()