NTMarkerStyleBuilder
@interface NTMarkerStyleBuilder : NTBillboardStyleBuilder
A builder class for MarkerStyle.
-
Constructs a MarkerStyleBuilder object with all parameters set to defaults.
Declaration
Objective-C
- (id)init; -
Returns the horizontal anchor point of the marker.
Declaration
Objective-C
- (float)getAnchorPointX;Return Value
The horizontal anchor point of the marker.
-
Sets the horizontal anchor point of the marker.
Declaration
Objective-C
- (void)setAnchorPointX:(float)anchorPointX;Parameters
anchorPointXThe new horizontal anchor point for the marker. -1 means the left side, 0 the center and 1 the right side of the marker. The default is 0.
-
Returns the vertical anchor point of the marker.
Declaration
Objective-C
- (float)getAnchorPointY;Return Value
The vertical anchor point of the marker.
-
Sets the vertical anchor point of the marker.
Declaration
Objective-C
- (void)setAnchorPointY:(float)anchorPointY;Parameters
anchorPointYThe vertical anchor point for the marker. -1 means the bottom, 0 the center and 1 the top of the marker. The default is -1.
-
Sets the anchor point for the marker. Values will be clamped to [-1, 1] range.
Declaration
Objective-C
- (void)setAnchorPointX:(float)anchorPointX anchorPointY:(float)anchorPointY;Parameters
anchorPointXThe new horizontal anchor point for the marker. -1 means the left side, 0 the center and 1 the right side of the marker. The default is 0.
anchorPointYThe vertical anchor point for the marker. -1 means the bottom, 0 the center and 1 the top of the marker. The default is -1.
-
Returns the bitmap of the marker.
Declaration
Objective-C
- (NTBitmap *)getBitmap;Return Value
The bitmap of the marker.
-
Sets the bitmap that will be used for drawing the marker. The default is “default_marker.png”.
Declaration
Objective-C
- (void)setBitmap:(NTBitmap *)bitmap;Parameters
bitmapThe new bitmap for the marker.
-
Returns the orientation mode of the marker.
Declaration
Objective-C
- (enum NTBillboardOrientation)getOrientationMode;Return Value
The orientation mode of the marker.
-
Sets the orientation mode for the marker. The default is BillboardOrientation::FACE_CAMERA_BILLBOARD.
Declaration
Objective-C
- (void)setOrientationMode:(enum NTBillboardOrientation)orientationMode;Parameters
orientationModeThe new orientation mode for the marker.
-
Returns the scaling mode of the marker.
Declaration
Objective-C
- (enum NTBillboardScaling)getScalingMode;Return Value
The scaling mode of the marker.
-
Sets the scaling mode for the marker. The default is BillboardScaling::CONST_SCREEN_SIZE.
Declaration
Objective-C
- (void)setScalingMode:(enum NTBillboardScaling)scalingMode;Parameters
scalingModeThe new scaling mode for the marker.
-
Returns the size of the marker used for click detection.
Declaration
Objective-C
- (float)getClickSize;Return Value
The size of the marker used for click detection.
-
Sets the size for the marker that will be used for click detection. Units are screen density independent pixels (DP or DIP). If set to -1 the click size will be calculated automatically. The default is -1.
Declaration
Objective-C
- (void)setClickSize:(float)size;Parameters
sizeThe new point size in dp.
-
Returns the size of the marker.
Declaration
Objective-C
- (float)getSize;Return Value
The size of the marker, units depend on the scaling mode.
-
Sets the size for the marker. The units depend on the scaling mode, if it’s set to BillboardScaling::WORLD_SIZE, the size is in meters near the equator, the size will not be stretched near the poles. If it’s set to BillboardScaling::SCREEN_SIZE or BillboardScaling::CONST_SCREEN_SIZE then the size is in screen density independent pixels (dp or dip) or normal pixels, depending whether setScaleWithDPI was set to true or false respectively. If set to -1, unpadded bitmap width will be used instead. The default is -1.
Declaration
Objective-C
- (void)setSize:(float)size;Parameters
sizeThe new marker size.
-
Builds a new instance of the MarkerStyle object using previously set parameters.
Declaration
Objective-C
- (NTMarkerStyle *)buildStyle;Return Value
A new MarkerStyle object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTMarkerStyleBuilder Class Reference