#include <sttool.h>


Public Member Functions | |
| a2dDrawVPathTool (a2dStToolContr *controller, a2dVectorPath *templateObject=NULL) | |
| constructor | |
| bool | ZoomSave () |
| save to zoom while drawing | |
| void | SetMode (int mode) |
| mode of drawing, can be swicthed with Tab key. | |
Static Public Attributes | |
| static const a2dCommandId | COMID_PushTool_DrawVPath |
| push this tool on the tools stack | |
Protected Member Functions | |
| void | OnIdle (wxIdleEvent &event) |
| handler for idle events | |
| void | OnChar (wxKeyEvent &event) |
| called on key events | |
| void | OnMouseEvent (wxMouseEvent &event) |
| called on mouse events | |
| void | OnUndoEvent (a2dCommandProcessorEvent &event) |
| handler for Undo event | |
| void | OnRedoEvent (a2dCommandProcessorEvent &event) |
| void | AddSegment (a2dVpathSegment *segment) |
| virtual wxString | GetCommandGroupName () |
| return the command group name for commands of a derived class | |
Protected Attributes | |
| a2dSmrtPtr< a2dVectorPath > | m_templateObject |
| object to clone to use as start | |
| a2dSmrtPtr< a2dPolylineL > | m_controlPoints |
| double | m_prev_x |
| previous x | |
| double | m_prev_y |
| previous y | |
| double | m_contrmid_x |
| previous x | |
| double | m_contrmid_y |
| previous y | |
| bool | m_controlSet |
| bool | m_endSegment |
| bool | m_bezier |
| a2dVpath * | m_vpath |
| points sofar | |
| a2dVpathSegment * | m_segment |
| last point | |
| a2dVpathSegment * | m_segmentPrev |
| bool | m_reverse |
| end to begin wire. | |
Space bar or Double click to end drawing.
Cursor keys to shift object.
Cursor keys + control to shift point.
Right Click to zoom.
Definition at line 2184 of file sttool.h.
| a2dDrawVPathTool::a2dDrawVPathTool | ( | a2dStToolContr * | controller, | |
| a2dVectorPath * | templateObject = NULL | |||
| ) |
constructor
| controller | tool controller one which this tool is pushed. | |
| templateObject | when not NULL, this object is cloned and used for the new drawn object. |
Definition at line 7262 of file sttool.cpp.
| virtual wxString a2dDrawVPathTool::GetCommandGroupName | ( | ) | [inline, protected, virtual] |
return the command group name for commands of a derived class
this defaults to the class name
Reimplemented from a2dBaseTool.