#include <sttool2.h>


Public Member Functions | |
| a2dDrawPolylineLToolFast (a2dStToolContr *controller, a2dPolylineL *templateObject=NULL) | |
| constructor | |
| 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 linres and polylines | |
| void | SetEndScaleY (double ys) |
| scaling in Y for begin and end objects of linres 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. | |
Static Public Attributes | |
| static const a2dCommandId | COMID_PushTool_DrawPolylineLFast |
| push this tool on the tools stack | |
| static const a2dCommandId | COMID_PushTool_DrawPolylineLFast_Splined |
| push this tool on the tools stack | |
Protected Member Functions | |
| bool | CreateToolObjects () |
| Create the editcopy and other tool objects (e.g. decorations). | |
| void | OnMouseEvent (wxMouseEvent &event) |
| called on mouse events | |
| void | OnDoEvent (a2dCommandProcessorEvent &event) |
| handler for Do event | |
Protected Attributes | |
| a2dCanvasObjectPtr | m_begin |
| begin point object for lines and polylines | |
| a2dCanvasObjectPtr | m_end |
| end point object for lines and polylines | |
| double | m_xscale |
| begin point scaling | |
| double | m_yscale |
| end point scaling | |
| a2dPATH_END_TYPE | m_pathtype |
| when m_contourwidth != 0 what is the end of the line looking like. | |
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 501 of file sttool2.h.
| a2dDrawPolylineLToolFast::a2dDrawPolylineLToolFast | ( | a2dStToolContr * | controller, | |
| a2dPolylineL * | 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 2119 of file sttool2.cpp.
| void a2dDrawPolylineLToolFast::SetLineBegin | ( | a2dCanvasObject * | begin | ) |
defines line begin object for line and polyline drawing tools
You might want to reset m_newObjectsGetCommandProcStyle also. Otherwise the command processor will overwrite what you set here
Definition at line 2147 of file sttool2.cpp.
| void a2dDrawPolylineLToolFast::SetLineEnd | ( | a2dCanvasObject * | end | ) |
defines line end object for line and polyline drawing tools
You might want to reset m_newObjectsGetCommandProcStyle also. Otherwise the command processor will overwrite what you set here
Definition at line 2163 of file sttool2.cpp.
| a2dCanvasObject* a2dDrawPolylineLToolFast::GetLineBegin | ( | ) | [inline] |
| a2dCanvasObject* a2dDrawPolylineLToolFast::GetLineEnd | ( | ) | [inline] |
| bool a2dDrawPolylineLToolFast::CreateToolObjects | ( | ) | [protected, virtual] |
Create the editcopy and other tool objects (e.g. decorations).
m_original must be set before this function is called
Reimplemented from a2dDrawPolygonLToolFast.
Definition at line 2316 of file sttool2.cpp.