#include <customgui_gradient.h>
◆ GradientCustomGui()
◆ ~GradientCustomGui()
◆ GetGradient()
Gets the gradient data.
- Returns
- The gradient data.
◆ SetGradient()
Sets the gradient data.
- Warning
- Unlike SetData() it sends a parent GUI message, causing parent GUI elements (e.g. a shader or dialog that contains the gradient custom GUI) to update automatically.
- Note
- It is recommended to call SetData() instead, because SetGradient() just sets grad instance and if there is an alpha gradient, it will be destroyed.
With SetData() it needs some more lines of code but alpha gradients will be preserved.
- Parameters
-
[in] | grad | The gradient data to set. The caller owns the pointed gradient data. |
- Returns
- true if successful, otherwise false.
◆ GetActiveKnots()
Gets the active knots or biassses control indexes.
- Parameters
-
[in] | bias | Set to true to get the active biasses index, otherwise it will get the active knots indexes. |
- Returns
- The active knot index list.
◆ SetActiveKnots()
Sets the active knots or biasses controls.
- Parameters
-
[in] | activeIndexList | The knots or biasses index list to set. |
[in] | bias | Pass true to select biasses, otherwise knots. |