VectorSettings
-
class
cee.usg.VectorSettings() Setting for how a vector result should be shown in the model.
You can get the vector settings with the
UnstructGridModel.vectorSettingsproperty.Index
Constructors
Accessors
arrowHeadRelativeLengtharrowHeadRelativeRadiusarrowShaftRelativeRadiusnamescaleFactorscaleModesingleVectorColor
Methods
Constructors
-
cee.usg.VectorSettings.constructor() - VectorSettings():
VectorSettingsReturns:
VectorSettings
Accessors
-
cee.usg.VectorSettings.arrowHeadRelativeLength() - get arrowHeadRelativeLength(): number
The length of the vector arrow head relative to the vector length.
Returns: number
set arrowHeadRelativeLength(headRelativeLength: number): voidParameters
headRelativeLength: numberReturns: void
-
cee.usg.VectorSettings.arrowHeadRelativeRadius() - get arrowHeadRelativeRadius(): number
The radius of the vector arrow head relative to the vector length.
Returns: number
set arrowHeadRelativeRadius(headRelativeRadius: number): voidParameters
headRelativeRadius: numberReturns: void
-
cee.usg.VectorSettings.arrowShaftRelativeRadius() - get arrowShaftRelativeRadius(): number
The radius of the vector arrow shaft relative to the vector length.
Returns: number
set arrowShaftRelativeRadius(shaftRelativeRadius: number): voidParameters
shaftRelativeRadius: numberReturns: void
-
cee.usg.VectorSettings.name() - get name(): string
The name of the vector result
Returns: string
set name(name: string): voidParameters
name: stringReturns: void
-
cee.usg.VectorSettings.scaleFactor() - get scaleFactor(): number
Scaling factor to use on the vector result
Returns: number
-
cee.usg.VectorSettings.scaleMode() - get scaleMode():
ScaleModeScaling mode (absolute or relative) to use use for the vector result
If set to ABSOLUTE_SCALING, the vector result will be multiplied by the scaling factor.
If set to RELATIVE_SCALING, the scaling factor is assumed to be a fraction of the extent of the model bounding box, making the longest vector: boundingBox.extent().length()*scaleFactor
Returns:
ScaleMode
-
cee.usg.VectorSettings.singleVectorColor() - get singleVectorColor():
Color3The color of the vector arrows
Returns:
Color3set singleVectorColor(color:Color3): voidParameters
color:Color3Returns: void
Methods
-
cee.usg.VectorSettings.setScaleFactor() - setScaleFactor(mode:
ScaleMode, scaleFactor: number): voidSet the scaling factor and scaling mode to use on the vector result
If mode is ABSOLUTE_SCALING, the vector result will be multiplied by the scaleFactor.
If mode is RELATIVE_SCALING, the scaleFactor is assumed to be a fraction of the extent of the model bounding box, making the longest vector: boundingBox.extent().length()*scaleFactor
Parameters
mode:
ScaleModescaleFactor: number
Returns: void