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

Public Member Functions | |
| virtual int | GenerateRegion (REGION2D ®ion) const |
| double | GetAngle () const |
| const DPOINT2D & | GetCenter () const |
| int | GetNumSegments () const |
| double | GetRadius () const |
| GRTOOL_REGPOLYGON (GRTOOLVIEW *view) | |
| void | SetAngle (double newangle) |
| void | SetAngleVisible (bool anglevisible=true) |
| void | SetCenter (const DPOINT2D ¢er) |
| void | SetMarker (MARKER marker, UINT16 size=0) |
| void | SetNumSegments (int NumSegments) |
| void | SetRadius (double radius) |
| void | SetRadiusRange (double minradius, double maxradius) |
| virtual | ~GRTOOL_REGPOLYGON () |
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 bool | OnKey (UINT nChar, UINT nRepCnt, UINT nFlags) |
| 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 |
| int | m_NumSegments |
| DPOINT2D | m_prevpt |
| double | m_radius |
Definition at line 1427 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 number of segments.
|
|
|
Get radius.
|
|
||||||||||||||||
|
Methods called directly by the equivalent GRTOOLVIEW method.
Reimplemented from MicroImages::GRTOOL. |
|
||||||||||||
|
Implements MicroImages::GRTOOL. |
|
||||||||||||
|
Implements MicroImages::GRTOOL. |
|
|
Set rotation angle.
|
|
|
Set whether angle indicator is visible.
|
|
|
Set center of polygon.
|
|
||||||||||||
|
Set marker type and size. The default marker is MARKER_Plus with a size of 9 pixels.
|
|
|
Set number of polygon segments.
|
|
|
Set polygon radius (distance from center to vertex).
|
|
||||||||||||
|
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.
|
|
|
Distance from center to each vertex.
|
1.3.8-20040913