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

    geometry

    The geometry object that defines the location and holes of this 3d polygon.

    style

    The style that defines what this 3d polygon looks like.

    height

    The 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

    poses

    The vector of map positions that defines the location of this 3d polygon.

    style

    The style that defines what this 3d polygon looks like.

    height

    The 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

    poses

    The vector of map positions that defines the location of this 3d polygon.

    holes

    The vector of holes that defines the locations of holes of this 3d polygon.

    style

    The style that defines what this 3d polygon looks like.

    height

    The 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

    geometry

    The 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

    poses

    The 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

    holes

    The 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

    height

    The 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

    style

    The new style that defines what this 3d polygon looks like.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;