java.lang.Object | |||
↳ | com.carto.styles.StyleBuilder | ||
↳ | com.carto.styles.BillboardStyleBuilder | ||
↳ | com.carto.styles.NMLModelStyleBuilder |
A builder class for NMLModelStyle.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs a NMLModelStyleBuilder object with all parameters set to defaults.
Builds a new instance of the NMLModelStyle object using previously set parameters.
Returns the model asset of the object.
Returns the orientation mode of the model.
Returns the scaling mode of the model.
Sets the model asset that will be used for drawing the object. By default a sphere asset is used.
modelAsset | The new model assets for the object. |
---|
Sets the orientation mode for the model. The default is BillboardOrientation::BILLBOARD_ORIENTATION_GROUND.
orientationMode | The new orientation mode for the model. |
---|
Sets the scaling mode for the model. The default is BillboardScaling::BILLBOARD_SCALING_WORLD_SIZE.
scalingMode | The new scaling mode for the model. |
---|