|
IntelliPhoto
0.6
|
The IntelliToolPolygon managed the Drawing of Polygonforms. More...
#include <IntelliToolPolygon.h>
Public Member Functions | |
| IntelliToolPolygon (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings, bool isSettingPolygon=false) | |
| A constructor setting the general paintingArea and colorPicker. More... | |
| ~IntelliToolPolygon () override | |
| A Destructor. More... | |
| virtual void | onMouseLeftPressed (int x, int y) override |
| A function managing the left click pressed of a mouse. Setting polygon points. More... | |
| virtual void | onMouseLeftReleased (int x, int y) override |
| A function managing the left click released of a mouse. Merging the fill to the active layer. More... | |
| virtual void | onMouseRightPressed (int x, int y) override |
| A function managing the right click pressed of a mouse. Resetting the current fill. More... | |
| virtual void | onMouseRightReleased (int x, int y) override |
| A function managing the right click released of a mouse. More... | |
| virtual void | onWheelScrolled (int value) override |
| A function managing the scroll event. CHanging the lineWidth relative to value. More... | |
| virtual void | onMouseMoved (int x, int y) override |
| A function managing the mouse moved event. More... | |
Public Member Functions inherited from IntelliTool | |
| IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings) | |
| A constructor setting the general Painting Area and colorPicker. More... | |
| virtual | ~IntelliTool ()=0 |
| An abstract Destructor. More... | |
| Tooltype | getTooltype () const |
| bool | getIsDrawing () const |
Additional Inherited Members | |
Public Types inherited from IntelliTool | |
| enum | Tooltype { Tooltype::CIRCLE, Tooltype::FLOODFILL, Tooltype::LINE, Tooltype::PEN, Tooltype::PLAIN, Tooltype::POLYGON, Tooltype::RECTANGLE, Tooltype::NONE } |
Protected Attributes inherited from IntelliTool | |
| PaintingArea * | Area |
| A pointer to the general PaintingArea to interact with. More... | |
| Tooltype | ActiveType |
| IntelliColorPicker * | colorPicker |
| A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More... | |
| IntelliToolsettings * | Toolsettings |
| LayerObject * | activeLayer |
| A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More... | |
| LayerObject * | Canvas |
| A pointer to the drawing canvas of the tool, work on this. More... | |
| bool | isDrawing = false |
| A flag checking if the user is currently drawing or not. More... | |
The IntelliToolPolygon managed the Drawing of Polygonforms.
Definition at line 15 of file IntelliToolPolygon.h.
| IntelliToolPolygon::IntelliToolPolygon | ( | PaintingArea * | Area, |
| IntelliColorPicker * | colorPicker, | ||
| IntelliToolsettings * | Toolsettings, | ||
| bool | isSettingPolygon = false |
||
| ) |
A constructor setting the general paintingArea and colorPicker.
| Area | - The general paintingArea used by the project. |
| colorPicker | - The general colorPicker used by the project. |
| isSettingPolygon | - The flag for the set polygon method, standart is false |
Definition at line 8 of file IntelliToolPolygon.cpp.
|
override |
A Destructor.
Definition at line 20 of file IntelliToolPolygon.cpp.
|
overridevirtual |
A function managing the left click pressed of a mouse. Setting polygon points.
| x | - The x coordinate relative to the active/canvas layer. |
| y | - The y coordinate relative to the active/canvas layer. |
Reimplemented from IntelliTool.
Definition at line 26 of file IntelliToolPolygon.cpp.
|
overridevirtual |
A function managing the left click released of a mouse. Merging the fill to the active layer.
| x | - The x coordinate relative to the active/canvas layer. |
| y | - The y coordinate relative to the active/canvas layer. |
Reimplemented from IntelliTool.
Definition at line 91 of file IntelliToolPolygon.cpp.
|
overridevirtual |
A function managing the mouse moved event.
| x | - The x coordinate of the new mouse position. |
| y | - The y coordinate of the new mouse position. |
Reimplemented from IntelliTool.
Definition at line 137 of file IntelliToolPolygon.cpp.
|
overridevirtual |
A function managing the right click pressed of a mouse. Resetting the current fill.
| x | - The x coordinate relative to the active/canvas layer. |
| y | - The y coordinate relative to the active/canvas layer. |
Reimplemented from IntelliTool.
Definition at line 83 of file IntelliToolPolygon.cpp.
|
overridevirtual |
A function managing the right click released of a mouse.
| x | - The x coordinate relative to the active/canvas layer. |
| y | - The y coordinate relative to the active/canvas layer. |
Reimplemented from IntelliTool.
Definition at line 124 of file IntelliToolPolygon.cpp.
|
overridevirtual |
A function managing the scroll event. CHanging the lineWidth relative to value.
| value | - The absolute the scroll has changed. |
Reimplemented from IntelliTool.
Definition at line 128 of file IntelliToolPolygon.cpp.