HiddenLineSettings
- class Communicator.Settings.HiddenLineSettings()
This class controls settings used in hidden line rendering. Settings get applied when
View.setDrawMode(DrawMode.HiddenLine)
is called.
Methods
Methods
getBackgroundColor
- HiddenLineSettings.getBackgroundColor()
Gets the colors used for the background in hidden line rendering.
- Return type
- Returns
The background colors used for hidden line.
getObscuredLineColor
getObscuredLineOpacity
- HiddenLineSettings.getObscuredLineOpacity()
Returns the opacity used for rendering obscured lines.
- Return type
number
- Returns
The opacity used for obscured lines.
getObscuredLineTransparency
- HiddenLineSettings.getObscuredLineTransparency()
- Deprecated
use
getObscuredLineOpacity
instead.- Return type
number
getVisibleLineColor
getVisibleLineOpacity
- HiddenLineSettings.getVisibleLineOpacity()
Gets the opacity used for rendering visible lines.
- Return type
number
- Returns
The opacity used for visible lines.
getVisibleLineTransparency
- HiddenLineSettings.getVisibleLineTransparency()
- Deprecated
use
getVisibleLineOpacity
instead.- Return type
number
setBackgroundColor
- HiddenLineSettings.setBackgroundColor([top[, bottom]])
Sets the background color in hidden line rendering to a gradient interpolating from the top to bottom color. For a solid color, the top and bottom color should have the same values. To enable a transparent background, pass null to the parameters of this function.
setObscuredLineColor
setObscuredLineOpacity
- HiddenLineSettings.setObscuredLineOpacity(opacity)
Sets the opacity used for rendering obscured lines.
- Arguments
opacity (
number()
) – The opacity used for obscured lines.
- Return type
void
setObscuredLineTransparency
- HiddenLineSettings.setObscuredLineTransparency(transparency)
- Deprecated
use
setObscuredLineOpacity
instead.- Arguments
transparency (
number()
) –
- Return type
void
setVisibleLineColor
setVisibleLineOpacity
- HiddenLineSettings.setVisibleLineOpacity(opacity)
Sets the opacity used for rendering visible lines.
- Arguments
opacity (
number()
) – The opacity used for visible lines.
- Return type
void
setVisibleLineTransparency
- HiddenLineSettings.setVisibleLineTransparency(transparency)
- Deprecated
use
setVisibleLineOpacity
instead.- Arguments
transparency (
number()
) –
- Return type
void