Class NCTextureMapObject - Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0 GitHub Wiki
NCTextureMapObject class is used for showing texture objects on the map.
Referenced from: NCLocationView.
Public methods
Function setPosition
- (void)setPosition:(nonnull NCPoint *)point;
Function sets the position of texture object on the map.
Parameters
point— x and y metric coordinates.
Function getPosition
- (nonnull NCPoint *)getPosition;
Function returns the position of texture object on the map.
Return value
X and y metric coordinates of texture object.
Function setSize
- (void)setSize:(float)width
height:(float)height;
Function sets the size of texture object on the map.
Parameters
width— width of texture object in metric coordinates. (You should know the size of base location view image, for fitting the screen)height— height of texture object in metric coordinates. (You should know the size of base location view image, for fitting the screen)
Function getWidth
- (float)getWidth;
Function returns the width of texture map object.
Return value
Width of texture in metric coordinates.
Function getHeight
- (float)getHeight;
Function returns the height of texture map object.
Return value
Height of texture in metric coordinates.
Function setData
- (void)setData:(nonnull NSData *)data;
Function sets the data for circle map object which could be used for distinguishing different objects on map.
Parameters
data— byte array of data.
Function getData
- (nonnull NSData *)getData;
Function returns the data attached to the circle object.
Return value
Byte array of data.
Function setEnabled
- (void)setEnabled:(BOOL)status;
Function is used for setting the visibility of texture object on the map.
Parameters
visibility— visibility of texture map object on screen.
Function setTexture
- (void)setTexture:(nonnull NSData *)data
imageWidth:(int32_t)imageWidth
imageHeight:(int32_t)imageHeight;
Function is used for setting the texture data and its width and height into texture map object.
Parameters
data— byte array of image data.imageWidth— width of image which should be shown in texture map object.imageHeight— height of image which should be shown in texture map object.