#include <customgui_splinecontrol.h>
|
void | SetMessageFunctions (SplineControlMessages *pFuncs) |
|
SplineData * | GetSplineData () |
|
Bool | SetSpline (SplineData *pData) |
|
void | SetLabelText (maxon::String *strXMin=nullptr, maxon::String *strXMax=nullptr, maxon::String *strYMin=nullptr, maxon::String *strYMax=nullptr, maxon::String *strX=nullptr, maxon::String *strY=nullptr) |
|
void | SetCustomColor (Bool bSet=false, Vector col=Vector(0.0, 0.0, 0.0)) |
|
void | GetScreenPosition (const Vector &v, Int32 &x, Int32 &y) const |
|
void | GetValue (const Int32 x, const Int32 y, Vector &v) const |
|
Bool | Command (Int32 id, const BaseContainer &msg) |
|
Int32 | GetWidth () |
|
Int32 | GetHeight () |
|
void | Redraw () |
|
Bool | LayoutChanged () |
|
Bool | Activate () |
|
Bool | SetDefaultForResEdit () |
|
Bool | SetData (const TriState< GeData > &tristate) |
|
TriState< GeData > | GetData () |
|
void | SetLayoutMode (Int32 mode) |
|
Int32 | GetLayoutMode () |
|
Bool | SupportLayoutSwitch () |
|
Int32 | GetWidth (Int32 plugid) |
|
Int32 | GetHeight (Int32 plugid) |
|
void | Redraw (Int32 plugid) |
|
Bool | LayoutChanged (Int32 plugid) |
|
Bool | Activate (Int32 plugid) |
|
Bool | SetDefaultForResEdit (Int32 plugid) |
|
Bool | SetData (Int32 plugid, const TriState< GeData > &tristate) |
|
TriState< GeData > | GetData (Int32 plugid) |
|
void | SetLayoutMode (Int32 plugid, Int32 mode) |
|
Int32 | GetLayoutMode (Int32 plugid) |
|
Bool | SupportLayoutSwitch (Int32 plugid) |
|
◆ SplineCustomGui()
◆ ~SplineCustomGui()
◆ SetMessageFunctions()
Registers a set of message functions.
- Parameters
-
[in] | pFuncs | The message functions. |
◆ GetSplineData()
Gets the spline data.
- Returns
- The spline data. The spline GUI owns the pointed data.
◆ SetSpline()
Sets the spline data.
- Parameters
-
[in] | pData | The spline data to set. |
- Returns
- true if successful, otherwise false.
◆ SetLabelText()
Sets the label text.
- Parameters
-
[in] | strXMin | The minimum X value text to set, or nullptr (default). |
[in] | strXMax | The maximum X value text to set, or nullptr (default). |
[in] | strYMin | The minimum Y value text to set, or nullptr (default). |
[in] | strYMax | The maximum Y value text to set, or nullptr (default). |
[in] | strX | The new X text, or nullptr (default). |
[in] | strY | The new Y text, or nullptr (default). |
◆ SetCustomColor()
Sets the custom color for the curve.
- Parameters
-
[in] | bSet | Pass true if a custom color should be used. |
[in] | col | The custom color. |
◆ GetScreenPosition()
Gets the screen position for a spline value.
- Parameters
-
[in] | v | The spline value. |
[out] | x | Assigned the screen X position. |
[out] | y | Assigned the screen Y position. |
◆ GetValue()
Gets the spline value for a screen position.
- Parameters
-
[in] | x | The screen X position. |
[in] | y | The screen Y position. |
[out] | v | Assigned the spline value. |
◆ Command()
Triggers internal spline GUI commands. Example:
if (pGui)
Definition: c4d_basecontainer.h:48
void SetInt32(Int32 id, Int32 l)
Definition: c4d_basecontainer.h:587
Definition: customgui_splinecontrol.h:643
Bool Command(Int32 id, const BaseContainer &msg)
#define IDC_SPLINE_PRESET_POPUPMENU
Definition: customgui_splinecontrol.h:56
#define CUSTOMDATATYPE_SPLINE
Spline data type ID.
Definition: customgui_splinecontrol.h:30
#define IDC_SPLINE_FRAME_SEL
Command container value for the Spline GUI Frame Sel menu.
Definition: customgui_splinecontrol.h:63
- Parameters
-
- Returns
- true if the command was successfully sent, otherwise false.