Class NMLModelStyleBuilder


public class NMLModelStyleBuilder extends BillboardStyleBuilder
A builder class for NMLModelStyle.
  • Constructor Details

    • NMLModelStyleBuilder

      public NMLModelStyleBuilder()
      Constructs a NMLModelStyleBuilder object with all parameters set to defaults.
  • Method Details

    • getOrientationMode

      public int getOrientationMode()
      Returns the orientation mode of the model.
      Returns:
      The orientation mode of the model.
    • setOrientationMode

      public void setOrientationMode(int orientationMode)
      Sets the orientation mode for the model. The default is BillboardOrientation::BILLBOARD_ORIENTATION_GROUND.
      Parameters:
      orientationMode - The new orientation mode for the model.
    • getScalingMode

      public int getScalingMode()
      Returns the scaling mode of the model.
      Returns:
      The scaling mode of the model.
    • setScalingMode

      public void setScalingMode(int scalingMode)
      Sets the scaling mode for the model. The default is BillboardScaling::BILLBOARD_SCALING_WORLD_SIZE.
      Parameters:
      scalingMode - The new scaling mode for the model.
    • getModelAsset

      public BinaryData getModelAsset()
      Returns the model asset of the object.
      Returns:
      The model asset of the object.
    • setModelAsset

      public void setModelAsset(BinaryData modelAsset)
      Sets the model asset that will be used for drawing the object. By default a sphere asset is used.
      Parameters:
      modelAsset - The new model assets for the object.
    • buildStyle

      public NMLModelStyle buildStyle()
      Builds a new instance of the NMLModelStyle object using previously set parameters.
      Returns:
      A new NMLModelStyle object.