a2dDrawCircleTool Class Reference

Interactive drawing of a Circle. More...

#include <sttool.h>

Inheritance diagram for a2dDrawCircleTool:

Inheritance graph
[legend]
Collaboration diagram for a2dDrawCircleTool:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dDrawCircleTool (a2dStToolContr *controller)
bool ZoomSave ()
 Is Zooming while the tool is busy Save.
void SetMode (int mode)
 general integer to set operation modes for a tool (e.g the way it draws)

Static Public Attributes

static const a2dCommandId COMID_PushTool_DrawCircle
 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
virtual void GenerateAnotation ()
 to display a string along with a tool drawing.

Protected Attributes

double m_start_x
double m_start_y
double m_radius


Detailed Description

Interactive drawing of a Circle.

Remarks:
Left Click and drag.

Cursor keys to shift object.

Or Spacebar to end line.

See also:
a2dStToolContr

Definition at line 1256 of file sttool.h.


Member Function Documentation

bool a2dDrawCircleTool::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 1266 of file sttool.h.

void a2dDrawCircleTool::SetMode ( int  mode  )  [virtual]

general integer to set operation modes for a tool (e.g the way it draws)

tools most check the mode and handle in accordance In general Tab should be used to tab/switch/circle between modes understood by a tool.

Reimplemented from a2dBaseTool.

Definition at line 3608 of file sttool.cpp.


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