a2dRotateTool Class Reference

Interactive rotate an object. More...

#include <sttool.h>

Inheritance diagram for a2dRotateTool:

Inheritance graph
[legend]
Collaboration diagram for a2dRotateTool:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dRotateTool (a2dStToolContr *controller)
bool ZoomSave ()
 Is Zooming while the tool is busy Save.
void CaptureMouse ()
 redirect all mouse events for the canvas to this object
void ReleaseMouse ()
 release the mouse capture for this object

Static Public Attributes

static const a2dCommandId COMID_PushTool_Rotate
 push this tool on the tools stack

Protected Member Functions

bool EnterBusyMode ()
 starts a new action (e.g drawing something ) in a tool that is already pushed.
virtual void FinishBusyMode (bool closeCommandGroup=true)
 Called when the user finishes editing a distinct object */.
void AbortBusyMode ()
 Called when the user aborts editing a distinct object */.
void OnChar (wxKeyEvent &event)
 called on key events
void OnIdle (wxIdleEvent &event)
 handler for idle events
void OnMouseEvent (wxMouseEvent &event)
 called on mouse events
virtual wxString GetCommandGroupName ()
 return the command group name for commands of a derived class

Protected Attributes

double m_xr
double m_yr
bool m_mode
 general operation mode setting for a tool.
a2dAffineMatrix m_transform
 old transform
double m_ang


Detailed Description

Interactive rotate an object.

Remarks:
Left Click and drag.
See also:
a2dStToolContr

Definition at line 1159 of file sttool.h.


Member Function Documentation

bool a2dRotateTool::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 1170 of file sttool.h.

bool a2dRotateTool::EnterBusyMode (  )  [protected, virtual]

starts a new action (e.g drawing something ) in a tool that is already pushed.

Opens a new a2dCommandGroup, which will be closed at the end of an action. This is normally in FinishBusyMode(), but might be delayed when other tools are pushed, like the edit tool to further edit the drawn figure. This should become part of the same command group.

Reimplemented from a2dStTool.

Definition at line 5630 of file sttool.cpp.

void a2dRotateTool::FinishBusyMode ( bool  closeCommandGroup = true  )  [protected, virtual]

Called when the user finishes editing a distinct object */.

See also:
EnterBusyMode,

GetActive You should call the base class (this) version at the END of your function

Reimplemented from a2dStTool.

Definition at line 5638 of file sttool.cpp.

void a2dRotateTool::AbortBusyMode (  )  [protected, virtual]

Called when the user aborts editing a distinct object */.

See also:
EnterBusyMode This is supposed to undo aeverything the tool did since entering busy mode

Reimplemented from a2dStTool.

Definition at line 5644 of file sttool.cpp.

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


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