IntelliPhoto  0.4
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 {
13 public:
20 
21  virtual void onMouseLeftPressed(int x, int y) override;
22  virtual void onMouseLeftReleased(int x, int y) override;
23  virtual void onMouseRightPressed(int x, int y) override;
24  virtual void onMouseRightReleased(int x, int y) override;
25 
26  virtual void onWheelScrolled(int value) override;
27 
28  virtual void onMouseMoved(int x, int y) override;
29 
30 private:
38  bool isNearStart(int x, int y, QPoint Startpoint);
39 
43  int lineWidth;
47  int width;
51  int height;
55  bool isDrawing;
59  bool PointIsNearStart;
63  QPoint drawingPoint;
67  QPoint Point;
71  std::vector<QPoint> QPointList;
75  std::vector<Triangle> Triangles;
76 
77 };
78 
79 #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. Call this in child classes!
Definition: IntelliToolPolygon.cpp:88
PaintingArea
Definition: PaintingArea.h:25
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. Constructing the Canvas to draw on....
Definition: IntelliToolPolygon.cpp:46
IntelliColorPicker
The IntelliColorPicker manages the selected colors for one whole project.
Definition: IntelliColorPicker.h:11
IntelliToolPolygon::IntelliToolPolygon
IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker)
IntelliToolPolygon Constructor Define the Tool-intern Parameters.
Definition: IntelliToolPolygon.cpp:6
IntelliToolPolygon::onMouseLeftPressed
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliToolPolygon.cpp:17
IntelliToolPolygon::onMouseRightReleased
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliToolPolygon.cpp:73
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. Call this in child classes!
Definition: IntelliToolPolygon.cpp:53
IntelliToolPolygon::onWheelScrolled
virtual void onWheelScrolled(int value) override
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliToolPolygon.cpp:77