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 isPointNearStart;
36 
40 std::vector<QPoint> QPointList;
41 public:
51 ~IntelliToolPolygon() override;
52 
58 virtual void onMouseLeftPressed(int x, int y) override;
59 
65 virtual void onMouseLeftReleased(int x, int y) override;
66 
72 virtual void onMouseRightPressed(int x, int y) override;
73 
79 virtual void onMouseRightReleased(int x, int y) override;
80 
85 virtual void onWheelScrolled(int value) override;
86 
92 virtual void onMouseMoved(int x, int y) override;
93 
94 
95 };
96 
97 #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:51
IntelliTool.h
IntelliToolPolygon::IntelliToolPolygon
IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker.
Definition: IntelliToolPolygon.cpp:7
IntelliTool::Toolsettings
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:53
IntelliTool::Area
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:44
IntelliToolPolygon::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.
Definition: IntelliToolPolygon.cpp:108
PaintingArea
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:37
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:63
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::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:21
IntelliToolPolygon::onMouseRightReleased
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
Definition: IntelliToolPolygon.cpp:97
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:71
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:101