MSFMarkerStyleBuilder
Objective-C
@interface MSFMarkerStyleBuilder : MSFBillboardStyleBuilder
Swift
class MSFMarkerStyleBuilder : MSFBillboardStyleBuilder
A builder class for MarkerStyle.
-
Constructs a MarkerStyleBuilder object with all parameters set to defaults.
Declaration
Objective-C
- (id)init;Swift
init!() -
Returns the horizontal anchor point of the marker.
Declaration
Objective-C
- (float)getAnchorPointX;Swift
func getAnchorPointX() -> FloatReturn Value
The horizontal anchor point of the marker.
-
Sets the horizontal anchor point of the marker.
Declaration
Objective-C
- (void)setAnchorPointX:(float)anchorPointX;Swift
func setAnchorPointX(_ anchorPointX: Float)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;Swift
func getAnchorPointY() -> FloatReturn Value
The vertical anchor point of the marker.
-
Sets the vertical anchor point of the marker.
Declaration
Objective-C
- (void)setAnchorPointY:(float)anchorPointY;Swift
func setAnchorPointY(_ anchorPointY: Float)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;Swift
func setAnchorPointX(_ anchorPointX: Float, anchorPointY: Float)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 orientation mode of the marker.
Declaration
Objective-C
- (enum MSFBillboardOrientation)getOrientationMode;Swift
func getOrientationMode() -> MSFBillboardOrientationReturn 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 MSFBillboardOrientation)orientationMode;Swift
func setOrientationMode(_ orientationMode: MSFBillboardOrientation)Parameters
orientationModeThe new orientation mode for the marker.
-
Returns the scaling mode of the marker.
Declaration
Objective-C
- (enum MSFBillboardScaling)getScalingMode;Swift
func getScalingMode() -> MSFBillboardScalingReturn 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 MSFBillboardScaling)scalingMode;Swift
func setScalingMode(_ scalingMode: MSFBillboardScaling)Parameters
scalingModeThe new scaling mode for the marker.
-
Returns the size of the marker used for click detection.
Declaration
Objective-C
- (float)getClickSize;Swift
func getClickSize() -> FloatReturn 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;Swift
func setClickSize(_ size: Float)Parameters
sizeThe new point size in dp.
-
Returns the size of the marker.
Declaration
Objective-C
- (float)getSize;Swift
func getSize() -> FloatReturn 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;Swift
func setSize(_ size: Float)Parameters
sizeThe new marker size.
-
Builds a new instance of the MarkerStyle object using previously set parameters.
Return Value
A new MarkerStyle object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()