NTNMLModel


@interface NTNMLModel : NTBillboard

A 3D model that can be displayed on the map.

NML models can be created from Collada files directly and placed anywhere on the map or converted from KMZ files. NML models are optimized for fast loading and rendering.

  • Constructs a NMLModel object with the specified style and attaches it to a billboard element.

    Declaration

    Objective-C

    - (id)initWithBaseBillboard:(NTBillboard *)baseBillboard
                          style:(NTNMLModelStyle *)style;

    Parameters

    baseBillboard

    The billboard this model will be attached to.

    style

    The style for this model.

  • Constructs a NMLModel object from a geometry object and a source model.

    Declaration

    Objective-C

    - (id)initWithGeometry:(NTGeometry *)geometry style:(NTNMLModelStyle *)style;

    Parameters

    geometry

    The geometry object that defines the location of this model.

    style

    The style for this model.

  • Constructs a NMLModel object from a map position and a source model.

    Declaration

    Objective-C

    - (id)initWithPos:(NTMapPos *)pos style:(NTNMLModelStyle *)style;

    Parameters

    pos

    The map position that defines the location of this model.

    style

    The style for this model.

  • Returns the rotation angle of this model. This is deprecated. Use getRotation instead.

    Declaration

    Objective-C

    - (float)getRotationAngle;

    Return Value

    The rotation angle of this model in degrees. @deprecated

  • Sets the rotation angle of this model. This is deprecated. Use setRotation instead.

    Declaration

    Objective-C

    - (void)setRotationAngle:(float)angle;

    Parameters

    angle

    The new rotation angle in degrees. @deprecated

  • Returns the rotation axis of this model. If rotation angle is 0, then the axis is irrelevant.

    Declaration

    Objective-C

    - (NTMapVec *)getRotationAxis;

    Return Value

    The rotation axis vector.

  • Sets the rotation axis of this model.

    Declaration

    Objective-C

    - (void)setRotationAxis:(NTMapVec *)axis;

    Parameters

    axis

    The new axis of rotation.

  • Sets the rotation of this model using an axis and an angle.

    Declaration

    Objective-C

    - (void)setRotation:(NTMapVec *)axis angle:(float)angle;

    Parameters

    axis

    The axis of rotation.

    angle

    The rotation angle in degrees.

  • Returns the scale of this model.

    Declaration

    Objective-C

    - (float)getScale;

    Return Value

    model The relative scale.

  • Sets the scale of this model. The default is 1.

    Declaration

    Objective-C

    - (void)setScale:(float)scale;

    Parameters

    scale

    The relative scale of this model.

  • Returns the style of this object.

    Declaration

    Objective-C

    - (NTNMLModelStyle *)getStyle;

    Return Value

    The style that defines what this object looks like.

  • Sets a style for this object.

    Declaration

    Objective-C

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

    Parameters

    style

    The new style that defines what this object looks like.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;