IntelliPhoto  0.5
IntelliToolPolygon.h
Go to the documentation of this file.
1 #ifndef INTELLITOOLPOLYGON_H
2 #define INTELLITOOLPOLYGON_H
3 
4 #include "IntelliTool.h"
6 #include <vector>
7 #include <QPoint>
12 {
20 bool isNearStart(int x, int y, QPoint Startpoint);
21 
25 bool isDrawing;
26 
30 bool isInside;
31 
35 bool isSettingPolygon;
36 
40 bool isPointNearStart;
41 
45 std::vector<QPoint> QPointList;
46 public:
57 ~IntelliToolPolygon() override;
58 
64 virtual void onMouseLeftPressed(int x, int y) override;
65 
71 virtual void onMouseLeftReleased(int x, int y) override;
72 
78 virtual void onMouseRightPressed(int x, int y) override;
79 
85 virtual void onMouseRightReleased(int x, int y) override;
86 
91 virtual void onWheelScrolled(int value) override;
92 
98 virtual void onMouseMoved(int x, int y) override;
99 
100 };
101 
102 #endif
IntelliTool::colorPicker
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:52
IntelliTool.h
IntelliTool::Toolsettings
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:54
IntelliTool::Area
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:45
IntelliToolPolygon::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.
Definition: IntelliToolPolygon.cpp:135
PaintingArea
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:37
IntelliToolPolygon::IntelliToolPolygon
IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings, bool isSettingPolygon=false)
A constructor setting the general paintingArea and colorPicker.
Definition: IntelliToolPolygon.cpp:7
IntelliTool
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:14
IntelliToolPolygon::onMouseRightPressed
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Resetting the current fill.
Definition: IntelliToolPolygon.cpp:81
IntelliColorPicker
The IntelliColorPicker manages the selected colors for one whole project.
Definition: IntelliColorPicker.h:11
IntelliToolPolygon::~IntelliToolPolygon
~IntelliToolPolygon() override
A Destructor.
Definition: IntelliToolPolygon.cpp:19
IntelliToolPolygon::onMouseLeftPressed
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Setting polygon points.
Definition: IntelliToolPolygon.cpp:25
IntelliToolPolygon::onMouseRightReleased
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
Definition: IntelliToolPolygon.cpp:122
IntelliToolPolygon
The IntelliToolPolygon managed the Drawing of Polygonforms.
Definition: IntelliToolPolygon.h:11
IntelliToolPolygon::onMouseLeftReleased
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.
Definition: IntelliToolPolygon.cpp:89
IntelliTriangulation.h
IntelliToolsettings
Definition: IntelliToolsettings.h:4
IntelliToolPolygon::onWheelScrolled
virtual void onWheelScrolled(int value) override
A function managing the scroll event. CHanging the lineWidth relative to value.
Definition: IntelliToolPolygon.cpp:126