Lets implement custom CA brushes. Normally it is only needed to implement MouseInputStart(), MouseInputDrag() and MouseInputEnd() functions, since the rest have default implementations in BrushBase.
There are other helper functions in BrushBase as well, available through the m_pBrushBase pointer.
|
| BrushToolData () |
|
| ~BrushToolData () |
|
virtual const String | GetResourceSymbol ()=0 |
|
virtual Int32 | GetToolPluginId ()=0 |
|
Bool | InteractiveModeling_Restart (BaseDocument *doc) |
|
virtual Bool | TranslateDescID (BaseDocument *doc, BaseContainer &data, const DescID &id, DescID &res_id, C4DAtom *&res_at) |
|
virtual Bool | KeyboardInput (BaseDocument *doc, BaseContainer &data, BaseDraw *bd, EditorWindow *win, const BaseContainer &msg) |
|
virtual TOOLDRAW | Draw (BaseDocument *doc, BaseContainer &data, BaseDraw *bd, BaseDrawHelp *bh, BaseThread *bt, TOOLDRAWFLAGS flags) |
|
virtual Bool | DisplayControl (BaseDocument *doc, BaseObject *op, BaseObject *chainstart, BaseDraw *bd, BaseDrawHelp *bh, ControlDisplayStruct &cds) const |
|
virtual Bool | InitDisplayControl (BaseDocument *doc, BaseContainer &data, BaseDraw *bd, const AtomArray *active) |
|
virtual void | FreeDisplayControl (void) |
|
virtual SubDialog * | AllocSubDialog (BaseContainer *bc) |
|
virtual Bool | DoCommand (ModelingCommandData &mdat) |
|
virtual Int32 | GetState (BaseDocument *doc) |
|
virtual Bool | GetDParameter (BaseDocument *doc, BaseContainer &data, const DescID &id, GeData &t_data, DESCFLAGS_GET &flags) |
|
| BaseData () |
|
virtual | ~BaseData (void) |
|
void | Destructor (void) |
|
|
virtual Bool | InitTool (BaseDocument *doc, BaseContainer &data, BaseThread *bt) |
|
virtual void | FreeTool (BaseDocument *doc, BaseContainer &data) |
|
virtual void | InitDefaultSettings (BaseDocument *doc, BaseContainer &data) |
|
virtual Bool | GetDEnabling (BaseDocument *doc, BaseContainer &data, const DescID &id, const GeData &t_data, DESCFLAGS_ENABLE flags, const BaseContainer *itemdesc) |
|
virtual Bool | SetDParameter (BaseDocument *doc, BaseContainer &data, const DescID &id, const GeData &t_data, DESCFLAGS_SET &flags) |
|
virtual Bool | GetDDescription (BaseDocument *doc, BaseContainer &data, Description *description, DESCFLAGS_DESC &flags) |
|
virtual Bool | Message (BaseDocument *doc, BaseContainer &data, Int32 type, void *t_data) |
|
virtual Bool | GetCursorInfo (BaseDocument *doc, BaseContainer &data, BaseDraw *bd, Float x, Float y, BaseContainer &bc) |
|
virtual Bool | MouseInput (BaseDocument *doc, BaseContainer &data, BaseDraw *bd, EditorWindow *win, const BaseContainer &msg) |
|