Class ColorScaleBar
ColorScaleBar. For Covering mode.
public class ColorScaleBar : IDisplayee, IExpandToBox3d
- Inheritance
-
ColorScaleBar
- Implements
- Inherited Members
- Extension Methods
Constructors
ColorScaleBar(double, double, Func<double, Vec3d>, string, string)
Initializes a new instance of the ColorScaleBar class.
public ColorScaleBar(double floor, double ceiling, Func<double, Vec3d> rgbFunc, string tag, string unit)
Parameters
floor
doubleThe minimum value for the color scale.
ceiling
doubleThe maximum value for the color scale.
rgbFunc
Func<double, Vec3d>The function that converts a value to an RGB color.
tag
stringThe tag text for the color scale bar.
unit
stringThe unit text for the color scale values.
Properties
Ceiling
Gets or sets the maximum value for the color scale.
public double Ceiling { get; set; }
Property Value
Floor
Gets or sets the minimum value for the color scale.
public double Floor { get; set; }
Property Value
LengthW
Gets the width length of the color scale bar.
public static int LengthW { get; }
Property Value
OffsetH
Gets the vertical offset of the color scale bar.
public static double OffsetH { get; }
Property Value
OffsetW
Gets the horizontal offset of the color scale bar.
public static double OffsetW { get; }
Property Value
RgbFunc
Gets or sets the function that converts a value to an RGB color.
public Func<double, Vec3d> RgbFunc { get; set; }
Property Value
Tag
Gets or sets the tag text for the color scale bar.
public string Tag { get; set; }
Property Value
Unit
Gets or sets the unit text for the color scale values.
public string Unit { get; set; }
Property Value
Methods
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bind
BindBind with DispEngine. See Bind.
Display(Bind, double, double, Func<double, Vec3d>, string, string)
Displays the color scale bar on the specified binding context.
public static void Display(Bind bind, double floor, double ceiling, Func<double, Vec3d> rgbFunc, string tag, string unit)
Parameters
bind
BindThe binding context to display on.
floor
doubleThe minimum value for the color scale.
ceiling
doubleThe maximum value for the color scale.
rgbFunc
Func<double, Vec3d>The function that converts a value to an RGB color.
tag
stringThe tag text for the color scale bar.
unit
stringThe unit text for the color scale values.
ExpandToBox3d(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dst
Box3dDestination box