#include <mgui/toolpoly.h>
Inheritance diagram for MGUI::TOOL_POLYLINE:

Public Types | |
| enum | EDITMODE { EDITMODE_AddEnd, EDITMODE_AddStart, EDITMODE_InsertVertex, EDITMODE_DragVertex, EDITMODE_DeleteVertex, EDITMODE_Move } |
Public Member Functions | |
| const POLYLINE & | GetActiveLine () const |
| const MILIST< POLYLINE > & | GetLineList () const |
| int | GetNumLines () const |
| 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) |
| TOOL_POLYLINE (TOOLCANVAS *canvas, bool AllowMulti=false) | |
| virtual | ~TOOL_POLYLINE () |
Protected Member Functions | |
| virtual void | v_OnChangeActiveElem () |
Definition at line 37 of file toolpoly.h.
|
|
Editing modes.
Definition at line 41 of file toolpoly.h. |
|
||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
|
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. Definition at line 62 of file toolpoly.h. |
|
|
Get list of lines.
Definition at line 66 of file toolpoly.h. |
|
|
Get number of valid lines.
Definition at line 70 of file toolpoly.h. |
|
|
Determine if tool points are 3D.
Definition at line 74 of file toolpoly.h. |
|
|
Determine if active line is valid. In single-line mode the active line is always valid. Definition at line 79 of file toolpoly.h. |
|
|
Lock or unlock end point of active line.
|
|
|
Lock or unlock start point of active line.
|
|
|
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.
|
|
|
Called when "active element" changed.
|
1.3.8-20040913