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

Public Types | |
| enum | EDITMODE { EDITMODE_AddEnd, EDITMODE_AddStart, EDITMODE_InsertVertex, EDITMODE_DragVertex, EDITMODE_DeleteVertex, EDITMODE_Move } |
Public Member Functions | |
| virtual MGUI::CTRL * | CreateControlForm (MGUI::LAYOUT_PANE_BASE &ParentPane, CTRLOPT ctrlopt) |
| virtual int | GenerateRegion (REGION2D ®ion) const |
| const POLYLINE & | GetActiveLine () const |
| const MILIST< POLYLINE > & | GetLineList () const |
| int | GetNumLines () const |
| GRTOOL_POLYLINE (GRTOOLVIEW *view, bool AllowMulti=false) | |
| bool | Is3D () const |
| bool | IsActiveValid () const |
| void | LockEndPoint (bool locked=true) |
| void | LockStartPoint (bool locked=true) |
| void | Set3D (bool set3d=true) |
| void | SetClosed (bool closed=true) |
| void | SetEditMode (EDITMODE EditMode) |
| void | SetMarkers (MARKER startmarker, MARKER endmarker, UINT16 startmarkersize=0, UINT16 endmarkersize=0) |
| virtual | ~GRTOOL_POLYLINE () |
Protected Member Functions | |
| virtual void | OnChangeActiveElem () |
| virtual void | OnClear () |
Private Types | |
| enum | ZONE { ZONE_NoFunction = 0, ZONE_Outside } |
Private Member Functions | |
| void | AddPoint (CDC *, const DPOINT2D &, EDITMODE) |
| void | AdjustTool (DPOINT2D &, MOVESEQ) |
| void | ComputeCursorZone (const DPOINT2D &) |
| void | DeletePoint (CDC *, int) |
| virtual void | DoDraw (CDC *) |
| void | DrawMarkerEnd (CDC *) |
| void | DrawMarkerStart (CDC *) |
| void | DrawNeighborSegments (CDC *, const LRECT2D &, bool SkipActive=true, int SkipSegment1=-2, int SkipSegment2=-2) |
| void | DrawSegment (CDC *, int, bool) |
| void | DrawSegment (CDC *, const POLYLINE &, int) |
| void | DrawSingleLine (CDC *, const POLYLINE &) |
| void | EraseLine (CDC *) |
| void | EraseMarkerEnd (CDC *, bool) |
| void | EraseMarkerStart (CDC *, bool) |
| void | ErasePoint (CDC *, int) |
| void | EraseSegment (CDC *, int) |
| void | InsertPoint (CDC *, int, const DPOINT2D &, UINT32) |
| void | MovePoint (CDC *, const DPOINT2D &, UINT32) |
| virtual bool | OnKey (UINT nChar, UINT nRepCnt, UINT nFlags) |
| virtual void | OnLButtonDown (UINT nFlags, const CPoint &mpoint) |
| virtual void | OnLButtonUp (UINT nFlags, const CPoint &mpoint) |
| virtual void | OnMouseMove (UINT nFlags, const CPoint &mpoint) |
| void | UpdateCursor () const |
Private Attributes | |
| POLYLINE * | m_ActiveLine |
| int | m_ActivePoint |
| bool | m_AllowMulti |
| ZONE | m_CursorZone |
| EDITMODE | m_EditMode |
| MARKER | m_endmarker |
| UINT16 | m_endmarkersize |
| bool | m_Is3D |
| bool | m_IsClosed |
| MILIST< POLYLINE > | m_LineList |
| bool | m_LockEnd |
| bool | m_LockStart |
| DPOINT2D | m_prevpt |
| bool | m_RubberBand |
| MARKER | m_startmarker |
| UINT16 | m_startmarkersize |
Definition at line 1542 of file grtool.h.
|
|
Editing modes.
|
|
|
Enumeration constants.
|
|
||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
||||||||||||||||
|
Methods.
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
Create "form" with tool-specific controls.
Reimplemented from MicroImages::GRTOOL. |
|
||||||||||||
|
|
|
|
Implements MicroImages::GRTOOL. |
|
|
|
|
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Generate region from tool boundary.
Reimplemented from MicroImages::GRTOOL. |
|
|
Get reference to active line. IsActiveValid() should be used first to determine if the active line is valid. Failure to do so will likely result in an exception. |
|
|
Get list of lines.
|
|
|
Get number of valid lines.
|
|
||||||||||||||||||||
|
|
|
|
Determine if tool points are 3D.
|
|
|
Determine if active line is valid. In single-line mode the active line is always valid. |
|
|
Lock or unlock end point of active line.
|
|
|
Lock or unlock start point of active line.
|
|
||||||||||||||||
|
|
|
|
Called when "active element" changed. Derived class must call superclass method BEFORE performing own processing. |
|
|
Called when tool is "cleared" by user action, usually on control dialog. Derived class must call superclass method BEFORE performing own processing. Reimplemented from MicroImages::GRTOOL. |
|
||||||||||||||||
|
Called when key pressed/released.
Reimplemented from MicroImages::GRTOOL. |
|
||||||||||||
|
Implements MicroImages::GRTOOL. |
|
||||||||||||
|
Reimplemented from MicroImages::GRTOOL. |
|
||||||||||||
|
Implements MicroImages::GRTOOL. |
|
|
Set whether points are 3D.
|
|
|
Set line to draw as "closed". This only affects how the tool is drawn, it does not add a closing point to the POLYLINE. |
|
|
Set line editing mode.
|
|
||||||||||||||||||||
|
Set markers for start and end points.
|
|
|
|
|
|
Pointer to active line.
|
|
|
|
|
|
Tool settings.
|
|
|
Current cursor zone.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tool position values.
|
|
|
|
|
|
|
|
|
Previous point during button-down.
|
|
|
|
|
|
|
|
|
|
1.3.8-20040913