MSFNMLModel
Objective-C
@interface MSFNMLModel : MSFBillboard
Swift
class MSFNMLModel : MSFBillboard
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:(MSFBillboard *)baseBillboard style:(MSFNMLModelStyle *)style;Swift
init!(baseBillboard: MSFBillboard!, style: MSFNMLModelStyle!)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:(MSFGeometry *)geometry style:(MSFNMLModelStyle *)style;Swift
init!(geometry: MSFGeometry!, style: MSFNMLModelStyle!)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:(MSFMapPos *)pos style:(MSFNMLModelStyle *)style;Swift
init!(pos: MSFMapPos!, style: MSFNMLModelStyle!)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;Swift
func getRotationAngle() -> FloatReturn 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;Swift
func setRotationAngle(_ angle: Float)Parameters
angleThe new rotation angle in degrees. @deprecated
-
Returns the scale of this model.
Declaration
Objective-C
- (float)getScale;Swift
func getScale() -> FloatReturn Value
model The relative scale.
-
Sets the scale of this model. The default is 1.
Declaration
Objective-C
- (void)setScale:(float)scale;Swift
func setScale(_ scale: Float)Parameters
scaleThe relative scale of this model.
-
Returns the style of this object.
Return Value
The style that defines what this object looks like.
-
Sets a style for this object.
Declaration
Objective-C
- (void)setStyle:(MSFNMLModelStyle *)style;Swift
func setStyle(_ style: MSFNMLModelStyle!)Parameters
styleThe new style that defines what this object looks like.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()