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
baseBillboardThe billboard this model will be attached to.
styleThe 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
geometryThe geometry object that defines the location of this model.
styleThe 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
posThe map position that defines the location of this model.
styleThe 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
angleThe 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
axisThe 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
axisThe axis of rotation.
angleThe 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
scaleThe 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
styleThe new style that defines what this object looks like.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTNMLModel Class Reference