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 int lineWidth;
26 
30 bool isDrawing;
31 
35 bool PointIsNearStart;
36 
40 int alphaInner;
41 
45 std::vector<QPoint> QPointList;
46 public:
56 ~IntelliToolPolygon() override;
57 
63 virtual void onMouseLeftPressed(int x, int y) override;
64 
70 virtual void onMouseLeftReleased(int x, int y) override;
71 
77 virtual void onMouseRightPressed(int x, int y) override;
78 
84 virtual void onMouseRightReleased(int x, int y) override;
85 
90 virtual void onWheelScrolled(int value) override;
91 
97 virtual void onMouseMoved(int x, int y) override;
98 
99 
100 };
101 
102 #endif // INTELLITOOLPOLYGON_H
IntelliTool::colorPicker
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:38
IntelliTool.h
IntelliHelper.h
IntelliTool::Area
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:33
IntelliToolPolygon::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.
Definition: IntelliToolPolygon.cpp:91
PaintingArea
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:36
IntelliTool
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
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:43
IntelliColorPicker
The IntelliColorPicker manages the selected colors for one whole project.
Definition: IntelliColorPicker.h:11
IntelliToolPolygon::~IntelliToolPolygon
~IntelliToolPolygon() override
A Destructor.
Definition: IntelliToolPolygon.cpp:15
IntelliToolPolygon::IntelliToolPolygon
IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker)
A constructor setting the general paintingArea and colorPicker.
Definition: IntelliToolPolygon.cpp:7
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:19
IntelliToolPolygon::onMouseRightReleased
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
Definition: IntelliToolPolygon.cpp:75
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:50
IntelliToolPolygon::onWheelScrolled
virtual void onWheelScrolled(int value) override
A function managing the scroll event. CHanging the lineWidth relative to value.
Definition: IntelliToolPolygon.cpp:79