Package com.massifmaps.styles
Class NMLModelStyleBuilder
java.lang.Object
com.massifmaps.styles.StyleBuilder
com.massifmaps.styles.BillboardStyleBuilder
com.massifmaps.styles.NMLModelStyleBuilder
A builder class for NMLModelStyle.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a NMLModelStyleBuilder object with all parameters set to defaults. -
Method Summary
Modifier and TypeMethodDescriptionBuilds a new instance of the NMLModelStyle object using previously set parameters.Returns the model asset of the object.intReturns the orientation mode of the model.intReturns the scaling mode of the model.voidsetModelAsset(BinaryData modelAsset) Sets the model asset that will be used for drawing the object.voidsetOrientationMode(int orientationMode) Sets the orientation mode for the model.voidsetScalingMode(int scalingMode) Sets the scaling mode for the model.Methods inherited from class com.massifmaps.styles.BillboardStyleBuilder
getAnimationStyle, getAttachAnchorPointX, getAttachAnchorPointY, getHorizontalOffset, getPlacementPriority, getVerticalOffset, isCausesOverlap, isHideIfOverlapped, isScaleWithDPI, setAnimationStyle, setAttachAnchorPoint, setAttachAnchorPointX, setAttachAnchorPointY, setCausesOverlap, setHideIfOverlapped, setHorizontalOffset, setPlacementPriority, setScaleWithDPI, setVerticalOffsetMethods inherited from class com.massifmaps.styles.StyleBuilder
equals, getColor, hashCode, setColor
-
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
Returns the model asset of the object.- Returns:
- The model asset of the object.
-
setModelAsset
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
Builds a new instance of the NMLModelStyle object using previously set parameters.- Returns:
- A new NMLModelStyle object.
-