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

Public Member Functions | |
| virtual int | GenerateRegion (REGION2D ®ion) const |
| double | GetAngle () const |
| DPOINT2D | GetCenter () const |
| const DPOINT2D & | GetCorner (int corner) const |
| void | GetCorners (DPOINT2D rcorners[4]) const |
| const DPOINT2D * | GetCorners () const |
| const DRECT2D & | GetExtents () const |
| const DPOINT2D & | GetSize () const |
| GRTOOL_RECTANGLE (GRTOOLVIEW *view) | |
| GRTOOL_RECTANGLE & | operator= (const DRECT2D &rhs) |
| void | SetAspect (double aspect) |
| virtual | ~GRTOOL_RECTANGLE () |
Protected Member Functions | |
| virtual void | OnChangeLimits () |
Private Types | |
| enum | ZONE { ZONE_Outside = 0, ZONE_Inside, ZONE_Corner0, ZONE_Corner1, ZONE_Corner2, ZONE_Corner3, ZONE_Side01, ZONE_Side12, ZONE_Side23, ZONE_Side30, ZONE_NoFunction } |
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 | Recompute () |
| void | ResizeTool (const DPOINT2D &) |
| void | RotateTool (const DPOINT2D &) |
| void | StartTool (const DPOINT2D &) |
| void | UpdateCursor () const |
Private Attributes | |
| UINT8 | m_AdjustMode |
| double | m_angle |
| double | m_aspect |
| DPOINT2D | m_corners [4] |
| ZONE | m_CursorZone |
| DRECT2D | m_extents |
| DPOINT2D | m_prevpt |
| DPOINT2D | m_size |
Definition at line 1311 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 rotation angle.
|
|
|
Get center of rectangle in tool coordinates.
|
|
|
Get coordinates of specified corner.
|
|
|
Copy corner coordinates into specified array.
|
|
|
Get coordinates of all rectangle corners.
|
|
|
Get extents of tool.
|
|
|
Get current rectangle size.
|
|
|
Called when limits are changed. Derived class must call superclass method BEFORE performing own processing. Reimplemented from MicroImages::GRTOOL_LIMITED. |
|
||||||||||||
|
Methods called directly by the equivalent GRTOOLVIEW method.
Implements MicroImages::GRTOOL. |
|
||||||||||||
|
Implements MicroImages::GRTOOL. |
|
|
Assigment from DRECT2D.
|
|
|
|
|
|
|
|
|
|
|
|
Set aspect ratio for rectangle. Setting the aspect ratio to a value <= 0 removes the aspect constraint.
|
|
|
|
|
|
|
|
|
Adjustment mode, 2=rotate, 1=everything else.
|
|
|
Rotation angle.
|
|
|
Aspect ratio, proportional if > 0.
|
|
|
Corner coordinates.
|
|
|
Current cursor zone.
|
|
|
Position (extents if rotated).
|
|
|
Previous point during button-down.
|
|
|
Current size.
|
1.3.8-20040913