8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SObject.h"
12namespace rsh::ScriptBinding
244Q_DECLARE_METATYPE(SColorGradient::_SColorGradientDummy);
The SColorGradient class allow the user to edit a color gradient. You cannot create a new color gradi...
Definition: SColorGradient.h:23
String toString()
Get the type of the variable.
Array SetCursorPos(Number Index, Number Position)
To set position of an indexed peg.
Array SetNbCursor(Number NbCursor)
To set the number of cursors of the color gradient You can set from 2 cursors to GetNbCursorMax() cur...
Array GetCursorInfo(Number Index)
To get cursor information.
SetMagnification(Number magnification)
You can set the magnification (only for polyline inspection)
Array GetColUndefined()
To get the undefined color of the color gradient.
DisplayFlag
Available options for the display of the gradient palette Use SColorGradient.HIDE.
Definition: SColorGradient.h:36
Array DeleteCursor(Number Index)
Remove a peg of the color gradient.
Array SetColBefore(Number Index, Number Red, Number Green, Number Blue, Number Alpha=-1)
To set the color of a cursor before the value of the cursor.
SetDisplayOption(DisplayFlag DisplayPalette)
You can choose how the palette will be displayed.
Array GetColorFromValue(Number value)
To color from a specific value in the gradient.
SetInterpolation(Interpolation Method)
To define how the color is interpolated between 2 cursors.
Array SetColAfter(Number Index, Number Red, Number Green, Number Blue, Number Alpha=-1)
To set the color of a cursor after the value of the cursor.
Array GetRange()
To get the maximal and minimal value of the color gradient.
SetColUndefined(Number Red, Number Green, Number Blue, Number Alpha=-1)
To set the undefined color of the color gradient.
Interpolation
Interpolation method to define how the color is interpolate between two cursors.
Definition: SColorGradient.h:48
@ HSLLongest
Definition: SColorGradient.h:53
@ HSLShortest
Definition: SColorGradient.h:52
@ HSLCounterClockwise
Definition: SColorGradient.h:50
@ HSLClockwise
Definition: SColorGradient.h:51
@ Linear
Definition: SColorGradient.h:49
Array SetRange(Number MinValue, Number MaxValue)
To update the min and max values of the color gradient, and delete all invalid pegs.
Array AddCursor(Number Position)
Add a new cursor in the color gradient.
This class is an abstract class, you can use these function in its derived classes.
Definition: SObject.h:35