a2dDrawPolylineLTool Class Reference
[Objects used for interactive manipulation.]

Interactive drawing of a polyline. More...

#include <sttool.h>

Inheritance diagram for a2dDrawPolylineLTool:

Inheritance graph
[legend]
Collaboration diagram for a2dDrawPolylineLTool:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dDrawPolylineLTool (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
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.

Static Public Attributes

static const a2dCommandId COMID_PushTool_DrawPolylineL
 push this tool on the tools stack
static const a2dCommandId COMID_PushTool_DrawPolylineL_Splined
 push this tool on the tools stack

Protected Member Functions

void OnMouseEvent (wxMouseEvent &event)
 called on mouse events
void OnDoEvent (a2dCommandProcessorEvent &event)
 handler for Do event

Protected Attributes

a2dSmrtPtr< a2dPolylineLm_templatePline


Detailed Description

Interactive drawing of a polyline.

Remarks:
Left Click to add points.

Space bar or Double click to end drawing.

Cursor keys to shift object.

Cursor keys + control to shift point.

Right Click to zoom.

See also:
a2dStToolContr

Definition at line 1662 of file sttool.h.


Constructor & Destructor Documentation

a2dDrawPolylineLTool::a2dDrawPolylineLTool ( a2dStToolContr controller,
a2dPolylineL templateObject = NULL 
)

constructor

Parameters:
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 4043 of file sttool.cpp.


Member Function Documentation

void a2dDrawPolylineLTool::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 4087 of file sttool.cpp.

void a2dDrawPolylineLTool::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 4092 of file sttool.cpp.

a2dCanvasObject* a2dDrawPolylineLTool::GetLineBegin (  )  [inline]

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

Returns:
Null if not set.

Definition at line 1698 of file sttool.h.

a2dCanvasObject* a2dDrawPolylineLTool::GetLineEnd (  )  [inline]

get current line end object for line and polyline drawing tools

return: Null if not set.

Definition at line 1702 of file sttool.h.


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