a2dDrawEllipticArcTool Class Reference
[Objects used for interactive manipulation.]

Interactive drawing of a EllipticArc. More...

#include <sttool.h>

Inheritance diagram for a2dDrawEllipticArcTool:

Inheritance graph
[legend]
Collaboration diagram for a2dDrawEllipticArcTool:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dDrawEllipticArcTool (a2dStToolContr *controller, a2dEllipticArc *templateObject=NULL)
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)

Static Public Attributes

static const a2dCommandId COMID_PushTool_DrawEllipticArc
 push this tool on the tools stack
static const a2dCommandId COMID_PushTool_DrawEllipticArc_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.

Protected Attributes

a2dSmrtPtr< a2dEllipticArcm_templateobject
 object to clone to use as start
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.
int m_mode2
 mode to change what is drawn


Detailed Description

Interactive drawing of a EllipticArc.

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


Member Function Documentation

bool a2dDrawEllipticArcTool::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 1447 of file sttool.h.

void a2dDrawEllipticArcTool::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 4914 of file sttool.cpp.


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