Loading...
Searching...
No Matches
NCDottedPolylineMapObject Class Reference

Represents a polyline object with points placed along it on the location view. More...

#include <com/navigine/idl/objc/NCDottedPolylineMapObject.h>

+ Inheritance diagram for NCDottedPolylineMapObject:

Instance Methods

(BOOL) - setPolyLine:
 Method is used to specify the source polyline for the points.
 
(BOOL) - setColor:green:blue:alpha:
 Method is used to specify the color of the object.
 
(BOOL) - setSize:height:
 Method is used to specify the size of the points.
 
(BOOL) - setCollisionEnabled:
 Method is used to enable or disable collision detection for the icon.
 
(BOOL) - setPlacement:
 Method is used to specify the placement mode for points along the polyline.
 
(BOOL) - setPlacementMinRatio:
 Method is used to specify the minimum ratio of the polyline length for point placement.
 
(BOOL) - setPlacementSpacing:
 Method is used to specify the spacing between points for spaced placement.
 
(BOOL) - setRepeatDistance:
 Method is used to specify the distance interval for repeating points along the polyline.
 
(BOOL) - setRepeatGroup:
 Method is used to specify the group identifier for repeating points.
 
(BOOL) - setPriority:
 Method is used to specify the priority of the icon.
 
(int32_t) - getId
 Gets the unique identifier of the map object.
 
(NCMapObjectType- getType
 Gets the type of the map object.
 
(nonnull NSData *) - getData
 Gets the user-defined data associated with the map object.
 
(BOOL) - setVisible:
 Method is used to specify the visibility of the map object.
 
(BOOL) - setInteractive:
 Method is used to specify whether the map object can be interacted with.
 
(void) - setData:
 Method is used to set user-defined data for the map object.
 
(BOOL) - setTitle:
 Method is used to set the title of the map object.
 
(BOOL) - setAlpha:
 Method is used to set the opacity of the map object.
 

Detailed Description

Represents a polyline object with points placed along it on the location view.

Referenced from LocationWindow.

Definition at line 20 of file NCDottedPolylineMapObject.h.

Method Documentation

◆ getData

- (nonnull NSData *) getData

Gets the user-defined data associated with the map object.

Returns
The data stored in the map object.

◆ getId

- (int32_t) getId

Gets the unique identifier of the map object.

Returns
The unique identifier of the map object.

◆ getType

- (NCMapObjectType) getType

Gets the type of the map object.

Returns
The type of the map object map_object_type.

◆ setAlpha:

- (BOOL) setAlpha: (float) alpha

Method is used to set the opacity of the map object.

Parameters
alphaOpacity multiplier. Values below 0 will be set to 0. Values above 1 will be set to 1. Default: 1.
Returns
true if the operation is successful, false otherwise.

◆ setCollisionEnabled:

- (BOOL) setCollisionEnabled: (BOOL) enabled

Method is used to enable or disable collision detection for the icon.

Parameters
enabledSpecifies whether collision detection is enabled (true) or disabled (false). Default: false.
Returns
true if the operation is successful, false otherwise.

◆ setColor:green:blue:alpha:

- (BOOL) setColor: (float) red
green: (float) green
blue: (float) blue
alpha: (float) alpha 

Method is used to specify the color of the object.

Parameters
redRed RGBA component.
greenGreen RGBA component.
blueBlue RGBA component.
alphaOpacity multiplier. Values below 0 will be set to 0. Default: 1.
Returns
true if success, false otherwise.

◆ setData:

- (void) setData: (nonnull NSData *) data

Method is used to set user-defined data for the map object.

Parameters
dataData to store in the map object.
Returns
true if the operation is successful, false otherwise.

◆ setInteractive:

- (BOOL) setInteractive: (BOOL) interactive

Method is used to specify whether the map object can be interacted with.

Parameters
interactiveSpecifies whether the object can be picked in the pickMapObjectAt method (true) or not (false). Default: false.
Returns
true if the operation is successful, false otherwise.

◆ setPlacement:

- (BOOL) setPlacement: (NCPlacement) placement

Method is used to specify the placement mode for points along the polyline.

Parameters
placementThe placement mode placement. Default: VERTEX.
Returns
true if the operation is successful, false otherwise.

◆ setPlacementMinRatio:

- (BOOL) setPlacementMinRatio: (float) ratio

Method is used to specify the minimum ratio of the polyline length for point placement.

Parameters
ratioThe minimum ratio of the polyline length (typically between 0 and 1). Default: 1.0.
Returns
true if the operation is successful, false otherwise.

◆ setPlacementSpacing:

- (BOOL) setPlacementSpacing: (float) spacing

Method is used to specify the spacing between points for spaced placement.

Parameters
spacingThe spacing distance in pixels. Default: 80.
Returns
true if the operation is successful, false otherwise.

◆ setPolyLine:

- (BOOL) setPolyLine: (nonnull NCLocationPolyline *) polyline

Method is used to specify the source polyline for the points.

Parameters
polylineMetrics coordinates of the polyline LocationPolyline.
Returns
true if the operation is successful, false otherwise.

◆ setPriority:

- (BOOL) setPriority: (float) priority

Method is used to specify the priority of the icon.

Parameters
priorityThe priority value for rendering or interaction. Default: max.
Returns
true if the operation is successful, false otherwise.

◆ setRepeatDistance:

- (BOOL) setRepeatDistance: (float) distance

Method is used to specify the distance interval for repeating points along the polyline.

Parameters
distanceThe repeat distance in pixels. Default: 0.
Returns
true if the operation is successful, false otherwise.

◆ setRepeatGroup:

- (BOOL) setRepeatGroup: (int32_t) group

Method is used to specify the group identifier for repeating points.

Parameters
groupThe group identifier for point repetition. Default: 0.
Returns
true if the operation is successful, false otherwise.

◆ setSize:height:

- (BOOL) setSize: (float) width
height: (float) height 

Method is used to specify the size of the points.

Parameters
widthWidth of the points in pixels.
heightHeight of the points in pixels.
Returns
true if the operation is successful, false otherwise.

◆ setTitle:

- (BOOL) setTitle: (nonnull NSString *) title

Method is used to set the title of the map object.

Parameters
titleThe title to display on the location view.
Returns
true if the operation is successful, false otherwise.

◆ setVisible:

- (BOOL) setVisible: (BOOL) visible

Method is used to specify the visibility of the map object.

Parameters
visibleSpecifies whether the object is visible (true) or hidden (false). Default: true.
Returns
true if the operation is successful, false otherwise.

The documentation for this class was generated from the following file: