a2dDrawArcTool Class Reference
[Objects used for interactive manipulation.]

Interactive drawing of a circular arc. More...

#include <sttool.h>

Inheritance diagram for a2dDrawArcTool:

Inheritance graph
[legend]
Collaboration diagram for a2dDrawArcTool:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dDrawArcTool (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)
void SetMode2 (int mode)
 change mode of drawing
void SetChord (bool chord)
 draw jus a cord object

Static Public Attributes

static const a2dCommandId COMID_PushTool_DrawArc
 push this tool on the tools stack
static const a2dCommandId COMID_PushTool_DrawArc_Chord
 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.
virtual wxString GetCommandGroupName ()
 return the command group name for commands of a derived class

Protected Attributes

int m_mode2
 way of drawing
double m_arcstart
 start arc
double m_arcend
 end arc
double m_start_x
 start x
double m_start_y
 start y
bool m_chord
 draw just a cord object, not filled.


Detailed Description

Interactive drawing of a circular arc.

Remarks:
Left Click and drag/move.

Left Click again Or Spacebar to end arc drawing.

Return/Enter to cycle through drawing mode2 for changing start and end angle.

Cursor keys to shift object.

Shift drag/move to change start angle.

See also:
a2dStToolContr

Definition at line 1503 of file sttool.h.


Member Function Documentation

bool a2dDrawArcTool::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 1517 of file sttool.h.

void a2dDrawArcTool::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 5206 of file sttool.cpp.

virtual wxString a2dDrawArcTool::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 1537 of file sttool.h.


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