a2dDrawVPathTool Class Reference
[Objects used for interactive manipulation.]

Interactive drawing of a polygon. More...

#include <sttool.h>

Inheritance diagram for a2dDrawVPathTool:

Inheritance graph
[legend]
Collaboration diagram for a2dDrawVPathTool:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dDrawVPathTool (a2dStToolContr *controller, a2dVectorPath *templateObject=NULL)
 constructor
bool ZoomSave ()
 save to zoom while drawing
void SetMode (int mode)
 mode of drawing, can be swicthed with Tab key.

Static Public Attributes

static const a2dCommandId COMID_PushTool_DrawVPath
 push this tool on the tools stack

Protected Member Functions

void OnIdle (wxIdleEvent &event)
 handler for idle events
void OnChar (wxKeyEvent &event)
 called on key events
void OnMouseEvent (wxMouseEvent &event)
 called on mouse events
void OnUndoEvent (a2dCommandProcessorEvent &event)
 handler for Undo event
void OnRedoEvent (a2dCommandProcessorEvent &event)
void AddSegment (a2dVpathSegment *segment)
virtual wxString GetCommandGroupName ()
 return the command group name for commands of a derived class

Protected Attributes

a2dSmrtPtr< a2dVectorPathm_templateObject
 object to clone to use as start
a2dSmrtPtr< a2dPolylineLm_controlPoints
double m_prev_x
 previous x
double m_prev_y
 previous y
double m_contrmid_x
 previous x
double m_contrmid_y
 previous y
bool m_controlSet
bool m_endSegment
bool m_bezier
a2dVpathm_vpath
 points sofar
a2dVpathSegmentm_segment
 last point
a2dVpathSegmentm_segmentPrev
bool m_reverse
 end to begin wire.


Detailed Description

Interactive drawing of a polygon.

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 2184 of file sttool.h.


Constructor & Destructor Documentation

a2dDrawVPathTool::a2dDrawVPathTool ( a2dStToolContr controller,
a2dVectorPath 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 7262 of file sttool.cpp.


Member Function Documentation

virtual wxString a2dDrawVPathTool::GetCommandGroupName (  )  [inline, protected, virtual]

return the command group name for commands of a derived class

this defaults to the class name

Reimplemented from a2dBaseTool.

Definition at line 2221 of file sttool.h.


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