IntelliPhoto 0.5

IntelliToolCircle.h
Go to the documentation of this file.
1 #ifndef INTELLITOOLCIRCLE_H
2 #define INTELLITOOLCIRCLE_H
3 #include "IntelliTool.h"
4
5 #include "QColor"
6 #include "QPoint"
10 class IntelliToolCircle : public IntelliTool {
15 void drawCyrcle(int radius);
16
20 QPoint Middle;
21
25 int alphaInner;
26
30 int edgeWidth;
31 public:
37 IntelliToolCircle(PaintingArea* Area, IntelliColorPicker* colorPicker);
38
42 virtual ~IntelliToolCircle() override;
43
49 virtual void onMouseRightPressed(int x, int y) override;
50
56 virtual void onMouseRightReleased(int x, int y) override;
57
63 virtual void onMouseLeftPressed(int x, int y) override;
64
70 virtual void onMouseLeftReleased(int x, int y) override;
71
76 virtual void onWheelScrolled(int value) override;
77
83 virtual void onMouseMoved(int x, int y) override;
84 };
85
86 #endif // INTELLITOOLCIRCLE_H
IntelliToolCircle::onMouseRightPressed
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Clearing the canvas layer.
Definition: IntelliToolCircle.cpp:51
IntelliToolCircle::onMouseRightReleased
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
Definition: IntelliToolCircle.cpp:55
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
IntelliToolCircle::onWheelScrolled
virtual void onWheelScrolled(int value) override
A function managing the scroll event. Changing the edge Width relative to value.
Definition: IntelliToolCircle.cpp:71
IntelliTool::Area
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:33
PaintingArea
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:36
IntelliToolCircle::~IntelliToolCircle
virtual ~IntelliToolCircle() override
A Destructor.
Definition: IntelliToolCircle.cpp:12
IntelliTool
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
IntelliColorPicker
The IntelliColorPicker manages the selected colors for one whole project.
Definition: IntelliColorPicker.h:11
IntelliToolCircle::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse posit...
Definition: IntelliToolCircle.cpp:79
IntelliToolCircle::IntelliToolCircle
IntelliToolCircle(PaintingArea *Area, IntelliColorPicker *colorPicker)
A constructor setting the general paintingArea and colorPicker. And reading in the inner alpha and ed...
Definition: IntelliToolCircle.cpp:6
IntelliToolCircle::onMouseLeftReleased
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse.
Definition: IntelliToolCircle.cpp:67
IntelliToolCircle
The IntelliToolCircle class represents a tool to draw a circle.
Definition: IntelliToolCircle.h:10
IntelliToolCircle::onMouseLeftPressed
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Sets the middle point of the cricle.
Definition: IntelliToolCircle.cpp:59