MSFNMLModelStyleBuilder

Objective-C


@interface MSFNMLModelStyleBuilder : MSFBillboardStyleBuilder

Swift

class MSFNMLModelStyleBuilder : MSFBillboardStyleBuilder

A builder class for NMLModelStyle.

  • Constructs a NMLModelStyleBuilder object with all parameters set to defaults.

    Declaration

    Objective-C

    - (id)init;

    Swift

    init!()
  • Returns the orientation mode of the model.

    Declaration

    Objective-C

    - (enum MSFBillboardOrientation)getOrientationMode;

    Swift

    func getOrientationMode() -> MSFBillboardOrientation

    Return Value

    The orientation mode of the model.

  • Sets the orientation mode for the model. The default is BillboardOrientation::BILLBOARD_ORIENTATION_GROUND.

    Declaration

    Objective-C

    - (void)setOrientationMode:(enum MSFBillboardOrientation)orientationMode;

    Swift

    func setOrientationMode(_ orientationMode: MSFBillboardOrientation)

    Parameters

    orientationMode

    The new orientation mode for the model.

  • Returns the scaling mode of the model.

    Declaration

    Objective-C

    - (enum MSFBillboardScaling)getScalingMode;

    Swift

    func getScalingMode() -> MSFBillboardScaling

    Return Value

    The scaling mode of the model.

  • Sets the scaling mode for the model. The default is BillboardScaling::BILLBOARD_SCALING_WORLD_SIZE.

    Declaration

    Objective-C

    - (void)setScalingMode:(enum MSFBillboardScaling)scalingMode;

    Swift

    func setScalingMode(_ scalingMode: MSFBillboardScaling)

    Parameters

    scalingMode

    The new scaling mode for the model.

  • Returns the model asset of the object.

    Declaration

    Objective-C

    - (MSFBinaryData *)getModelAsset;

    Swift

    func getModelAsset() -> MSFBinaryData!

    Return Value

    The model asset of the object.

  • Sets the model asset that will be used for drawing the object. By default a sphere asset is used.

    Declaration

    Objective-C

    - (void)setModelAsset:(MSFBinaryData *)modelAsset;

    Swift

    func setModelAsset(_ modelAsset: MSFBinaryData!)

    Parameters

    modelAsset

    The new model assets for the object.

  • Builds a new instance of the NMLModelStyle object using previously set parameters.

    Declaration

    Objective-C

    - (MSFNMLModelStyle *)buildStyle;

    Swift

    func buildStyle() -> MSFNMLModelStyle!

    Return Value

    A new NMLModelStyle object.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()