#include <sttool.h>


Public Member Functions | |
| a2dDrawLineTool (a2dStToolContr *controller, a2dSLine *templateObject=NULL) | |
| bool | ZoomSave () |
| Is Zooming while the tool is busy Save. | |
| void | SetLineBegin (a2dCanvasObject *begin) |
| defines line begin object for line and polyline drawing tools | |
| void | SetLineEnd (a2dCanvasObject *end) |
| defines line end object for line and polyline drawing tools | |
| a2dCanvasObject * | GetLineBegin () |
| get current line begin object for line and polyline drawing tools. | |
| a2dCanvasObject * | GetLineEnd () |
| get current line end object for line and polyline drawing tools | |
| void | SetEndScaleX (double xs) |
| scaling in X for begin and end objects of lines and polylines | |
| void | SetEndScaleY (double ys) |
| scaling in Y for begin and end objects of lines and polylines | |
| double | GetEndScaleX () |
| get scaling in X for begin and end objects of lines and polylines | |
| double | GetEndScaleY () |
| get scaling in Y for begin and end objects of lines and polylines | |
| void | SetPathType (a2dPATH_END_TYPE pathtype) |
| Set when m_contourwidth != 0 what is the end of the line should be. | |
| a2dPATH_END_TYPE | GetPathType () |
| get when m_contourwidth != 0 what is the end of the line looks like. | |
| a2dSLine * | GetTemplateObject () |
| set template for line object | |
| void | SetTemplateObject (a2dSLine *templateobject) |
| get template for line object | |
Static Public Attributes | |
| static const a2dCommandId | COMID_PushTool_DrawLine |
| push this tool on the tools stack | |
| static const a2dCommandId | COMID_PushTool_DrawLineScaledArrow |
Protected Member Functions | |
| void | OnChar (wxKeyEvent &event) |
| called on key events | |
| void | OnMouseEvent (wxMouseEvent &event) |
| called on mouse events | |
| void | OnDoEvent (a2dCommandProcessorEvent &event) |
| handler for Do event | |
| virtual void | GenerateAnotation () |
| to display a string along with a tool drawing. | |
Protected Attributes | |
| double | m_x1 |
| double | m_y1 |
| double | m_x2 |
| double | m_y2 |
| a2dSmrtPtr< a2dSLine > | m_templateObject |
| object to clone to use as start | |
Cursor keys to shift object.
Or Spacebar to end line.
Definition at line 1300 of file sttool.h.
| bool a2dDrawLineTool::ZoomSave | ( | ) | [inline, virtual] |
Is Zooming while the tool is busy Save.
If so, the active tool will redraw itself in the new Mapping state
Implements a2dBaseTool.
| a2dCanvasObject* a2dDrawLineTool::GetLineBegin | ( | ) | [inline] |
| a2dCanvasObject* a2dDrawLineTool::GetLineEnd | ( | ) | [inline] |