45 #define PRM_MENU_CHOICES (PRM_ChoiceListType)(PRM_CHOICELIST_EXCLUSIVE |\
46 PRM_CHOICELIST_REPLACE)
51 using namespace HDK_Sample;
77 #define PRM_MENU_CHOICES (PRM_ChoiceListType)(PRM_CHOICELIST_EXCLUSIVE |\
78 PRM_CHOICELIST_REPLACE)
93 BM_SceneManager *scene)
99 BM_SceneManager *scene,
const char *cursor)
113 return "MSS_BrushHairLen";
119 uifilename =
"MSS_BrushHairLen.ui";
124 BM_Viewport &viewport)
165 if (!
KEYCMP(
"h.pane.gview.state.sop.brush.p_callback"))
171 if (!
KEYCMP(
"h.pane.gview.state.sop.brush.s_callback"))
214 "SOP_proto_brushhairlen",
void getUIFileName(UT_String &uifilename) const override
~MSS_BrushHairLen() override
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
#define MSS_KEY_PAINT_P_EYEDROP
PI_StateTemplate * sopBrushHairLenState()
#define MSS_KEY_PAINT_S_EYEDROP
int handleKeyTypeEvent(int key, UI_Event *event, BM_Viewport &) override
#define MSS_KEY_BRUSH_P_SMOOTH
const unsigned PI_NETMASK_SOP
PRM_API const PRM_Type PRM_ORD
void newModelState(BM_ResourceManager *m)
#define MSS_KEY_BRUSH_P_MAIN
virtual void changed(UI_Object *by, UI_Reason reason=UI_VALUE_CHANGED, UI_DeviceEvent *state=0)
virtual int registerState(PI_StateTemplate *type)
const char * className() const override
The name and type of this class:
MSS_BrushHairLen(JEDI_View &view, PI_StateTemplate &templ, BM_SceneManager *scene, const char *cursor=BM_DEFAULT_CURSOR)
#define MSS_KEY_BRUSH_S_MAIN
static PRM_ChoiceList theLMBMenu
static PRM_Template ourTemplateList[]
SOP_BrushOp menuToBrushOp(const UI_Value &menuvalue) const override
Convert an op menu entry to a brush operation:
UI_Value & getSecondaryVal()
#define MSS_KEY_BRUSH_S_SMOOTH
#define MSS_KEY_BRUSH_P_ERASE
PRM_API PRM_Name PRMlmbName
PRM_API PRM_Name PRMmmbName
#define MSS_KEY_BRUSH_S_ERASE
PRM_API PRM_Default PRMzeroDefaults[]
static PRM_ChoiceList theMMBMenu
UI_Value & getPrimaryVal()
static BM_State * ourConstructor(BM_View &view, PI_StateTemplate &templ, BM_SceneManager *scene)
int handleKeyTypeEvent(int key, UI_Event *event, BM_Viewport &) override
Respond to keyboard events.