NTPolygon3D
@interface NTPolygon3D : NTVectorElement
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:(NTPolygonGeometry *)geometry style:(NTPolygon3DStyle *)style height:(float)height;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:(NTMapPosVector *)poses style:(NTPolygon3DStyle *)style height:(float)height;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:(NTMapPosVector *)poses holes:(NTMapPosVectorVector *)holes style:(NTPolygon3DStyle *)style height:(float)height;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
- (NTPolygonGeometry *)getGeometry; -
Sets the location for this 3d polygon.
Declaration
Objective-C
- (void)setGeometry:(NTPolygonGeometry *)geometry;Parameters
geometryThe new geometry object that defines the location and holes of this 3d polygon.
-
Returns the vertices that define this 3d polygon.
Declaration
Objective-C
- (NTMapPosVector *)getPoses;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:(NTMapPosVector *)poses;Parameters
posesThe new vector of map positions that define this 3d polygon.
-
Returns the holes of the 3d polygon.
Declaration
Objective-C
- (NTMapPosVectorVector *)getHoles;Return Value
The list of holes of the 3d polygon.
-
Sets the holes of the 3d polygon.
Declaration
Objective-C
- (void)setHoles:(NTMapPosVectorVector *)holes;Parameters
holesThe list of holes of the 3d polygon.
-
Returns the height of this 3d polygon.
Declaration
Objective-C
- (float)getHeight;Return Value
The height of this 3d polygon in meters.
-
Sets the height for this 3d polygon.
Declaration
Objective-C
- (void)setHeight:(float)height;Parameters
heightThe new height for this 3d polygon in meters.
-
Returns the style of this 3d polygon.
Declaration
Objective-C
- (NTPolygon3DStyle *)getStyle;Return Value
The style that defines what this 3d polygon looks like.
-
Sets the style for this 3d polygon.
Declaration
Objective-C
- (void)setStyle:(NTPolygon3DStyle *)style;Parameters
styleThe new style that defines what this 3d polygon looks like.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTPolygon3D Class Reference