SplineCustomGui Class Reference

#include <customgui_splinecontrol.h>

Inheritance diagram for SplineCustomGui:

详细描述

Spline GUI ( CUSTOMGUI_SPLINE ) for SplineData .
Here are the settings: SplineCustomGuiSettings

公共成员函数

void  SetMessageFunctions ( SplineControlMessages *pFuncs)
SplineData GetSplineData (void)
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, 向量 col= 向量 (0.0, 0.0, 0.0))
void  GetScreenPosition (const 向量 &v, Int32 &x, Int32 &y) const
void  GetValue (const Int32 x, const Int32 y, 向量 &v) const
Bool   命令 ( Int32 id, const BaseContainer &msg)
-  Public Member Functions inherited from BaseCustomGui< 1009059 >
Int32   GetWidth ()
Int32   GetHeight ()
void  Redraw ()
Bool   LayoutChanged ()
Bool   激活 ()
Bool   SetDefaultForResEdit ()
Bool   SetData (const TriState < GeData > &tristate)
TriState < GeData GetData ()
void  SetLayoutMode ( Int32 mode)
Int32   GetLayoutMode ()
Bool   SupportLayoutSwitch ()
-  Public Member Functions inherited from _BaseCustomGui
Int32   GetWidth ( Int32 plugid)
Int32   GetHeight ( Int32 plugid)
void  Redraw ( Int32 plugid)
Bool   LayoutChanged ( Int32 plugid)
Bool   激活 ( 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 ()

构造函数 & 析构函数文档编制

◆  SplineCustomGui()

SplineCustomGui () private

◆  ~SplineCustomGui()

~ SplineCustomGui () private

成员函数文档编制

◆  SetMessageFunctions()

void SetMessageFunctions ( SplineControlMessages pFuncs )

Registers a set of message functions.

参数
[in] pFuncs The message functions.

◆  GetSplineData()

SplineData * GetSplineData ( void  )

Gets the spline data.

返回
The spline data. The spline GUI owns the pointed data.

◆  SetSpline()

Bool SetSpline ( SplineData pData )

Sets the spline data.

参数
[in] pData The spline data to set.
返回
true if successful, otherwise false .

◆  SetLabelText()

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  
)

Sets the label text.

参数
[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()

void SetCustomColor ( Bool   bSet = false ,
向量   col = Vector(0.0, 0.0, 0.0)  
)

Sets the custom color for the curve.

参数
[in] bSet Pass true if a custom color should be used.
[in] col The custom color.

◆  GetScreenPosition()

void GetScreenPosition ( const 向量 v ,
Int32 x ,
Int32 y  
) const

Gets the screen position for a spline value.

参数
[in] v The spline value.
[out] x Assigned the screen X position.
[out] y Assigned the screen Y position.

◆  GetValue()

void GetValue ( const Int32   x ,
const Int32   y ,
向量 v  
) const

Gets the spline value for a screen position.

参数
[in] x The screen X position.
[in] y The screen Y position.
[out] v Assigned the spline value.

◆  Command()

Bool 命令 ( Int32   id ,
const BaseContainer msg  
)

Triggers internal spline GUI commands. 范例:

// Prepare the command message container // We will make the SplineCustomGui frame the selected points BaseContainer splineMsg; splineMsg. SetInt32 (0, IDC_SPLINE_FRAME_SEL );

// Get pointer to the SplineCustomGui SplineCustomGui * pGui = ( SplineCustomGui *)FindCustomGui(MYSPLINE, CUSTOMDATATYPE_SPLINE );

// Talk the SplineCustomGui into performing a command from its popup menu if (pGui) pGui-> 命令 ( IDC_SPLINE_PRESET_POPUPMENU , splineMsg);

参数
[in] id The command ID: IDC_SPLINE_PRESET_POPUPMENU .
[in] msg The command message container: IDC_SPLINE
返回
true if the command was successfully sent, otherwise false .
SplineCustomGui
定义: customgui_splinecontrol.h:632
BaseContainer::SetInt32
void SetInt32(Int32 id, Int32 l)
定义: c4d_basecontainer.h:505
IDC_SPLINE_FRAME_SEL
#define IDC_SPLINE_FRAME_SEL
Command container value for the Spline GUI Frame Sel menu.
定义: customgui_splinecontrol.h:60
SplineCustomGui::Command
Bool Command(Int32 id, const BaseContainer &msg)
IDC_SPLINE_PRESET_POPUPMENU
#define IDC_SPLINE_PRESET_POPUPMENU
定义: customgui_splinecontrol.h:53
CUSTOMDATATYPE_SPLINE
#define CUSTOMDATATYPE_SPLINE
Spline data type ID.
定义: customgui_splinecontrol.h:23
BaseContainer
定义: c4d_basecontainer.h:46