a2dDrawLineTool Class Reference
[Objects used for interactive manipulation.]

Interactive drawing of a EllipticArc. More...

#include <sttool.h>

Inheritance diagram for a2dDrawLineTool:

Inheritance graph
[legend]
Collaboration diagram for a2dDrawLineTool:

Collaboration graph
[legend]

List of all members.

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
a2dCanvasObjectGetLineBegin ()
 get current line begin object for line and polyline drawing tools.
a2dCanvasObjectGetLineEnd ()
 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.
a2dSLineGetTemplateObject ()
 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< a2dSLinem_templateObject
 object to clone to use as start


Detailed Description

Interactive drawing of a EllipticArc.

Remarks:
Left Click for first point and second point again.

Cursor keys to shift object.

Or Spacebar to end line.

See also:
a2dStToolContr

Definition at line 1300 of file sttool.h.


Member Function Documentation

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.

Definition at line 1314 of file sttool.h.

a2dCanvasObject* a2dDrawLineTool::GetLineBegin (  )  [inline]

get current line begin object for line and polyline drawing tools.

Returns:
Null if not set.

Definition at line 1324 of file sttool.h.

a2dCanvasObject* a2dDrawLineTool::GetLineEnd (  )  [inline]

get current line end object for line and polyline drawing tools

return: Null if not set.

Definition at line 1328 of file sttool.h.


The documentation for this class was generated from the following files:
a2dDrawLineTool Class Reference -- Tue Aug 31 18:24:20 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation