NTLine


@interface NTLine : NTVectorElement

A geometric line string that can be displayed on the map.

  • Constructs a Line object from a geometry object and a style.

    Declaration

    Objective-C

    - (id)initWithGeometry:(NTLineGeometry *)geometry style:(NTLineStyle *)style;

    Parameters

    geometry

    The geometry object that defines the location of this line.

    style

    The style that defines what this line looks like.

  • Constructs a Line object from a vector of map positions and a style.

    Declaration

    Objective-C

    - (id)initWithPoses:(NTMapPosVector *)poses style:(NTLineStyle *)style;

    Parameters

    poses

    The vector of map positions that defines the location of this line.

    style

    The style that defines what this line looks like.

  • Undocumented

    Declaration

    Objective-C

    - (NTLineGeometry *)getGeometry;
  • Sets the location for this line.

    Declaration

    Objective-C

    - (void)setGeometry:(NTLineGeometry *)geometry;

    Parameters

    geometry

    The new geometry object that defines the location of this line.

  • Returns the vertices that define this line.

    Declaration

    Objective-C

    - (NTMapPosVector *)getPoses;

    Return Value

    The vector of map positions that defines this line.

  • Sets the vertices that define this line.

    Declaration

    Objective-C

    - (void)setPoses:(NTMapPosVector *)poses;

    Parameters

    poses

    The new vector of map positions that defines this line.

  • Returns the style of this line.

    Declaration

    Objective-C

    - (NTLineStyle *)getStyle;

    Return Value

    The style that defines what this line looks like.

  • Sets the style for this line.

    Declaration

    Objective-C

    - (void)setStyle:(NTLineStyle *)style;

    Parameters

    style

    The new style that defines what this line looks like.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;