From b055c0b9220a3f71c5400c31908c9d997f154636 Mon Sep 17 00:00:00 2001 From: Jan Schuffenhauer Date: Thu, 16 Jan 2020 12:52:25 +0100 Subject: [PATCH] Automated Release Preparation --- .../_intelli_color_picker_8cpp_source.html | 4 +- docs/html/_intelli_photo_gui_8cpp_source.html | 4 +- .../_intelli_shaped_image_8cpp_source.html | 6 +- docs/html/_intelli_tool_8cpp_source.html | 222 ++++++++------- docs/html/_intelli_tool_8h_source.html | 126 +++++---- .../_intelli_tool_circle_8cpp_source.html | 22 +- docs/html/_intelli_tool_circle_8h_source.html | 6 +- .../_intelli_tool_flood_fill_8cpp_source.html | 20 +- .../_intelli_tool_flood_fill_8h_source.html | 6 +- docs/html/_intelli_tool_line_8cpp_source.html | 22 +- docs/html/_intelli_tool_line_8h_source.html | 6 +- docs/html/_intelli_tool_pen_8cpp_source.html | 22 +- docs/html/_intelli_tool_pen_8h_source.html | 6 +- .../html/_intelli_tool_plain_8cpp_source.html | 18 +- docs/html/_intelli_tool_plain_8h_source.html | 6 +- .../_intelli_tool_polygon_8cpp_source.html | 34 +-- .../html/_intelli_tool_polygon_8h_source.html | 6 +- .../_intelli_tool_rectangle_8cpp_source.html | 22 +- .../_intelli_tool_rectangle_8h_source.html | 6 +- .../_intelli_triangulation_8cpp_source.html | 4 +- docs/html/_intelli_triangulation_8h.html | 6 +- docs/html/_intelli_triangulation_8h.js | 2 +- .../_intelli_triangulation_8h_source.html | 4 +- docs/html/_painting_area_8cpp_source.html | 266 +++++++++--------- docs/html/_painting_area_8h_source.html | 59 ++-- docs/html/class_intelli_tool.html | 36 +-- docs/html/class_intelli_tool.js | 3 +- docs/html/class_intelli_tool_circle.html | 3 +- docs/html/class_intelli_tool_flood_fill.html | 3 +- docs/html/class_intelli_tool_line.html | 3 +- docs/html/class_intelli_tool_pen.html | 3 +- docs/html/class_intelli_tool_plain_tool.html | 3 +- docs/html/class_intelli_tool_polygon.html | 3 +- docs/html/class_intelli_tool_rectangle.html | 3 +- docs/html/class_painting_area-members.html | 21 +- docs/html/class_painting_area.html | 36 +-- docs/html/class_painting_area.js | 1 - docs/html/functions.html | 3 - docs/html/functions_func.html | 3 - .../html/namespace_intelli_triangulation.html | 12 +- docs/html/namespacemembers.html | 2 +- docs/html/namespacemembers_func.html | 2 +- docs/html/navtreedata.js | 2 +- docs/html/navtreeindex0.js | 10 +- docs/html/navtreeindex1.js | 22 +- docs/html/search/all_10.js | 6 +- docs/html/search/all_11.js | 18 +- docs/html/search/all_12.html | 30 ++ docs/html/search/all_12.js | 18 ++ docs/html/search/all_7.js | 2 +- docs/html/search/all_a.js | 8 +- docs/html/search/all_b.js | 16 +- docs/html/search/all_c.js | 13 +- docs/html/search/all_d.js | 22 +- docs/html/search/all_e.js | 24 +- docs/html/search/all_f.js | 8 +- docs/html/search/enums_0.js | 2 +- docs/html/search/enums_1.js | 2 +- docs/html/search/enumvalues_0.js | 2 +- docs/html/search/enumvalues_1.js | 2 +- docs/html/search/enumvalues_2.js | 2 +- docs/html/search/enumvalues_3.js | 4 +- docs/html/search/enumvalues_4.js | 5 +- docs/html/search/enumvalues_5.js | 3 +- docs/html/search/enumvalues_6.html | 2 +- docs/html/search/enumvalues_6.js | 3 +- docs/html/search/functions_4.js | 2 +- docs/html/search/functions_9.js | 3 +- docs/html/search/functions_a.js | 36 +-- docs/html/search/functions_b.js | 6 +- docs/html/search/functions_c.js | 2 +- docs/html/search/functions_d.js | 30 +- docs/html/search/searchdata.js | 4 +- docs/html/search/variables_0.js | 10 +- docs/html/search/variables_1.js | 2 +- docs/html/search/variables_2.js | 6 +- docs/html/search/variables_3.js | 2 +- docs/html/search/variables_4.js | 4 +- docs/html/search/variables_5.js | 6 +- docs/html/search/variables_6.js | 2 +- docs/html/search/variables_7.js | 4 +- docs/html/search/variables_8.js | 4 +- docs/html/tst__unittest_8cpp_source.html | 32 +-- src/IntelliHelper/IntelliColorPicker.cpp | 4 +- src/IntelliHelper/IntelliTriangulation.cpp | 2 +- src/IntelliHelper/IntelliTriangulation.h | 2 +- src/Layer/PaintingArea.cpp | 17 +- src/Layer/PaintingArea.h | 4 - src/Tool/IntelliTool.cpp | 5 +- src/Tool/IntelliTool.h | 3 +- 90 files changed, 722 insertions(+), 741 deletions(-) create mode 100644 docs/html/search/all_12.html create mode 100644 docs/html/search/all_12.js diff --git a/docs/html/_intelli_color_picker_8cpp_source.html b/docs/html/_intelli_color_picker_8cpp_source.html index d997afc..7d1ff02 100644 --- a/docs/html/_intelli_color_picker_8cpp_source.html +++ b/docs/html/_intelli_color_picker_8cpp_source.html @@ -89,8 +89,8 @@ $(document).ready(function(){initNavTree('_intelli_color_picker_8cpp_source.html Go to the documentation of this file.
1 #include "IntelliColorPicker.h"
2 
-
4  firstColor = {255,0,0,255};
-
5  secondColor = {0,255,255,255};
+
4  firstColor = QColor(255,0,0,255);
+
5  secondColor = QColor(0,255,255,255);
6 }
7 
diff --git a/docs/html/_intelli_photo_gui_8cpp_source.html b/docs/html/_intelli_photo_gui_8cpp_source.html index fc12fdb..b281cb4 100644 --- a/docs/html/_intelli_photo_gui_8cpp_source.html +++ b/docs/html/_intelli_photo_gui_8cpp_source.html @@ -907,7 +907,7 @@ $(document).ready(function(){initNavTree('_intelli_photo_gui_8cpp_source.html','
void createCircleTool()
void setRenderSettings(bool isFastRenderingOn)
setRenderSettings updates all Images to the new Rendersetting.
-
IntelliImage * getImageOfActiveLayer()
+
IntelliImage * getImageOfActiveLayer()
void createRectangleTool()
int getMaxWidth()
bool save(const QString &filePath, const char *fileFormat)
The save method is used for exporting the current project as one picture.
@@ -925,7 +925,7 @@ $(document).ready(function(){initNavTree('_intelli_photo_gui_8cpp_source.html','
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
static int getInt(QString Title=nullptr, QString Label=nullptr, int value=5, int minValue=-2147483647, int maxValue=2147483647, int step=1, bool *ok=nullptr)
-
int getNumberOfActiveLayer()
+
int getNumberOfActiveLayer()
@ SHAPEDIMAGE
void closeEvent(QCloseEvent *event) override
The closeEvent function handles closing events.
virtual QImage getImageData()
getImageData returns the data of the current image (Note: It will allways return a ARGB32bit QImage!...
diff --git a/docs/html/_intelli_shaped_image_8cpp_source.html b/docs/html/_intelli_shaped_image_8cpp_source.html index 91ee681..3b9c25a 100644 --- a/docs/html/_intelli_shaped_image_8cpp_source.html +++ b/docs/html/_intelli_shaped_image_8cpp_source.html @@ -141,8 +141,8 @@ $(document).ready(function(){initNavTree('_intelli_shaped_image_8cpp_source.html
53  for(int x = 0; x<imageData.width(); x++) {
54  QPoint ptr(x,y);
55  clr = imageData.pixelColor(x,y);
-
56  bool isInPolygon = IntelliTriangulation::isInPolygon(triangles, ptr);
-
57  if(isInPolygon) {
+
56  bool isInPolygon = IntelliTriangulation::isInPolygon(triangles, ptr);
+
57  if(isInPolygon) {
58  clr.setAlpha(std::min(255, clr.alpha()));
59  }else{
60  clr.setAlpha(0);
@@ -208,12 +208,12 @@ $(document).ready(function(){initNavTree('_intelli_shaped_image_8cpp_source.html
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
bool fastRenderering
fastRendering is the flag that represents the usage of 8bit pictures.
Definition: IntelliImage.h:51
@ SHAPEDIMAGE
-
bool isInPolygon(std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
ImageType TypeOfImage
The Type, an Image is.
Definition: IntelliImage.h:46
QImage imageData
The underlying image data.
Definition: IntelliImage.h:41
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:22
std::vector< QPoint > polygonData
The Vertices of The Polygon. Needs to be a planar Polygon.
IntelliShapedImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliShapedImage. Given the Image dimensions.
+
bool isInPolygon(const std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
virtual ~IntelliShapedImage() override
An Destructor.
The IntelliRasterImage manages a RASTERIMAGE.
diff --git a/docs/html/_intelli_tool_8cpp_source.html b/docs/html/_intelli_tool_8cpp_source.html index a1d20f2..1ef3e51 100644 --- a/docs/html/_intelli_tool_8cpp_source.html +++ b/docs/html/_intelli_tool_8cpp_source.html @@ -94,137 +94,141 @@ $(document).ready(function(){initNavTree('_intelli_tool_8cpp_source.html',''); i
6  this->colorPicker = colorPicker;
7  this->Toolsettings = Toolsettings;
8  this->isDrawing = false;
-
9 }
-
10 
-
11 IntelliTool::~IntelliTool(){
-
12 
-
13 }
-
14 
-
15 void IntelliTool::onMouseRightPressed(int x, int y){
-
16  if(isDrawing) {
-
17  isDrawing = false;
-
18  this->deleteToolLayer();
-
19  }
-
20 }
-
21 
-
22 void IntelliTool::onMouseRightReleased(int x, int y){
-
23  //optional for tool
-
24 }
-
25 
-
26 void IntelliTool::onMouseLeftPressed(int x, int y){
-
27  this->isDrawing = this->createToolLayer();
-
28  if(isDrawing) {
-
29  Canvas->image->calculateVisiblity();
-
30  }
-
31 }
-
32 
-
33 void IntelliTool::onMouseLeftReleased(int x, int y){
-
34  if(isDrawing) {
-
35  isDrawing = false;
-
36  this->mergeToolLayer();
-
37  this->deleteToolLayer();
-
38  activeLayer->image->calculateVisiblity();
-
39 
-
40  }
-
41 }
+
9  this->ActiveType = Tooltype::NONE;
+
10  this->activeLayer = nullptr;
+
11  this->Canvas = nullptr;
+
12 }
+
13 
+
14 IntelliTool::~IntelliTool(){
+
15 
+
16 }
+
17 
+
18 void IntelliTool::onMouseRightPressed(int x, int y){
+
19  if(isDrawing) {
+
20  isDrawing = false;
+
21  this->deleteToolLayer();
+
22  }
+
23 }
+
24 
+
25 void IntelliTool::onMouseRightReleased(int x, int y){
+
26  //optional for tool
+
27 }
+
28 
+
29 void IntelliTool::onMouseLeftPressed(int x, int y){
+
30  this->isDrawing = this->createToolLayer();
+
31  if(isDrawing) {
+
32  Canvas->image->calculateVisiblity();
+
33  }
+
34 }
+
35 
+
36 void IntelliTool::onMouseLeftReleased(int x, int y){
+
37  if(isDrawing) {
+
38  isDrawing = false;
+
39  this->mergeToolLayer();
+
40  this->deleteToolLayer();
+
41  activeLayer->image->calculateVisiblity();
42 
-
43 void IntelliTool::onMouseMoved(int x, int y){
-
44  if(isDrawing)
-
45  Canvas->image->calculateVisiblity();
-
46 }
-
47 
-
48 void IntelliTool::onWheelScrolled(int value){
-
49  //if needed for future general tasks implement in here
-
50  Area->DummyGui->setToolWidth(value + Toolsettings->getLineWidth());
-
51 }
-
52 
-
53 bool IntelliTool::createToolLayer(){
-
54  if(Area->createTempTopLayer(Area->activeLayer)) {
-
55  this->activeLayer = &Area->layerBundle[static_cast<unsigned long long>(Area->activeLayer)];
-
56  this->Canvas = &Area->layerBundle[static_cast<unsigned long long>(Area->activeLayer + 1)];
-
57  return true;
-
58  }
-
59  return false;
-
60 }
-
61 
-
62 void IntelliTool::mergeToolLayer(){
-
63  QColor clr_0;
-
64  QColor clr_1;
-
65  QImage updatedImage = activeLayer->image->getImageData();
-
66 
-
67  for(int y = 0; y<activeLayer->height; y++) {
-
68  for(int x = 0; x<activeLayer->width; x++) {
-
69  clr_0 = updatedImage.pixelColor(x,y);
-
70  clr_1 = Canvas->image->imageData.pixelColor(x,y);
-
71  float t = static_cast<float>(clr_1.alpha()) / 255.f;
-
72  int r = static_cast<int>(static_cast<float>(clr_1.red()) * (t) + static_cast<float>(clr_0.red()) * (1.f - t) + 0.5f);
-
73  int g = static_cast<int>(static_cast<float>(clr_1.green()) * (t) + static_cast<float>(clr_0.green()) * (1.f - t) + 0.5f);
-
74  int b = static_cast<int>(static_cast<float>(clr_1.blue()) * (t) + static_cast<float>(clr_0.blue() * (1.f - t)) + 0.5f);
-
75  int a = std::min(clr_0.alpha() + clr_1.alpha(), 255);
-
76  clr_0.setRed(r);
-
77  clr_0.setGreen(g);
-
78  clr_0.setBlue(b);
-
79  clr_0.setAlpha(a);
-
80 
-
81  updatedImage.setPixelColor(x, y, clr_0);
-
82  }
-
83  }
-
84  activeLayer->image->setImageData(updatedImage);
-
85  if(Canvas->image->getPolygonData().size() > 0) {
-
86  activeLayer->image->setPolygon(Canvas->image->getPolygonData());
-
87  }
-
88  Area->DummyGui->UpdateGui();
-
89 }
-
90 
-
91 void IntelliTool::deleteToolLayer(){
-
92  Area->deleteLayer(Area->activeLayer + 1, true);
-
93  this->Canvas = nullptr;
-
94 }
-
95 
-
96 IntelliTool::Tooltype IntelliTool::getTooltype(){
-
97  return ActiveType;
-
98 }
-
99 
-
100 bool IntelliTool::getIsDrawing(){
-
101  return isDrawing;
-
102 }
+
43  }
+
44 }
+
45 
+
46 void IntelliTool::onMouseMoved(int x, int y){
+
47  if(isDrawing)
+
48  Canvas->image->calculateVisiblity();
+
49 }
+
50 
+
51 void IntelliTool::onWheelScrolled(int value){
+
52  //if needed for future general tasks implement in here
+
53  Area->DummyGui->setToolWidth(value + Toolsettings->getLineWidth());
+
54 }
+
55 
+
56 bool IntelliTool::createToolLayer(){
+
57  if(Area->createTempTopLayer(Area->activeLayer)) {
+
58  this->activeLayer = &Area->layerBundle[static_cast<unsigned long long>(Area->activeLayer)];
+
59  this->Canvas = &Area->layerBundle[static_cast<unsigned long long>(Area->activeLayer + 1)];
+
60  return true;
+
61  }
+
62  return false;
+
63 }
+
64 
+
65 void IntelliTool::mergeToolLayer(){
+
66  QColor clr_0;
+
67  QColor clr_1;
+
68  QImage updatedImage = activeLayer->image->getImageData();
+
69 
+
70  for(int y = 0; y<activeLayer->height; y++) {
+
71  for(int x = 0; x<activeLayer->width; x++) {
+
72  clr_0 = updatedImage.pixelColor(x,y);
+
73  clr_1 = Canvas->image->imageData.pixelColor(x,y);
+
74  float t = static_cast<float>(clr_1.alpha()) / 255.f;
+
75  int r = static_cast<int>(static_cast<float>(clr_1.red()) * (t) + static_cast<float>(clr_0.red()) * (1.f - t) + 0.5f);
+
76  int g = static_cast<int>(static_cast<float>(clr_1.green()) * (t) + static_cast<float>(clr_0.green()) * (1.f - t) + 0.5f);
+
77  int b = static_cast<int>(static_cast<float>(clr_1.blue()) * (t) + static_cast<float>(clr_0.blue() * (1.f - t)) + 0.5f);
+
78  int a = std::min(clr_0.alpha() + clr_1.alpha(), 255);
+
79  clr_0.setRed(r);
+
80  clr_0.setGreen(g);
+
81  clr_0.setBlue(b);
+
82  clr_0.setAlpha(a);
+
83 
+
84  updatedImage.setPixelColor(x, y, clr_0);
+
85  }
+
86  }
+
87  activeLayer->image->setImageData(updatedImage);
+
88  if(Canvas->image->getPolygonData().size() > 0) {
+
89  activeLayer->image->setPolygon(Canvas->image->getPolygonData());
+
90  }
+
91  Area->DummyGui->UpdateGui();
+
92 }
+
93 
+
94 void IntelliTool::deleteToolLayer(){
+
95  Area->deleteLayer(Area->activeLayer + 1, true);
+
96  this->Canvas = nullptr;
+
97 }
+
98 
+
99 IntelliTool::Tooltype IntelliTool::getTooltype(){
+
100  return ActiveType;
+
101 }
+
102 
+
103 bool IntelliTool::getIsDrawing(){
+
104  return isDrawing;
+
105 }
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
+
@ NONE
void deleteLayer(int idx, bool isTool=false)
The deleteLayer method removes a layer at a given idx.
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
Tooltype
Definition: IntelliTool.h:20
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
-
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:73
+
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:74
virtual std::vector< QPoint > getPolygonData()
A function that returns the Polygondata if existent.
Definition: IntelliImage.h:134
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
-
LayerObject * activeLayer
A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...
Definition: IntelliTool.h:63
-
Tooltype getTooltype()
Definition: IntelliTool.cpp:96
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:68
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
+
LayerObject * activeLayer
A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...
Definition: IntelliTool.h:64
+
Tooltype getTooltype()
Definition: IntelliTool.cpp:99
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:69
int width
width - Stores the width of a layer in pixels.
Definition: PaintingArea.h:31
virtual QImage getImageData()
getImageData returns the data of the current image (Note: It will allways return a ARGB32bit QImage!...
virtual void setImageData(const QImage &newData)
setImageData overwrites the old imageData the new imageData.
void setToolWidth(int value)
-
bool getIsDrawing()
+
bool getIsDrawing()
int height
height - Stores the height of a layer in pixels.
Definition: PaintingArea.h:35
-
Tooltype ActiveType
Definition: IntelliTool.h:51
+
Tooltype ActiveType
Definition: IntelliTool.h:52
The IntelliColorPicker manages the selected colors for one whole project.
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general Painting Area and colorPicker.
Definition: IntelliTool.cpp:4
void UpdateGui()
QImage imageData
The underlying image data.
Definition: IntelliImage.h:41
IntelliImage * image
image - Stores the imageData of the current LayerObject.
Definition: PaintingArea.h:27
int getLineWidth()
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
-
virtual ~IntelliTool()=0
An abstract Destructor.
Definition: IntelliTool.cpp:11
+
virtual ~IntelliTool()=0
An abstract Destructor.
Definition: IntelliTool.cpp:14
virtual void setPolygon(const std::vector< QPoint > &polygonData)=0
An abstract function that sets the data of the visible Polygon, if needed.
@ PEN
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
@ FLOODFILL
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
@ NONE
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
Tooltype
Definition: IntelliTool.h:20
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
-
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:73
+
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:74
The LayerObject struct holds all the information needed to construct a layer.
Definition: PaintingArea.h:23
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
-
LayerObject * activeLayer
A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...
Definition: IntelliTool.h:63
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
+
LayerObject * activeLayer
A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...
Definition: IntelliTool.h:64
@ PLAIN
@ POLYGON
-
Tooltype getTooltype()
Definition: IntelliTool.cpp:96
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:68
+
Tooltype getTooltype()
Definition: IntelliTool.cpp:99
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:69
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
-
bool getIsDrawing()
-
Tooltype ActiveType
Definition: IntelliTool.h:51
+
bool getIsDrawing()
+
Tooltype ActiveType
Definition: IntelliTool.h:52
The IntelliColorPicker manages the selected colors for one whole project.
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general Painting Area and colorPicker.
Definition: IntelliTool.cpp:4
@ RECTANGLE
Definition: mainUnitTest.cpp:8
@ LINE
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
-
virtual ~IntelliTool()=0
An abstract Destructor.
Definition: IntelliTool.cpp:11
+
virtual ~IntelliTool()=0
An abstract Destructor.
Definition: IntelliTool.cpp:14
@ CIRCLE
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Clearing the canvas layer.
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws a line between two given points in a given color.
virtual void onWheelScrolled(int value) override
A function managing the scroll event. Changing the edge Width relative to value.
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
QColor getSecondColor()
A function to read the secondary selected color.
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
-
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:73
+
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:74
int getInnerAlpha()
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A function that draws a point between on a given point in a given color.
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:68
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:69
IntelliToolCircle(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker. And reading in the inner alpha and ed...
virtual ~IntelliToolCircle() override
A Destructor.
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
QColor getFirstColor()
A function to read the primary selected color.
-
Tooltype ActiveType
Definition: IntelliTool.h:51
+
Tooltype ActiveType
Definition: IntelliTool.h:52
The IntelliColorPicker manages the selected colors for one whole project.
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...
IntelliImage * image
image - Stores the imageData of the current LayerObject.
Definition: PaintingArea.h:27
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse.
void setLineWidth(int LineWidth)
int getLineWidth()
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
diff --git a/docs/html/_intelli_tool_circle_8h_source.html b/docs/html/_intelli_tool_circle_8h_source.html index 3c79cb3..2102f4e 100644 --- a/docs/html/_intelli_tool_circle_8h_source.html +++ b/docs/html/_intelli_tool_circle_8h_source.html @@ -125,11 +125,11 @@ $(document).ready(function(){initNavTree('_intelli_tool_circle_8h_source.html','
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Clearing the canvas layer.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
virtual void onWheelScrolled(int value) override
A function managing the scroll event. Changing the edge Width relative to value.
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
IntelliToolCircle(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker. And reading in the inner alpha and ed...
virtual ~IntelliToolCircle() override
A Destructor.
diff --git a/docs/html/_intelli_tool_flood_fill_8cpp_source.html b/docs/html/_intelli_tool_flood_fill_8cpp_source.html index 80a78a4..7b84984 100644 --- a/docs/html/_intelli_tool_flood_fill_8cpp_source.html +++ b/docs/html/_intelli_tool_flood_fill_8cpp_source.html @@ -171,11 +171,11 @@ $(document).ready(function(){initNavTree('_intelli_tool_flood_fill_8cpp_source.h
83 }
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
@ FLOODFILL
IntelliToolFloodFill(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker.
@@ -185,9 +185,9 @@ $(document).ready(function(){initNavTree('_intelli_tool_flood_fill_8cpp_source.h
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Sets the point to flood fill around and does t...
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
virtual ~IntelliToolFloodFill() override
A Destructor.
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
-
LayerObject * activeLayer
A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...
Definition: IntelliTool.h:63
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:68
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
+
LayerObject * activeLayer
A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...
Definition: IntelliTool.h:64
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:69
int width
width - Stores the width of a layer in pixels.
Definition: PaintingArea.h:31
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
@@ -195,13 +195,13 @@ $(document).ready(function(){initNavTree('_intelli_tool_flood_fill_8cpp_source.h
QColor getFirstColor()
A function to read the primary selected color.
virtual QColor getPixelColor(QPoint &point)
A function that returns the pixelcolor at a certain point.
int height
height - Stores the height of a layer in pixels.
Definition: PaintingArea.h:35
-
Tooltype ActiveType
Definition: IntelliTool.h:51
+
Tooltype ActiveType
Definition: IntelliTool.h:52
The IntelliColorPicker manages the selected colors for one whole project.
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Clearing the canvas.
IntelliImage * image
image - Stores the imageData of the current LayerObject.
Definition: PaintingArea.h:27
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
IntelliToolFloodFill(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker.
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse.
virtual void onWheelScrolled(int value) override
A function managing the scroll event.
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Sets the point to flood fill around and does t...
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
virtual ~IntelliToolFloodFill() override
A Destructor.
diff --git a/docs/html/_intelli_tool_line_8cpp_source.html b/docs/html/_intelli_tool_line_8cpp_source.html index 4635ffa..3f9ffdf 100644 --- a/docs/html/_intelli_tool_line_8cpp_source.html +++ b/docs/html/_intelli_tool_line_8cpp_source.html @@ -134,38 +134,38 @@ $(document).ready(function(){initNavTree('_intelli_tool_line_8cpp_source.html','
46 }
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws a line between two given points in a given color.
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
IntelliToolLine(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker.
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po...
virtual void onWheelScrolled(int value) override
A function managing the scroll event. Changing the lineWidth relative to value.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
-
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:73
+
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:74
virtual ~IntelliToolLine() override
An abstract Destructor.
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A function that draws a point between on a given point in a given color.
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse.
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Clearing the canvas.
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:68
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:69
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
QColor getFirstColor()
A function to read the primary selected color.
-
Tooltype ActiveType
Definition: IntelliTool.h:51
+
Tooltype ActiveType
Definition: IntelliTool.h:52
The IntelliColorPicker manages the selected colors for one whole project.
IntelliImage * image
image - Stores the imageData of the current LayerObject.
Definition: PaintingArea.h:27
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Sets the starting point of the line.
@ LINE
void setLineWidth(int LineWidth)
int getLineWidth()
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
diff --git a/docs/html/_intelli_tool_line_8h_source.html b/docs/html/_intelli_tool_line_8h_source.html index 1d52f93..8ba791a 100644 --- a/docs/html/_intelli_tool_line_8h_source.html +++ b/docs/html/_intelli_tool_line_8h_source.html @@ -121,14 +121,14 @@ $(document).ready(function(){initNavTree('_intelli_tool_line_8h_source.html','')
76 #endif
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
IntelliToolLine(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker.
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po...
virtual void onWheelScrolled(int value) override
A function managing the scroll event. Changing the lineWidth relative to value.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
virtual ~IntelliToolLine() override
An abstract Destructor.
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse.
diff --git a/docs/html/_intelli_tool_pen_8cpp_source.html b/docs/html/_intelli_tool_pen_8cpp_source.html index 654b941..e13c012 100644 --- a/docs/html/_intelli_tool_pen_8cpp_source.html +++ b/docs/html/_intelli_tool_pen_8cpp_source.html @@ -136,37 +136,37 @@ $(document).ready(function(){initNavTree('_intelli_tool_pen_8cpp_source.html',''
@ PEN
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws a line between two given points in a given color.
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
virtual ~IntelliToolPen() override
A Destructor.
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. To draw the line.
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Resetting the current draw.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
-
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:73
+
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:74
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A function that draws a point between on a given point in a given color.
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:68
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:69
virtual void onWheelScrolled(int value) override
A function managing the scroll event. Changing penWidth relativ to value.
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse. Merging the drawing to the active layer.
QColor getFirstColor()
A function to read the primary selected color.
IntelliToolPen(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker. Reading the penWidth.
-
Tooltype ActiveType
Definition: IntelliTool.h:51
+
Tooltype ActiveType
Definition: IntelliTool.h:52
The IntelliColorPicker manages the selected colors for one whole project.
IntelliImage * image
image - Stores the imageData of the current LayerObject.
Definition: PaintingArea.h:27
void setLineWidth(int LineWidth)
int getLineWidth()
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Starting the drawing procedure.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
virtual ~IntelliToolPen() override
A Destructor.
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. To draw the line.
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Resetting the current draw.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
diff --git a/docs/html/_intelli_tool_plain_8cpp_source.html b/docs/html/_intelli_tool_plain_8cpp_source.html index 3c78546..cd751eb 100644 --- a/docs/html/_intelli_tool_plain_8cpp_source.html +++ b/docs/html/_intelli_tool_plain_8cpp_source.html @@ -126,32 +126,32 @@ $(document).ready(function(){initNavTree('_intelli_tool_plain_8cpp_source.html',
38 }
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
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.
virtual void onWheelScrolled(int value) override
A function managing the scroll event.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Filling the whole canvas.
@ PLAIN
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:68
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:69
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
QColor getFirstColor()
A function to read the primary selected color.
-
Tooltype ActiveType
Definition: IntelliTool.h:51
+
Tooltype ActiveType
Definition: IntelliTool.h:52
The IntelliColorPicker manages the selected colors for one whole project.
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Resetting the current fill.
IntelliImage * image
image - Stores the imageData of the current LayerObject.
Definition: PaintingArea.h:27
IntelliToolPlainTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker.
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
virtual ~IntelliToolPlainTool() override
A Destructor.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
diff --git a/docs/html/_intelli_tool_plain_8h_source.html b/docs/html/_intelli_tool_plain_8h_source.html index 4072cd9..757984f 100644 --- a/docs/html/_intelli_tool_plain_8h_source.html +++ b/docs/html/_intelli_tool_plain_8h_source.html @@ -118,11 +118,11 @@ $(document).ready(function(){initNavTree('_intelli_tool_plain_8h_source.html',''
70 #endif
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
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.
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
The IntelliToolPlainTool class represents a tool to fill the whole canvas with one color.
virtual void onWheelScrolled(int value) override
A function managing the scroll event.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
diff --git a/docs/html/_intelli_tool_polygon_8cpp_source.html b/docs/html/_intelli_tool_polygon_8cpp_source.html index 1bf79d6..5b880b5 100644 --- a/docs/html/_intelli_tool_polygon_8cpp_source.html +++ b/docs/html/_intelli_tool_polygon_8cpp_source.html @@ -115,7 +115,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
27  if(Area->getPolygonDataOfRealLayer().size()>2) {
28  std::vector<Triangle> Triangles = IntelliTriangulation::calculateTriangles(Area->getPolygonDataOfRealLayer());
29  QPoint Point(x,y);
-
30  isInside = IntelliTriangulation::isInPolygon(Triangles,Point);
+
30  isInside = IntelliTriangulation::isInPolygon(Triangles,Point);
31  }
32  else{
33  isInside = true;
@@ -188,7 +188,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
100  for(int i = 0; i < activeLayer->width; i++) {
101  for(int j = 0; j < activeLayer->height; j++) {
102  Point = QPoint(i,j);
-
103  if(IntelliTriangulation::isInPolygon(Triangles,Point)) {
+
103  if(IntelliTriangulation::isInPolygon(Triangles,Point)) {
104  this->Canvas->image->drawPixel(Point, colorTwo);
105  }
106  }
@@ -238,39 +238,38 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
150 }
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws a line between two given points in a given color.
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
std::vector< Triangle > calculateTriangles(std::vector< QPoint > polyPoints)
A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ...
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
QColor getSecondColor()
A function to read the secondary selected color.
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
-
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:73
+
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:74
int getInnerAlpha()
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A function that draws a point between on a given point in a given color.
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
-
LayerObject * activeLayer
A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...
Definition: IntelliTool.h:63
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
+
LayerObject * activeLayer
A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...
Definition: IntelliTool.h:64
IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings, bool isSettingPolygon=false)
A constructor setting the general paintingArea and colorPicker.
@ POLYGON
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:68
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:69
IntelliImage::ImageType getTypeOfImageRealLayer()
int width
width - Stores the width of a layer in pixels.
Definition: PaintingArea.h:31
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
@ SHAPEDIMAGE
virtual void setImageData(const QImage &newData)
setImageData overwrites the old imageData the new imageData.
-
bool isInPolygon(std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Resetting the current fill.
QColor getFirstColor()
A function to read the primary selected color.
int height
height - Stores the height of a layer in pixels.
Definition: PaintingArea.h:35
-
QImage getImageDataOfActiveLayer()
getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...
-
Tooltype ActiveType
Definition: IntelliTool.h:51
+
QImage getImageDataOfActiveLayer()
getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...
+
Tooltype ActiveType
Definition: IntelliTool.h:52
The IntelliColorPicker manages the selected colors for one whole project.
~IntelliToolPolygon() override
A Destructor.
@ RASTERIMAGE
@@ -278,12 +277,13 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
std::vector< QPoint > getPolygonDataOfRealLayer()
void setLineWidth(int LineWidth)
int getLineWidth()
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Setting polygon points.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
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.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
bool isInPolygon(const std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
virtual void onWheelScrolled(int value) override
A function managing the scroll event. CHanging the lineWidth relative to value.
virtual void setPolygon(const std::vector< QPoint > &polygonData)=0
An abstract function that sets the data of the visible Polygon, if needed.
diff --git a/docs/html/_intelli_tool_polygon_8h_source.html b/docs/html/_intelli_tool_polygon_8h_source.html index 47c74d6..560626e 100644 --- a/docs/html/_intelli_tool_polygon_8h_source.html +++ b/docs/html/_intelli_tool_polygon_8h_source.html @@ -132,10 +132,10 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8h_source.html',
107 #endif
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings, bool isSettingPolygon=false)
A constructor setting the general paintingArea and colorPicker.
diff --git a/docs/html/_intelli_tool_rectangle_8cpp_source.html b/docs/html/_intelli_tool_rectangle_8cpp_source.html index c152a86..c43529a 100644 --- a/docs/html/_intelli_tool_rectangle_8cpp_source.html +++ b/docs/html/_intelli_tool_rectangle_8cpp_source.html @@ -152,37 +152,37 @@ $(document).ready(function(){initNavTree('_intelli_tool_rectangle_8cpp_source.ht
virtual void onWheelScrolled(int value) override
A function managing the scroll event.Changing edgeWidth relativ to value.
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws a line between two given points in a given color.
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
virtual ~IntelliToolRectangle() override
A Destructor.
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Setting the originCorner and draws a rectangle...
QColor getSecondColor()
A function to read the secondary selected color.
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse.Resetting the current draw.
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
-
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:73
+
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:74
int getInnerAlpha()
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:68
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:69
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
QColor getFirstColor()
A function to read the primary selected color.
-
Tooltype ActiveType
Definition: IntelliTool.h:51
+
Tooltype ActiveType
Definition: IntelliTool.h:52
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.Drawing a rectangle to currrent mouse position.
The IntelliColorPicker manages the selected colors for one whole project.
@ RECTANGLE
IntelliImage * image
image - Stores the imageData of the current LayerObject.
Definition: PaintingArea.h:27
void setLineWidth(int LineWidth)
int getLineWidth()
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse. Merging the draw to the active layer.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
IntelliToolRectangle(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker. And reading in the alphaInner and edg...
diff --git a/docs/html/_intelli_tool_rectangle_8h_source.html b/docs/html/_intelli_tool_rectangle_8h_source.html index a0cd611..74655e4 100644 --- a/docs/html/_intelli_tool_rectangle_8h_source.html +++ b/docs/html/_intelli_tool_rectangle_8h_source.html @@ -124,12 +124,12 @@ $(document).ready(function(){initNavTree('_intelli_tool_rectangle_8h_source.html
virtual void onWheelScrolled(int value) override
A function managing the scroll event.Changing edgeWidth relativ to value.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:56
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:57
-
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:58
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:59
virtual ~IntelliToolRectangle() override
A Destructor.
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Setting the originCorner and draws a rectangle...
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:49
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:50
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse.Resetting the current draw.
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:53
The IntelliToolRectangle class represents a tool to draw a rectangle.
diff --git a/docs/html/_intelli_triangulation_8cpp_source.html b/docs/html/_intelli_triangulation_8cpp_source.html index cd169d1..01d0e53 100644 --- a/docs/html/_intelli_triangulation_8cpp_source.html +++ b/docs/html/_intelli_triangulation_8cpp_source.html @@ -201,7 +201,7 @@ $(document).ready(function(){initNavTree('_intelli_triangulation_8cpp_source.htm
113  return Triangles;
114 }
115 
-
116 bool IntelliTriangulation::isInPolygon(std::vector<Triangle> &triangles, QPoint &point){
+
116 bool IntelliTriangulation::isInPolygon(const std::vector<Triangle> &triangles, QPoint &point){
117  for(auto triangle : triangles) {
118  if(IntelliTriangulation::isInTriangle(triangle, point)) {
119  return true;
@@ -217,8 +217,8 @@ $(document).ready(function(){initNavTree('_intelli_triangulation_8cpp_source.htm
#define pi
QPoint C
The Triangle struct holds the 3 vertices of a triangle.
-
bool isInPolygon(std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
QPoint A
+
bool isInPolygon(const std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
diff --git a/docs/html/_intelli_triangulation_8h.js b/docs/html/_intelli_triangulation_8h.js index 0384860..1dfa6d3 100644 --- a/docs/html/_intelli_triangulation_8h.js +++ b/docs/html/_intelli_triangulation_8h.js @@ -2,7 +2,7 @@ var _intelli_triangulation_8h = [ [ "Triangle", "struct_triangle.html", "struct_triangle" ], [ "calculateTriangles", "_intelli_triangulation_8h.html#acdaf1ed598e868b25e9e06d580da32e5", null ], - [ "isInPolygon", "_intelli_triangulation_8h.html#a00621e2d8708fe2e8966d7d79b64e186", null ], + [ "isInPolygon", "_intelli_triangulation_8h.html#ac276696f29d141ed34614c1c3b1c040f", null ], [ "isInTriangle", "_intelli_triangulation_8h.html#ac150fee67fd41a451bd2592f10e00197", null ], [ "sign", "_intelli_triangulation_8h.html#af9af549a7faff35a74c1265b290ea0ca", null ] ]; \ No newline at end of file diff --git a/docs/html/_intelli_triangulation_8h_source.html b/docs/html/_intelli_triangulation_8h_source.html index f1c9ada..3a7b7a2 100644 --- a/docs/html/_intelli_triangulation_8h_source.html +++ b/docs/html/_intelli_triangulation_8h_source.html @@ -121,7 +121,7 @@ $(document).ready(function(){initNavTree('_intelli_triangulation_8h_source.html'
49 
55 std::vector<Triangle> calculateTriangles(std::vector<QPoint> polyPoints);
56 
-
63 bool isInPolygon(std::vector<Triangle> &triangles, QPoint &point);
+
63 bool isInPolygon(const std::vector<Triangle> &triangles, QPoint &point);
64 }
65 
66 #endif
@@ -133,10 +133,10 @@ $(document).ready(function(){initNavTree('_intelli_triangulation_8h_source.html'
QPoint B
QPoint C
The Triangle struct holds the 3 vertices of a triangle.
-
bool isInPolygon(std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
QPoint A
Definition: mainUnitTest.cpp:8
+
bool isInPolygon(const std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
int getWidthOfActive()
The getWidthOfActive gets the horizontal dimensions of the active layer.
@ PEN
void createCircleTool()
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:18
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:36
void setRenderSettings(bool isFastRenderingOn)
setRenderSettings updates all Images to the new Rendersetting.
-
IntelliImage * getImageOfActiveLayer()
+
IntelliImage * getImageOfActiveLayer()
void mouseReleaseEvent(QMouseEvent *event) override
void createRectangleTool()
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:29
int getMaxWidth()
bool save(const QString &filePath, const char *fileFormat)
The save method is used for exporting the current project as one picture.
@@ -591,18 +580,18 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');
The IntelliToolPen class represents a tool to draw a line.
void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:25
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
@ PLAIN
@ POLYGON
-
Tooltype getTooltype()
Definition: IntelliTool.cpp:96
+
Tooltype getTooltype()
Definition: IntelliTool.cpp:99
IntelliImage::ImageType getTypeOfImageRealLayer()
int width
width - Stores the width of a layer in pixels.
Definition: PaintingArea.h:31
bool isFastRenderering()
The getfastRenderer gets the value of the flag for the fastRenderer setting.
~PaintingArea() override
This deconstructor is used to clear up the memory and remove the currently active window.
void mouseMoveEvent(QMouseEvent *event) override
-
int getNumberOfActiveLayer()
+
int getNumberOfActiveLayer()
void setFirstColor(QColor Color)
A function to set the primary color.
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
@ SHAPEDIMAGE
@@ -613,11 +602,11 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
IntelliColorPicker colorPicker
Definition: PaintingArea.h:202
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)
PaintingArea is the constructor of the PaintingArea class, which initiates the working environment.
-
bool getIsDrawing()
+
bool getIsDrawing()
QColor getFirstColor()
A function to read the primary selected color.
int height
height - Stores the height of a layer in pixels.
Definition: PaintingArea.h:35
-
QImage getImageDataOfActiveLayer()
getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...
+
QImage getImageDataOfActiveLayer()
getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...
void createFloodFillTool()
void slotActivateLayer(int a)
The slotActivateLayer method handles the event of selecting one layer as active.
void paintEvent(QPaintEvent *event) override
@@ -629,7 +618,6 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');
virtual bool loadImage(const QString &filePath)
A function that loads and sclaes an image to the fitting dimensions.
std::vector< QPoint > getPolygonDataOfRealLayer()
IntelliToolsettings Toolsettings
Definition: PaintingArea.h:201
-
void resizeEvent(QResizeEvent *event) override
void setPolygon(int idx)
setPolygon is used for setting polygondata, it only works on RASTER images
@ LINE
void swapColors()
A function switching primary and secondary color.
@@ -639,10 +627,10 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');
The IntelliToolCircle class represents a tool to draw a circle.
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:22
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:43
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:46
The IntelliToolPolygon managed the Drawing of Polygonforms.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:48
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:51
The IntelliRasterImage manages a RASTERIMAGE.
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)
The addLayer adds a layer to the current project/ painting area.
diff --git a/docs/html/_painting_area_8h_source.html b/docs/html/_painting_area_8h_source.html index 89a704d..0f9ed23 100644 --- a/docs/html/_painting_area_8h_source.html +++ b/docs/html/_painting_area_8h_source.html @@ -187,43 +187,39 @@ $(document).ready(function(){initNavTree('_painting_area_8h_source.html',''); in
221 
222 void paintEvent(QPaintEvent*event) override;
223 
-
224 void resizeEvent(QResizeEvent*event) override;
-
225 
-
226 private:
-
227 void setLayerDimensions(int maxWidth, int maxHeight);
-
228 void selectLayerUp();
-
229 void selectLayerDown();
-
230 IntelliTool* copyActiveTool();
-
231 
-
232 QImage* Canvas;
-
233 int maxWidth;
-
234 int maxHeight;
+
224 private:
+
225 void setLayerDimensions(int maxWidth, int maxHeight);
+
226 void selectLayerUp();
+
227 void selectLayerDown();
+
228 IntelliTool* copyActiveTool();
+
229 
+
230 QImage* Canvas;
+
231 int maxWidth;
+
232 int maxHeight;
+
233 
+
234 bool isSettingPolygon = false;
235 
-
236 bool isSettingPolygon = false;
-
237 
-
238 IntelliRenderSettings renderSettings;
-
239 IntelliTool* Tool;
-
240 IntelliPhotoGui* DummyGui;
-
241 
-
242 std::vector<LayerObject> layerBundle;
-
243 int activeLayer = -1;
+
236 IntelliRenderSettings renderSettings;
+
237 IntelliTool* Tool;
+
238 IntelliPhotoGui* DummyGui;
+
239 
+
240 std::vector<LayerObject> layerBundle;
+
241 int activeLayer = -1;
+
242 
+
243 void drawLayers(bool forSaving = false);
244 
-
245 void drawLayers(bool forSaving = false);
+
245 bool createTempTopLayer(int idx);
246 
-
247 void resizeLayer(QImage*image_res, const QSize &newSize);
-
248 
-
249 bool createTempTopLayer(int idx);
-
250 
-
251 void updateTools();
-
252 };
-
253 
-
254 #endif
+
247 void updateTools();
+
248 };
+
249 
+
250 #endif
int getWidthOfActive()
The getWidthOfActive gets the horizontal dimensions of the active layer.
void createCircleTool()
void setRenderSettings(bool isFastRenderingOn)
setRenderSettings updates all Images to the new Rendersetting.
-
IntelliImage * getImageOfActiveLayer()
+
IntelliImage * getImageOfActiveLayer()
void mouseReleaseEvent(QMouseEvent *event) override
void createRectangleTool()
@@ -258,7 +254,7 @@ $(document).ready(function(){initNavTree('_painting_area_8h_source.html',''); in
~PaintingArea() override
This deconstructor is used to clear up the memory and remove the currently active window.
void mouseMoveEvent(QMouseEvent *event) override
-
int getNumberOfActiveLayer()
+
int getNumberOfActiveLayer()
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
void slotDeleteActiveLayer()
The slotDeleteActiveLayer method handles the deletion of the active layer.
bool open(const QString &filePath)
The open method is used for loading a picture into the current layer.
@@ -267,7 +263,7 @@ $(document).ready(function(){initNavTree('_painting_area_8h_source.html',''); in
IntelliColorPicker colorPicker
Definition: PaintingArea.h:202
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)
PaintingArea is the constructor of the PaintingArea class, which initiates the working environment.
int height
height - Stores the height of a layer in pixels.
Definition: PaintingArea.h:35
-
QImage getImageDataOfActiveLayer()
getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...
+
QImage getImageDataOfActiveLayer()
getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...
void createFloodFillTool()
void slotActivateLayer(int a)
The slotActivateLayer method handles the event of selecting one layer as active.
The IntelliColorPicker manages the selected colors for one whole project.
@@ -277,7 +273,6 @@ $(document).ready(function(){initNavTree('_painting_area_8h_source.html',''); in
IntelliImage * image
image - Stores the imageData of the current LayerObject.
Definition: PaintingArea.h:27
std::vector< QPoint > getPolygonDataOfRealLayer()
IntelliToolsettings Toolsettings
Definition: PaintingArea.h:201
-
void resizeEvent(QResizeEvent *event) override
void setPolygon(int idx)
setPolygon is used for setting polygondata, it only works on RASTER images
void colorPickerSwapColors()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
diff --git a/docs/html/class_intelli_tool.html b/docs/html/class_intelli_tool.html index f53b14d..3620d05 100644 --- a/docs/html/class_intelli_tool.html +++ b/docs/html/class_intelli_tool.html @@ -122,7 +122,8 @@ Public Types
  Tooltype::PLAIN, Tooltype::POLYGON, -Tooltype::RECTANGLE +Tooltype::RECTANGLE, +Tooltype::NONE
}   @@ -212,6 +213,7 @@ Protected Attributes PLAIN  POLYGON  RECTANGLE  +NONE 

Definition at line 20 of file IntelliTool.h.

@@ -289,7 +291,7 @@ Protected Attributes

An abstract Destructor.

-

Definition at line 11 of file IntelliTool.cpp.

+

Definition at line 14 of file IntelliTool.cpp.

@@ -309,7 +311,7 @@ Protected Attributes
-

Definition at line 100 of file IntelliTool.cpp.

+

Definition at line 103 of file IntelliTool.cpp.

@@ -328,7 +330,7 @@ Protected Attributes
-

Definition at line 96 of file IntelliTool.cpp.

+

Definition at line 99 of file IntelliTool.cpp.

@@ -377,7 +379,7 @@ Protected Attributes

Reimplemented in IntelliToolPolygon, IntelliToolCircle, IntelliToolRectangle, IntelliToolLine, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.

-

Definition at line 26 of file IntelliTool.cpp.

+

Definition at line 29 of file IntelliTool.cpp.

@@ -426,7 +428,7 @@ Protected Attributes

Reimplemented in IntelliToolPolygon, IntelliToolCircle, IntelliToolRectangle, IntelliToolLine, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.

-

Definition at line 33 of file IntelliTool.cpp.

+

Definition at line 36 of file IntelliTool.cpp.

@@ -475,7 +477,7 @@ Protected Attributes

Reimplemented in IntelliToolPolygon, IntelliToolCircle, IntelliToolRectangle, IntelliToolLine, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.

-

Definition at line 43 of file IntelliTool.cpp.

+

Definition at line 46 of file IntelliTool.cpp.

@@ -524,7 +526,7 @@ Protected Attributes

Reimplemented in IntelliToolPolygon, IntelliToolCircle, IntelliToolRectangle, IntelliToolLine, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.

-

Definition at line 15 of file IntelliTool.cpp.

+

Definition at line 18 of file IntelliTool.cpp.

@@ -573,7 +575,7 @@ Protected Attributes

Reimplemented in IntelliToolPolygon, IntelliToolCircle, IntelliToolRectangle, IntelliToolLine, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.

-

Definition at line 22 of file IntelliTool.cpp.

+

Definition at line 25 of file IntelliTool.cpp.

@@ -611,7 +613,7 @@ Protected Attributes

Reimplemented in IntelliToolPolygon, IntelliToolCircle, IntelliToolRectangle, IntelliToolLine, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.

-

Definition at line 48 of file IntelliTool.cpp.

+

Definition at line 51 of file IntelliTool.cpp.

@@ -638,7 +640,7 @@ Protected Attributes

A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews.

-

Definition at line 63 of file IntelliTool.h.

+

Definition at line 64 of file IntelliTool.h.

@@ -662,7 +664,7 @@ Protected Attributes
-

Definition at line 51 of file IntelliTool.h.

+

Definition at line 52 of file IntelliTool.h.

@@ -688,7 +690,7 @@ Protected Attributes

A pointer to the general PaintingArea to interact with.

-

Definition at line 49 of file IntelliTool.h.

+

Definition at line 50 of file IntelliTool.h.

@@ -714,7 +716,7 @@ Protected Attributes

A pointer to the drawing canvas of the tool, work on this.

-

Definition at line 68 of file IntelliTool.h.

+

Definition at line 69 of file IntelliTool.h.

@@ -740,7 +742,7 @@ Protected Attributes

A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.

-

Definition at line 56 of file IntelliTool.h.

+

Definition at line 57 of file IntelliTool.h.

@@ -766,7 +768,7 @@ Protected Attributes

A flag checking if the user is currently drawing or not.

-

Definition at line 73 of file IntelliTool.h.

+

Definition at line 74 of file IntelliTool.h.

@@ -790,7 +792,7 @@ Protected Attributes
-

Definition at line 58 of file IntelliTool.h.

+

Definition at line 59 of file IntelliTool.h.

diff --git a/docs/html/class_intelli_tool.js b/docs/html/class_intelli_tool.js index bbfbb28..34404b0 100644 --- a/docs/html/class_intelli_tool.js +++ b/docs/html/class_intelli_tool.js @@ -7,7 +7,8 @@ var class_intelli_tool = [ "PEN", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fad3fa1aa45b9fe56e1fc1b558d8ed6678", null ], [ "PLAIN", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8faf62eb0bf5e5c72e80983fbbac1cb70e5", null ], [ "POLYGON", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8faecdc92bf56d960b73b02ee40125758bc", null ], - [ "RECTANGLE", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa8e8e58fe94ab307a826e087028a7c01a", null ] + [ "RECTANGLE", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa8e8e58fe94ab307a826e087028a7c01a", null ], + [ "NONE", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fab50339a10e1de285ac99d4c3990b8693", null ] ] ], [ "IntelliTool", "class_intelli_tool.html#a08ef094271ce6248b42f888472463526", null ], [ "~IntelliTool", "class_intelli_tool.html#a57fb1b27d364c9e3696eb928b75fa9f2", null ], diff --git a/docs/html/class_intelli_tool_circle.html b/docs/html/class_intelli_tool_circle.html index 252908e..85c59e4 100644 --- a/docs/html/class_intelli_tool_circle.html +++ b/docs/html/class_intelli_tool_circle.html @@ -153,7 +153,8 @@ Additional Inherited Members
  Tooltype::PLAIN, Tooltype::POLYGON, -Tooltype::RECTANGLE +Tooltype::RECTANGLE, +Tooltype::NONE
}   diff --git a/docs/html/class_intelli_tool_flood_fill.html b/docs/html/class_intelli_tool_flood_fill.html index c376724..813458f 100644 --- a/docs/html/class_intelli_tool_flood_fill.html +++ b/docs/html/class_intelli_tool_flood_fill.html @@ -153,7 +153,8 @@ Additional Inherited Members
  Tooltype::PLAIN, Tooltype::POLYGON, -Tooltype::RECTANGLE +Tooltype::RECTANGLE, +Tooltype::NONE
}   diff --git a/docs/html/class_intelli_tool_line.html b/docs/html/class_intelli_tool_line.html index fbe600e..c782844 100644 --- a/docs/html/class_intelli_tool_line.html +++ b/docs/html/class_intelli_tool_line.html @@ -153,7 +153,8 @@ Additional Inherited Members
  Tooltype::PLAIN, Tooltype::POLYGON, -Tooltype::RECTANGLE +Tooltype::RECTANGLE, +Tooltype::NONE
}   diff --git a/docs/html/class_intelli_tool_pen.html b/docs/html/class_intelli_tool_pen.html index 8e58a78..5340bba 100644 --- a/docs/html/class_intelli_tool_pen.html +++ b/docs/html/class_intelli_tool_pen.html @@ -153,7 +153,8 @@ Additional Inherited Members
  Tooltype::PLAIN, Tooltype::POLYGON, -Tooltype::RECTANGLE +Tooltype::RECTANGLE, +Tooltype::NONE
}   diff --git a/docs/html/class_intelli_tool_plain_tool.html b/docs/html/class_intelli_tool_plain_tool.html index 1e74cd8..264868f 100644 --- a/docs/html/class_intelli_tool_plain_tool.html +++ b/docs/html/class_intelli_tool_plain_tool.html @@ -153,7 +153,8 @@ Additional Inherited Members
  Tooltype::PLAIN, Tooltype::POLYGON, -Tooltype::RECTANGLE +Tooltype::RECTANGLE, +Tooltype::NONE
}   diff --git a/docs/html/class_intelli_tool_polygon.html b/docs/html/class_intelli_tool_polygon.html index ac3ad17..db07444 100644 --- a/docs/html/class_intelli_tool_polygon.html +++ b/docs/html/class_intelli_tool_polygon.html @@ -153,7 +153,8 @@ Additional Inherited Members
  Tooltype::PLAIN, Tooltype::POLYGON, -Tooltype::RECTANGLE +Tooltype::RECTANGLE, +Tooltype::NONE
}   diff --git a/docs/html/class_intelli_tool_rectangle.html b/docs/html/class_intelli_tool_rectangle.html index ef936c6..6053b31 100644 --- a/docs/html/class_intelli_tool_rectangle.html +++ b/docs/html/class_intelli_tool_rectangle.html @@ -153,7 +153,8 @@ Additional Inherited Members
  Tooltype::PLAIN, Tooltype::POLYGON, -Tooltype::RECTANGLE +Tooltype::RECTANGLE, +Tooltype::NONE
}   diff --git a/docs/html/class_painting_area-members.html b/docs/html/class_painting_area-members.html index 6357387..5e7e1ce 100644 --- a/docs/html/class_painting_area-members.html +++ b/docs/html/class_painting_area-members.html @@ -120,17 +120,16 @@ $(document).ready(function(){initNavTree('class_painting_area.html',''); initRes open(const QString &filePath)PaintingArea paintEvent(QPaintEvent *event) overridePaintingAreaprotected PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)PaintingArea - resizeEvent(QResizeEvent *event) overridePaintingAreaprotected - save(const QString &filePath, const char *fileFormat)PaintingArea - setLayerActive(int idx)PaintingArea - setLayerAlpha(int idx, int alpha)PaintingArea - setPolygon(int idx)PaintingArea - setRenderSettings(bool isFastRenderingOn)PaintingArea - slotActivateLayer(int a)PaintingAreaslot - slotDeleteActiveLayer()PaintingAreaslot - ToolsettingsPaintingArea - wheelEvent(QWheelEvent *event) overridePaintingAreaprotected - ~PaintingArea() overridePaintingArea + save(const QString &filePath, const char *fileFormat)PaintingArea + setLayerActive(int idx)PaintingArea + setLayerAlpha(int idx, int alpha)PaintingArea + setPolygon(int idx)PaintingArea + setRenderSettings(bool isFastRenderingOn)PaintingArea + slotActivateLayer(int a)PaintingAreaslot + slotDeleteActiveLayer()PaintingAreaslot + ToolsettingsPaintingArea + wheelEvent(QWheelEvent *event) overridePaintingAreaprotected + ~PaintingArea() overridePaintingArea diff --git a/docs/html/class_painting_area.html b/docs/html/class_painting_area.html index 726411a..edea4b5 100644 --- a/docs/html/class_painting_area.html +++ b/docs/html/class_painting_area.html @@ -218,8 +218,6 @@ Protected Member Functions   void paintEvent (QPaintEvent *event) override   -void resizeEvent (QResizeEvent *event) override - 

Detailed Description

The PaintingArea class manages the methods and stores information about the current painting area, which is the currently opened project.

@@ -704,7 +702,7 @@ Protected Member Functions

getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer it return a 10*10 white picture)

Returns
return the image as an rgba32bit qImage
-

Definition at line 434 of file PaintingArea.cpp.

+

Definition at line 423 of file PaintingArea.cpp.

@@ -723,7 +721,7 @@ Protected Member Functions
-

Definition at line 427 of file PaintingArea.cpp.

+

Definition at line 416 of file PaintingArea.cpp.

@@ -780,7 +778,7 @@ Protected Member Functions
-

Definition at line 423 of file PaintingArea.cpp.

+

Definition at line 412 of file PaintingArea.cpp.

@@ -1050,34 +1048,6 @@ Protected Member Functions

Definition at line 324 of file PaintingArea.cpp.

- - - -

◆ resizeEvent()

- -
-
- - - - - -
- - - - - - - - -
void PaintingArea::resizeEvent (QResizeEvent * event)
-
-overrideprotected
-
- -

Definition at line 335 of file PaintingArea.cpp.

-
diff --git a/docs/html/class_painting_area.js b/docs/html/class_painting_area.js index 2094528..24a7f17 100644 --- a/docs/html/class_painting_area.js +++ b/docs/html/class_painting_area.js @@ -31,7 +31,6 @@ var class_painting_area = [ "movePositionActive", "class_painting_area.html#ac6d089f4357b22d9a9906fd4771de3e7", null ], [ "open", "class_painting_area.html#a88c7e759aa8375a56129791645f46ea5", null ], [ "paintEvent", "class_painting_area.html#a4a8138b9508ee4ec87a7fca9160368a7", null ], - [ "resizeEvent", "class_painting_area.html#ab57e8ccda60fff7187463a90e65c5335", null ], [ "save", "class_painting_area.html#aa2463d4f403224086acab02903ae407e", null ], [ "setLayerActive", "class_painting_area.html#a79eb059829f27e8cdb3a54c5cd3d12c9", null ], [ "setLayerAlpha", "class_painting_area.html#a6c7e0865e684ae1089ee283b4399d055", null ], diff --git a/docs/html/functions.html b/docs/html/functions.html index 3ddbda5..9b6d083 100644 --- a/docs/html/functions.html +++ b/docs/html/functions.html @@ -452,9 +452,6 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();

- r -