public class

NMLModelStyleBuilder

extends BillboardStyleBuilder
java.lang.Object
   ↳ com.carto.styles.StyleBuilder
     ↳ com.carto.styles.BillboardStyleBuilder
       ↳ com.carto.styles.NMLModelStyleBuilder

Class Overview

A builder class for NMLModelStyle.

Summary

Public Constructors
NMLModelStyleBuilder()
Constructs a NMLModelStyleBuilder object with all parameters set to defaults.
Public Methods
NMLModelStyle buildStyle()
Builds a new instance of the NMLModelStyle object using previously set parameters.
synchronized void delete()
BinaryData getModelAsset()
Returns the model asset of the object.
BillboardOrientation getOrientationMode()
Returns the orientation mode of the model.
BillboardScaling getScalingMode()
Returns the scaling mode of the model.
void setModelAsset(BinaryData modelAsset)
Sets the model asset that will be used for drawing the object.
void setOrientationMode(BillboardOrientation orientationMode)
Sets the orientation mode for the model.
void setScalingMode(BillboardScaling scalingMode)
Sets the scaling mode for the model.
[Expand]
Inherited Methods
From class com.carto.styles.BillboardStyleBuilder
From class com.carto.styles.StyleBuilder
From class java.lang.Object

Public Constructors

public NMLModelStyleBuilder ()

Constructs a NMLModelStyleBuilder object with all parameters set to defaults.

Public Methods

public NMLModelStyle buildStyle ()

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

Returns
  • A new NMLModelStyle object.

public synchronized void delete ()

public BinaryData getModelAsset ()

Returns the model asset of the object.

Returns
  • The model asset of the object.

public BillboardOrientation getOrientationMode ()

Returns the orientation mode of the model.

Returns
  • The orientation mode of the model.

public BillboardScaling getScalingMode ()

Returns the scaling mode of the model.

Returns
  • The scaling mode of the model.

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.

public void setOrientationMode (BillboardOrientation orientationMode)

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

Parameters
orientationMode The new orientation mode for the model.

public void setScalingMode (BillboardScaling 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.