MSFPolygon3D
Objective-C
@interface MSFPolygon3D : MSFVectorElement
Swift
class MSFPolygon3D : MSFVectorElement
A geometric 3d polygon that can be displayed on the map. 3d polygons can be concave and have multiple overlapping holes.
-
Constructs a Polygon3D object from a geometry object and a style.
Declaration
Objective-C
- (id)initWithGeometry:(MSFPolygonGeometry *)geometry style:(MSFPolygon3DStyle *)style height:(float)height;Swift
init!(geometry: MSFPolygonGeometry!, style: MSFPolygon3DStyle!, height: Float)Parameters
geometryThe geometry object that defines the location and holes of this 3d polygon.
styleThe style that defines what this 3d polygon looks like.
heightThe height of this 3d polygon in meters.
-
Constructs a Polygon3D object from a vector of map positions and a style.
Declaration
Objective-C
- (id)initWithPoses:(MSFMapPosVector *)poses style:(MSFPolygon3DStyle *)style height:(float)height;Swift
init!(poses: MSFMapPosVector!, style: MSFPolygon3DStyle!, height: Float)Parameters
posesThe vector of map positions that defines the location of this 3d polygon.
styleThe style that defines what this 3d polygon looks like.
heightThe height of this 3d polygon in meters.
-
Constructs a Polygon3D object from a vector of map positions, a vector of holes and a style.
Declaration
Objective-C
- (id)initWithPoses:(MSFMapPosVector *)poses holes:(MSFMapPosVectorVector *)holes style:(MSFPolygon3DStyle *)style height:(float)height;Swift
init!(poses: MSFMapPosVector!, holes: MSFMapPosVectorVector!, style: MSFPolygon3DStyle!, height: Float)Parameters
posesThe vector of map positions that defines the location of this 3d polygon.
holesThe vector of holes that defines the locations of holes of this 3d polygon.
styleThe style that defines what this 3d polygon looks like.
heightThe height of this 3d polygon in meters.
-
Undocumented
Declaration
Objective-C
- (MSFPolygonGeometry *)getGeometry;Swift
func getGeometry() -> MSFPolygonGeometry! -
Sets the location for this 3d polygon.
Declaration
Objective-C
- (void)setGeometry:(MSFPolygonGeometry *)geometry;Swift
func setGeometry(_ geometry: MSFPolygonGeometry!)Parameters
geometryThe new geometry object that defines the location and holes of this 3d polygon.
-
Returns the vertices that define this 3d polygon.
Return Value
The new vector of map positions that define this 3d polygon.
-
Sets the vertices that define this 3d polygon. Note: holes are not affected by this call.
Declaration
Objective-C
- (void)setPoses:(MSFMapPosVector *)poses;Swift
func setPoses(_ poses: MSFMapPosVector!)Parameters
posesThe new vector of map positions that define this 3d polygon.
-
Returns the holes of the 3d polygon.
Declaration
Objective-C
- (MSFMapPosVectorVector *)getHoles;Swift
func getHoles() -> MSFMapPosVectorVector!Return Value
The list of holes of the 3d polygon.
-
Sets the holes of the 3d polygon.
Declaration
Objective-C
- (void)setHoles:(MSFMapPosVectorVector *)holes;Swift
func setHoles(_ holes: MSFMapPosVectorVector!)Parameters
holesThe list of holes of the 3d polygon.
-
Returns the height of this 3d polygon.
Declaration
Objective-C
- (float)getHeight;Swift
func getHeight() -> FloatReturn Value
The height of this 3d polygon in meters.
-
Sets the height for this 3d polygon.
Declaration
Objective-C
- (void)setHeight:(float)height;Swift
func setHeight(_ height: Float)Parameters
heightThe new height for this 3d polygon in meters.
-
Returns the style of this 3d polygon.
Declaration
Objective-C
- (MSFPolygon3DStyle *)getStyle;Swift
func getStyle() -> MSFPolygon3DStyle!Return Value
The style that defines what this 3d polygon looks like.
-
Sets the style for this 3d polygon.
Declaration
Objective-C
- (void)setStyle:(MSFPolygon3DStyle *)style;Swift
func setStyle(_ style: MSFPolygon3DStyle!)Parameters
styleThe new style that defines what this 3d polygon looks like.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()