#include <mi32/grtool.h>
Inheritance diagram for MicroImages::GRTOOL_CIRCLE:

Public Member Functions | |
| virtual int | GenerateRegion (REGION2D ®ion) const |
| double | GetAngle () const |
| const DPOINT2D & | GetCenter () const |
| double | GetRadius () const |
| GRTOOL_CIRCLE (GRTOOLVIEW *view) | |
| void | SetAngle (double angle) |
| void | SetAngleVisible (bool anglevisible=true) |
| void | SetCenter (const DPOINT2D ¢er) |
| void | SetMarker (MARKER marker, UINT16 size=0) |
| void | SetRadius (double radius) |
| void | SetRadiusRange (double minradius, double maxradius) |
| virtual | ~GRTOOL_CIRCLE () |
Private Types | |
| enum | ZONE { ZONE_NoFunction = 0, ZONE_Outside, ZONE_Inside, ZONE_Perimeter, ZONE_SetCenter, ZONE_Rotate } |
Private Member Functions | |
| void | AdjustTool (const DPOINT2D &, bool firsttime=false) |
| void | ComputeCursorZone (const DPOINT2D &) |
| virtual void | DoDraw (CDC *) |
| virtual void | DoMove (double dx, double dy, ADJUSTFLAGS flags) |
| virtual void | OnLButtonDown (UINT nFlags, const CPoint &mpoint) |
| virtual void | OnMouseMove (UINT nFlags, const CPoint &mpoint) |
| void | StartTool (const DPOINT2D &) |
| void | UpdateCursor (const DPOINT2D &) const |
Private Attributes | |
| double | m_angle |
| bool | m_anglevisible |
| DPOINT2D | m_center |
| ZONE | m_CursorZone |
| MARKER | m_marker |
| UINT16 | m_markersize |
| double | m_maxradius |
| double | m_minradius |
| DPOINT2D | m_prevpt |
| double | m_radius |
Definition at line 972 of file grtool.h.
|
|
Enumeration constants.
|
|
|
Constructor.
|
|
|
Destructor.
|
|
||||||||||||
|
Methods.
|
|
|
|
|
|
Methods called by the GRTOOL base class.
Implements MicroImages::GRTOOL. |
|
||||||||||||||||
|
Reimplemented from MicroImages::GRTOOL. |
|
|
Generate region from tool boundary.
Reimplemented from MicroImages::GRTOOL. |
|
|
Get current rotation angle.
|
|
|
Get center position.
|
|
|
Get radius.
|
|
||||||||||||
|
Methods called directly by the equivalent GRTOOLVIEW method.
Implements MicroImages::GRTOOL. |
|
||||||||||||
|
Implements MicroImages::GRTOOL. |
|
|
Set rotation angle. The rotation will only be visible to the user if SetAngleVisible() has been used.
|
|
|
Set whether rotation angle indicator is visible. The rotation angle is indicated by a line from the center to the boundary. |
|
|
Set circle center coordinates.
|
|
||||||||||||
|
Set marker type and size. The default marker is MARKER_Plus with a size of 9 pixels.
|
|
|
Set radius.
|
|
||||||||||||
|
Set allowed radius range.
|
|
|
|
|
|
|
|
|
|
|
|
Visibility of rotation angle indicator.
|
|
|
Center.
|
|
|
Current cursor zone.
|
|
|
Tool settings.
|
|
|
|
|
|
Maximum radius, 0 if no maximum.
|
|
|
Minimum radius.
|
|
|
Previous point during button-down.
|
|
|
|
1.3.8-20040913