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. The view a map is constructed with is the SDK’s own, not a placed camera, and the auto-flatten rule does not judge it - 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.
-
Requests the renderer to refresh the view. Note that there is normally no need to do this manually, SDK automatically redraws the view when needed. The default arguments record the CALL SITE, so a view that never stops redrawing can say which of the ~30 callers is driving it (logRedrawSources below). Callers pass nothing; the compiler fills these in.
Declaration
Objective-C
- (void)requestRedraw:(NSString *)callerFile callerLine:(int)callerLine;Swift
func requestRedraw(_ callerFile: String!, callerLine: Int32) -
Requests the renderer to refresh the view. Note that there is normally no need to do this manually, SDK automatically redraws the view when needed. The default arguments record the CALL SITE, so a view that never stops redrawing can say which of the ~30 callers is driving it (logRedrawSources below). Callers pass nothing; the compiler fills these in.
Declaration
Objective-C
- (void)requestRedraw:(NSString *)callerFile;Swift
func requestRedraw(_ callerFile: String!) -
Requests the renderer to refresh the view. Note that there is normally no need to do this manually, SDK automatically redraws the view when needed. The default arguments record the CALL SITE, so a view that never stops redrawing can say which of the ~30 callers is driving it (logRedrawSources below). Callers pass nothing; the compiler fills these in.
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.
-
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)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)dealloc;Swift
func dealloc()