a2dDrawPolylineLToolFast Class Reference
[Objects used for interactive manipulation.]

Interactive drawing of a polyline. More...

#include <sttool2.h>

Inheritance diagram for a2dDrawPolylineLToolFast:

Inheritance graph
[legend]
Collaboration diagram for a2dDrawPolylineLToolFast:

Collaboration graph
[legend]

List of all members.

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


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 501 of file sttool2.h.


Constructor & Destructor Documentation

a2dDrawPolylineLToolFast::a2dDrawPolylineLToolFast ( 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 2119 of file sttool2.cpp.


Member Function Documentation

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]

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

Returns:
Null if not set.

Definition at line 537 of file sttool2.h.

a2dCanvasObject* a2dDrawPolylineLToolFast::GetLineEnd (  )  [inline]

get current line end object for line and polyline drawing tools

return: Null if not set.

Definition at line 541 of file sttool2.h.

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.


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