diff --git a/docs/html/_intelli_input_dialog_8h_source.html b/docs/html/_intelli_input_dialog_8h_source.html
index b2db70e..1e3e363 100644
--- a/docs/html/_intelli_input_dialog_8h_source.html
+++ b/docs/html/_intelli_input_dialog_8h_source.html
@@ -89,49 +89,54 @@ $(document).ready(function(){initNavTree('_intelli_input_dialog_8h_source.html',
Go to the documentation of this file. 1 #ifndef INTELLIINPUTDIALOG_H
2 #define INTELLIINPUTDIALOG_H
-
-
-
-
-
-
-
10 IntelliInputDialog(QString Title =
nullptr, QString Label =
nullptr,
int value = 5,
int minValue = -2147483647,
int maxValue = 2147483647,
int step = 1,
bool* ok =
nullptr);
+
+
+
+
+
8 #include <QDialogButtonBox>
+
+
-
-
13 static int getInt(QString Title =
nullptr, QString Label =
nullptr,
int value = 5,
int minValue = -2147483647,
int maxValue = 2147483647,
int step = 1,
bool* ok =
nullptr);
-
-
-
-
+
+
+
+
+
16 IntelliInputDialog(QString Title =
nullptr, QString Label =
nullptr,
int value = 5,
int minValue = -2147483647,
int maxValue = 2147483647,
int step = 1,
bool* ok =
nullptr);
+
-
-
20 void createInputBox(QString Title =
nullptr, QString Label =
nullptr,
int value = 5,
int minValue = -2147483647,
int maxValue = 2147483647,
int step = 1);
-
21 void createConnections();
-
22 void setInputBoxStyle();
-
-
-
-
-
27 QDialogButtonBox* ButtonBox;
-
-
-
-
31 const QSize Linesize = QSize(150,20);
-
32 const QSize Buttonsize = QSize(72,20);
-
-
-
35 QPushButton* okButton;
-
36 QPushButton* cancelButton;
-
-
-
39 #endif // INTELLIINPUTDIALOG_H
+
19 static int getInt(QString Title =
nullptr, QString Label =
nullptr,
int value = 5,
int minValue = -2147483647,
int maxValue = 2147483647,
int step = 1,
bool* ok =
nullptr);
+
+
+
+
+
+
+
26 void createInputBox(QString Title =
nullptr, QString Label =
nullptr,
int value = 5,
int minValue = -2147483647,
int maxValue = 2147483647,
int step = 1);
+
27 void createConnections();
+
28 void setInputBoxStyle();
+
+
+
+
+
33 QDialogButtonBox* ButtonBox;
+
+
+
36 const QSize Linesize = QSize(150,20);
+
37 const QSize Buttonsize = QSize(72,20);
+
+
+
40 QPushButton* okButton;
+
41 QPushButton* cancelButton;
+
+
+
44 #endif // INTELLIINPUTDIALOG_H
-
-
-
-
-
+
+
+
+
+
diff --git a/docs/html/_intelli_photo_gui_8cpp_source.html b/docs/html/_intelli_photo_gui_8cpp_source.html
index f419c5f..b281cb4 100644
--- a/docs/html/_intelli_photo_gui_8cpp_source.html
+++ b/docs/html/_intelli_photo_gui_8cpp_source.html
@@ -905,48 +905,48 @@ $(document).ready(function(){initNavTree('_intelli_photo_gui_8cpp_source.html','
-
+
void setRenderSettings(bool isFastRenderingOn)
setRenderSettings updates all Images to the new Rendersetting.
-IntelliImage * getImageOfActiveLayer()
-void createRectangleTool()
-
-bool save(const QString &filePath, const char *fileFormat)
The save method is used for exporting the current project as one picture.
-void setLayerAlpha(int idx, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
-void setLayerActive(int idx)
The setLayerToActive method marks a specific layer as active.
-
-void deleteLayer(int idx, bool isTool=false)
The deleteLayer method removes a layer at a given idx.
-QColor getSecondColor()
A function to read the secondary selected color.
-
+IntelliImage * getImageOfActiveLayer()
+void createRectangleTool()
+
+bool save(const QString &filePath, const char *fileFormat)
The save method is used for exporting the current project as one picture.
+void setLayerAlpha(int idx, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
+void setLayerActive(int idx)
The setLayerToActive method marks a specific layer as active.
+
+void deleteLayer(int idx, bool isTool=false)
The deleteLayer method removes a layer at a given idx.
+QColor getSecondColor()
A function to read the secondary selected color.
+
IntelliPhotoGui()
The IntelliPhotoGui method is the constructor and is used to create a new instance of the main progra...
-The PaintingArea class manages the methods and stores information about the current painting area,...
-
-
-void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
-void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
-
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
+
+void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
+void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
+
-int getNumberOfActiveLayer()
+int getNumberOfActiveLayer()
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!...
+virtual QImage getImageData()
getImageData returns the data of the current image (Note: It will allways return a ARGB32bit QImage!...
void setToolWidth(int value)
-bool open(const QString &filePath)
The open method is used for loading a picture into the current layer.
-
-void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
-IntelliColorPicker colorPicker
+bool open(const QString &filePath)
The open method is used for loading a picture into the current layer.
+
+void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
+IntelliColorPicker colorPicker
-QColor getFirstColor()
A function to read the primary selected color.
-void createFloodFillTool()
+QColor getFirstColor()
A function to read the primary selected color.
+void createFloodFillTool()
-IntelliToolsettings Toolsettings
-void setPolygon(int idx)
setPolygon is used for setting polygondata, it only works on RASTER images
+IntelliToolsettings Toolsettings
+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.
-An abstract class which manages the basic IntelliImage operations.
-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.
+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.
+An abstract class which manages the basic IntelliImage operations.
+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.
-
#include <QtWidgets>
-
#include <QPixmap>
+
#include <QAction>
+
#include <QFileDialog>
+
#include <QMessageBox>
+
#include <QImageWriter>
+
#include <QMenu>
+
#include <QMenuBar>
#include <QList>
#include <QMainWindow>
#include <QGridLayout>
diff --git a/docs/html/_intelli_photo_gui_8h_source.html b/docs/html/_intelli_photo_gui_8h_source.html
index bf41cbc..918ad77 100644
--- a/docs/html/_intelli_photo_gui_8h_source.html
+++ b/docs/html/_intelli_photo_gui_8h_source.html
@@ -89,197 +89,207 @@ $(document).ready(function(){initNavTree('_intelli_photo_gui_8h_source.html','')
Go to the documentation of this file. 1 #ifndef IntelliPhotoGui_H
2 #define IntelliPhotoGui_H
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
7 #include <QImageWriter>
+
+
+
+
11 #include <QMainWindow>
+
12 #include <QGridLayout>
+
13 #include <QPushButton>
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
50 void slotCreateNewRasterLayer();
-
51 void slotCreateNewShapedLayer();
-
52 void slotDeleteLayer();
-
53 void slotSetActiveLayer();
-
54 void slotSetActiveAlpha();
-
55 void slotSetPolygon();
-
56 void slotPositionMoveUp();
-
57 void slotPositionMoveDown();
-
58 void slotPositionMoveLeft();
-
59 void slotPositionMoveRight();
-
60 void slotMoveLayerUp();
-
61 void slotMoveLayerDown();
-
-
63 void slotUpdateRenderSettingsOn();
-
64 void slotUpdateRenderSettingsOff();
-
-
66 void slotSetFirstColor();
-
67 void slotSetSecondColor();
-
-
-
70 void slotCreatePenTool();
-
71 void slotCreatePlainTool();
-
72 void slotCreateLineTool();
-
73 void slotCreateRectangleTool();
-
74 void slotCreateCircleTool();
-
75 void slotCreatePolygonTool();
-
76 void slotCreateFloodFillTool();
-
-
78 void slotAboutDialog();
-
-
80 void slotEnterPressed();
-
-
-
83 void slotSetInnerAlpha();
-
-
85 void slotResetTools();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
59 void slotCreateNewRasterLayer();
+
60 void slotCreateNewShapedLayer();
+
61 void slotDeleteLayer();
+
62 void slotSetActiveLayer();
+
63 void slotSetActiveAlpha();
+
64 void slotSetPolygon();
+
65 void slotPositionMoveUp();
+
66 void slotPositionMoveDown();
+
67 void slotPositionMoveLeft();
+
68 void slotPositionMoveRight();
+
69 void slotMoveLayerUp();
+
70 void slotMoveLayerDown();
+
+
72 void slotUpdateRenderSettingsOn();
+
73 void slotUpdateRenderSettingsOff();
+
+
75 void slotSetFirstColor();
+
76 void slotSetSecondColor();
+
+
+
79 void slotCreatePenTool();
+
80 void slotCreatePlainTool();
+
81 void slotCreateLineTool();
+
82 void slotCreateRectangleTool();
+
83 void slotCreateCircleTool();
+
84 void slotCreatePolygonTool();
+
85 void slotCreateFloodFillTool();
-
-
-
-
-
-
92 void setIntelliStyle();
+
87 void slotAboutDialog();
+
+
89 void slotEnterPressed();
+
+
+
92 void slotSetInnerAlpha();
-
-
-
-
97 bool saveFile(
const QByteArray &fileFormat);
-
-
99 void setDefaultToolValue();
-
-
-
-
-
104 const QSize Buttonsize = QSize(35,35);
-
-
106 QPushButton* CircleButton;
-
107 QPushButton* FloodFillButton;
-
108 QPushButton* LineButton;
-
109 QPushButton* PenButton;
-
110 QPushButton* PlainButton;
-
111 QPushButton* PolygonButton;
-
112 QPushButton* RectangleButton;
-
-
114 QLabel* innerAlphaLine;
-
115 QLineEdit* EditLineWidth;
-
116 QLineEdit* EditLineInnerAlpha;
-
117 QIntValidator* ValidatorLineWidth;
-
118 QIntValidator* ValidatorInnerAlpha;
-
-
120 QPushButton* FirstColorButton;
-
121 QPushButton* SecondColorButton;
-
122 QPushButton* SwitchColorButton;
-
-
124 QLabel* ActiveLayerLine;
-
125 QLabel* ActiveLayerImageLabel;
-
-
-
-
-
-
-
132 QMenu*layerCreationMenu;
-
-
-
135 QMenu*toolCreationMenu;
-
136 QMenu*toolSettingsMenu;
-
-
-
-
-
-
-
-
-
-
146 QAction*actionUpdateRenderSettingsOn;
-
147 QAction*actionUpdateRenderSettingsOff;
+
94 void slotResetTools();
+
+
+
+
+
+
+
101 void setIntelliStyle();
+
+
+
+
+
106 bool saveFile(
const QByteArray &fileFormat);
+
+
108 void setDefaultToolValue();
+
+
+
+
+
113 const QSize Buttonsize = QSize(35,35);
+
+
115 QPushButton* CircleButton;
+
116 QPushButton* FloodFillButton;
+
117 QPushButton* LineButton;
+
118 QPushButton* PenButton;
+
119 QPushButton* PlainButton;
+
120 QPushButton* PolygonButton;
+
121 QPushButton* RectangleButton;
+
+
123 QLabel* innerAlphaLine;
+
124 QLineEdit* EditLineWidth;
+
125 QLineEdit* EditLineInnerAlpha;
+
126 QIntValidator* ValidatorLineWidth;
+
127 QIntValidator* ValidatorInnerAlpha;
+
+
129 QPushButton* FirstColorButton;
+
130 QPushButton* SecondColorButton;
+
131 QPushButton* SwitchColorButton;
+
+
133 QLabel* ActiveLayerLine;
+
134 QLabel* ActiveLayerImageLabel;
+
+
+
+
+
+
+
141 QMenu*layerCreationMenu;
+
+
+
144 QMenu*toolCreationMenu;
+
145 QMenu*toolSettingsMenu;
+
+
-
-
150 QAction*actionColorPickerFirstColor;
-
151 QAction*actionColorPickerSecondColor;
-
152 QAction*actionColorSwap;
+
+
+
+
-
-
155 QAction*actionCreatePenTool;
-
156 QAction*actionCreatePlainTool;
-
157 QAction*actionCreateLineTool;
-
158 QAction*actionCreateRectangleTool;
-
159 QAction*actionCreateCircleTool;
-
160 QAction*actionCreatePolygonTool;
-
161 QAction*actionCreateFloodFillTool;
+
+
155 QAction*actionUpdateRenderSettingsOn;
+
156 QAction*actionUpdateRenderSettingsOff;
+
+
+
159 QAction* actionColorPickerFirstColor;
+
160 QAction* actionColorPickerSecondColor;
+
161 QAction* actionColorSwap;
-
-
164 QAction*actionAboutDialog;
-
165 QAction*actionAboutQtDialog;
-
-
-
168 QAction* actionCreateNewRasterLayer;
-
169 QAction* actionCreateNewShapedLayer;
-
170 QAction* actionDeleteLayer;
-
171 QAction* actionSetActiveLayer;
-
172 QAction* actionSetActiveAlpha;
-
173 QAction* actionSetPolygon;
-
174 QAction* actionMovePositionUp;
-
175 QAction* actionMovePositionDown;
-
176 QAction* actionMovePositionLeft;
-
177 QAction* actionMovePositionRight;
-
178 QAction* actionMoveLayerUp;
-
179 QAction* actionMoveLayerDown;
-
-
-
182 QList<QAction*> actionSaveAs;
-
-
184 QAction* actionSetWidth;
-
185 QAction* actionSetInnerAlpha;
-
-
-
188 QWidget* centralGuiWidget;
-
189 QGridLayout* mainLayout;
-
-
-
+
+
164 QAction* actionCreatePenTool;
+
165 QAction* actionCreatePlainTool;
+
166 QAction* actionCreateLineTool;
+
167 QAction* actionCreateRectangleTool;
+
168 QAction* actionCreateCircleTool;
+
169 QAction* actionCreatePolygonTool;
+
170 QAction* actionCreateFloodFillTool;
+
+
+
173 QAction* actionAboutDialog;
+
174 QAction* actionAboutQtDialog;
+
+
+
177 QAction* actionCreateNewRasterLayer;
+
178 QAction* actionCreateNewShapedLayer;
+
179 QAction* actionDeleteLayer;
+
180 QAction* actionSetActiveLayer;
+
181 QAction* actionSetActiveAlpha;
+
182 QAction* actionSetPolygon;
+
183 QAction* actionMovePositionUp;
+
184 QAction* actionMovePositionDown;
+
185 QAction* actionMovePositionLeft;
+
186 QAction* actionMovePositionRight;
+
187 QAction* actionMoveLayerUp;
+
188 QAction* actionMoveLayerDown;
+
+
+
191 QList<QAction*> actionSaveAs;
+
+
193 QAction* actionSetWidth;
+
194 QAction* actionSetInnerAlpha;
+
+
+
197 QWidget* centralGuiWidget;
+
198 QGridLayout* mainLayout;
+
+
+
-
The IntelliPhotoGui base class handles the graphical user interface and events for the intelliPhoto p...
+
The IntelliPhotoGui base class handles the graphical user interface and events for the intelliPhoto p...
IntelliPhotoGui()
The IntelliPhotoGui method is the constructor and is used to create a new instance of the main progra...
-
The PaintingArea class manages the methods and stores information about the current painting area,...
-
+
The PaintingArea class manages the methods and stores information about the current painting area,...
+
void closeEvent(QCloseEvent *event) override
The closeEvent function handles closing events.
void setToolWidth(int value)
-
The IntelliColorPicker manages the selected colors for one whole project.
+
The IntelliColorPicker manages the selected colors for one whole project.
+
virtual ~IntelliRasterImage() override
An Destructor.
IntelliRasterImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliRasterImage. Given the Image dimensions.
-bool fastRenderering
fastRendering is the flag that represents the usage of 8bit pictures.
+bool fastRenderering
fastRendering is the flag that represents the usage of 8bit pictures.
virtual QImage getDisplayable(const QSize &displaySize, int alpha) override
A function returning the displayable ImageData in a requested transparence and size.
-ImageType TypeOfImage
The Type, an Image is.
+ImageType TypeOfImage
The Type, an Image is.
-QImage imageData
The underlying image data.
-An abstract class which manages the basic IntelliImage operations.
+QImage imageData
The underlying image data.
+An abstract class which manages the basic IntelliImage operations.
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
virtual void calculateVisiblity() override
A function that calculates the visibility of the image if a polygon is given. [does nothing in RASTER...
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
An abstract function that sets the data of the visible Polygon, if needed.
-The IntelliRasterImage manages a RASTERIMAGE.
+The IntelliRasterImage manages a RASTERIMAGE.
virtual ~IntelliRasterImage() override
An Destructor.
IntelliRasterImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliRasterImage. Given the Image dimensions.
-
+
virtual QImage getDisplayable(const QSize &displaySize, int alpha) override
A function returning the displayable ImageData in a requested transparence and size.
-An abstract class which manages the basic IntelliImage operations.
+
+An abstract class which manages the basic IntelliImage operations.
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
virtual void calculateVisiblity() override
A function that calculates the visibility of the image if a polygon is given. [does nothing in RASTER...
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
An abstract function that sets the data of the visible Polygon, if needed.
-The IntelliRasterImage manages a RASTERIMAGE.
+The IntelliRasterImage manages a RASTERIMAGE.
diff --git a/docs/html/_intelli_render_settings_8h_source.html b/docs/html/_intelli_render_settings_8h_source.html
index d0c24c4..1e196ba 100644
--- a/docs/html/_intelli_render_settings_8h_source.html
+++ b/docs/html/_intelli_render_settings_8h_source.html
@@ -89,25 +89,30 @@ $(document).ready(function(){initNavTree('_intelli_render_settings_8h_source.htm
Go to the documentation of this file. 1 #ifndef INTELLIRENDERSETTINGS_H
2 #define INTELLIRENDERSETTINGS_H
-
-
-
-
-
-
-
-
-
-
-
22 bool fastRenderering =
true;
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
26 bool fastRenderering =
true;
+
+
+
-
+
bool isFastRenderering()
The getfastRenderer gets the value of the flag for the fastRenderer setting.
void setFastRendering(bool Updatedsetting)
setFastRendering sets fastRendering to Updatedsetting.
+
diff --git a/docs/html/_intelli_shaped_image_8cpp_source.html b/docs/html/_intelli_shaped_image_8cpp_source.html
index 3d2cda0..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++) {
-
-
+
+
58 clr.setAlpha(std::min(255, clr.alpha()));
@@ -204,18 +204,18 @@ $(document).ready(function(){initNavTree('_intelli_shaped_image_8cpp_source.html
virtual QImage getDisplayable(const QSize &displaySize, int alpha=255) override
A function returning the displayable ImageData in a requested transparence and size.
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 ...
-
The IntelliShapedImage manages a Shapedimage.
+
The IntelliShapedImage manages a Shapedimage.
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.
+
bool fastRenderering
fastRendering is the flag that represents the usage of 8bit pictures.
-
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.
-
QImage imageData
The underlying image data.
-
An abstract class which manages the basic IntelliImage operations.
-
std::vector< QPoint > polygonData
The Vertices of The Polygon. Needs to be a planar Polygon.
+
ImageType TypeOfImage
The Type, an Image is.
+
QImage imageData
The underlying image data.
+
An abstract class which manages the basic IntelliImage operations.
+
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.
+
The IntelliRasterImage manages a RASTERIMAGE.
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
A function that sets the data of the visible Polygon.
diff --git a/docs/html/_intelli_shaped_image_8h_source.html b/docs/html/_intelli_shaped_image_8h_source.html
index 188019d..9403334 100644
--- a/docs/html/_intelli_shaped_image_8h_source.html
+++ b/docs/html/_intelli_shaped_image_8h_source.html
@@ -92,47 +92,52 @@ $(document).ready(function(){initNavTree('_intelli_shaped_image_8h_source.html',
-
-
-
-
16 std::vector<Triangle> triangles;
-
-
21 virtual void calculateVisiblity()
override;
-
-
-
-
-
-
-
-
-
48 virtual QImage
getDisplayable(
const QSize& displaySize,
int alpha = 255)
override;
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
20 std::vector<Triangle> triangles;
+
+
25 virtual void calculateVisiblity()
override;
+
+
+
+
+
+
+
+
+
52 virtual QImage
getDisplayable(
const QSize& displaySize,
int alpha = 255)
override;
+
+
+
+
+
+
+
+
+
+
+
+
+
virtual QImage getDisplayable(const QSize &displaySize, int alpha=255) override
A function returning the displayable ImageData in a requested transparence and size.
-The IntelliShapedImage manages a Shapedimage.
+The IntelliShapedImage manages a Shapedimage.
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
-
-virtual std::vector< QPoint > getPolygonData() override
A function that returns the Polygondata if existent.
-An abstract class which manages the basic IntelliImage operations.
-std::vector< QPoint > polygonData
The Vertices of The Polygon. Needs to be a planar Polygon.
+
+virtual std::vector< QPoint > getPolygonData() override
A function that returns the Polygondata if existent.
+
+An abstract class which manages the basic IntelliImage operations.
+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.
virtual ~IntelliShapedImage() override
An Destructor.
-The IntelliRasterImage manages a RASTERIMAGE.
+The IntelliRasterImage manages a RASTERIMAGE.
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
A function that sets the data of the visible Polygon.
diff --git a/docs/html/_intelli_tool_8cpp_source.html b/docs/html/_intelli_tool_8cpp_source.html
index def0e86..1ef3e51 100644
--- a/docs/html/_intelli_tool_8cpp_source.html
+++ b/docs/html/_intelli_tool_8cpp_source.html
@@ -93,138 +93,142 @@ $(document).ready(function(){initNavTree('_intelli_tool_8cpp_source.html',''); i
-
-
-
-
-
-
-
-
-
-
-
18 this->deleteToolLayer();
-
-
-
-
-
-
-
-
-
27 this->
isDrawing = this->createToolLayer();
-
-
-
-
-
-
-
-
-
36 this->mergeToolLayer();
-
37 this->deleteToolLayer();
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
21 this->deleteToolLayer();
+
+
+
+
+
+
+
+
+
30 this->
isDrawing = this->createToolLayer();
+
+
+
+
+
+
+
+
+
39 this->mergeToolLayer();
+
40 this->deleteToolLayer();
+
-
-
-
-
-
-
-
-
-
-
-
53 bool IntelliTool::createToolLayer(){
-
54 if(
Area->createTempTopLayer(
Area->activeLayer)) {
-
-
56 this->
Canvas = &
Area->layerBundle[
static_cast<unsigned long long>(
Area->activeLayer + 1)];
-
-
-
-
-
-
62 void IntelliTool::mergeToolLayer(){
-
-
-
-
-
-
-
69 clr_0 = updatedImage.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);
-
-
-
-
-
-
81 updatedImage.setPixelColor(x, y, clr_0);
-
-
-
-
-
-
-
-
-
-
91 void IntelliTool::deleteToolLayer(){
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
56 bool IntelliTool::createToolLayer(){
+
57 if(
Area->createTempTopLayer(
Area->activeLayer)) {
+
+
59 this->
Canvas = &
Area->layerBundle[
static_cast<unsigned long long>(
Area->activeLayer + 1)];
+
+
+
+
+
+
65 void IntelliTool::mergeToolLayer(){
+
+
+
+
+
+
+
72 clr_0 = updatedImage.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);
+
+
+
+
+
+
84 updatedImage.setPixelColor(x, y, clr_0);
+
+
+
+
+
+
+
+
+
+
94 void IntelliTool::deleteToolLayer(){
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-void deleteLayer(int idx, bool isTool=false)
The deleteLayer method removes a layer at a given idx.
-
-
-The PaintingArea class manages the methods and stores information about the current painting area,...
-
-virtual std::vector< QPoint > getPolygonData()
A function that returns the Polygondata if existent.
-
-
-
-
-
-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 deleteLayer(int idx, bool isTool=false)
The deleteLayer method removes a layer at a given idx.
+
+
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
+virtual std::vector< QPoint > getPolygonData()
A function that returns the Polygondata if existent.
+
+
+
+
+int width
width - Stores the width of a layer in pixels.
+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)
-
+
-
-
-The IntelliColorPicker manages the selected colors for one whole project.
+int height
height - Stores the height of a layer in pixels.
+
+The IntelliColorPicker manages the selected colors for one whole project.
-QImage imageData
The underlying image data.
-
+QImage imageData
The underlying image data.
+IntelliImage * image
image - Stores the imageData of the current LayerObject.
-
+
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
-
-
+
+
+
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_8h_source.html b/docs/html/_intelli_tool_8h_source.html
index 2785156..69b89e3 100644
--- a/docs/html/_intelli_tool_8h_source.html
+++ b/docs/html/_intelli_tool_8h_source.html
@@ -93,97 +93,104 @@ $(document).ready(function(){initNavTree('_intelli_tool_8h_source.html',''); ini
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
30 bool createToolLayer();
-
-
35 void mergeToolLayer();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
35 bool createToolLayer();
-
40 void deleteToolLayer();
-
-
-
-
-
-
+
40 void mergeToolLayer();
+
+
45 void deleteToolLayer();
+
+
+
+
-
-
-
+
+
+
-
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-The PaintingArea class manages the methods and stores information about the current painting area,...
-
-The LayerObject struct holds all the information needed to construct a layer.
-
-
+
+
+
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
+The LayerObject struct holds all the information needed to construct a layer.
+
+
-
-
-
-
-
-The IntelliColorPicker manages the selected colors for one whole project.
+
+
+
+
+
+The IntelliColorPicker manages the selected colors for one whole project.
+
-
-
-
-
+
+
+
+
diff --git a/docs/html/_intelli_tool_circle_8cpp_source.html b/docs/html/_intelli_tool_circle_8cpp_source.html
index 21aef0b..0fe40ff 100644
--- a/docs/html/_intelli_tool_circle_8cpp_source.html
+++ b/docs/html/_intelli_tool_circle_8cpp_source.html
@@ -173,39 +173,39 @@ $(document).ready(function(){initNavTree('_intelli_tool_circle_8cpp_source.html'
-
-
+
+
-
-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 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.
-
-
-QColor getSecondColor()
A function to read the secondary selected color.
-The PaintingArea class manages the methods and stores information about the current painting area,...
-
+
+
+QColor getSecondColor()
A function to read the secondary selected color.
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
-virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
-
-
+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.
+
+
-
+
-QColor getFirstColor()
A function to read the primary selected color.
-
-The IntelliColorPicker manages the selected colors for one whole project.
+QColor getFirstColor()
A function to read the primary selected color.
+
+The IntelliColorPicker manages the selected colors for one whole project.
-
+IntelliImage * image
image - Stores the imageData of the current LayerObject.
-
+
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
+
-
-virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
+
+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 c75d116..2102f4e 100644
--- a/docs/html/_intelli_tool_circle_8h_source.html
+++ b/docs/html/_intelli_tool_circle_8h_source.html
@@ -92,48 +92,54 @@ $(document).ready(function(){initNavTree('_intelli_tool_circle_8h_source.html','
-
- 15 void drawCircle(
int radius);
-
-
+
+
+
+
+
+
+ 20 void drawCircle(
int radius);
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-The PaintingArea class manages the methods and stores information about the current painting area,...
+
+
+The PaintingArea class manages the methods and stores information about the current painting area,...
-
-The IntelliColorPicker manages the selected colors for one whole project.
+
+The IntelliColorPicker manages the selected colors for one whole project.
+
-
-
+
+
diff --git a/docs/html/_intelli_tool_flood_fill_8cpp_source.html b/docs/html/_intelli_tool_flood_fill_8cpp_source.html
index c0d8dba..7b84984 100644
--- a/docs/html/_intelli_tool_flood_fill_8cpp_source.html
+++ b/docs/html/_intelli_tool_flood_fill_8cpp_source.html
@@ -122,84 +122,87 @@ $(document).ready(function(){initNavTree('_intelli_tool_flood_fill_8cpp_source.h
-
-
-
39 QPoint left, right, top, down;
-
-
41 QPoint Current = Q.front();
-
-
-
44 left = QPoint(Current.x() - 1,Current.y() );
-
45 right = QPoint(Current.x() + 1,Current.y() );
-
46 top = QPoint(Current.x(),Current.y() - 1);
-
47 down = QPoint(Current.x(),Current.y() + 1);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
37 if(newColor == oldColor) {
+
+
+
+
+
42 QPoint left, right, top, down;
+
+
44 QPoint Current = Q.front();
+
+
+
47 left = QPoint(Current.x() - 1,Current.y() );
+
48 right = QPoint(Current.x() + 1,Current.y() );
+
49 top = QPoint(Current.x(),Current.y() - 1);
+
50 down = QPoint(Current.x(),Current.y() + 1);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
+
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
-
-
+
+
-The PaintingArea class manages the methods and stores information about the current painting area,...
+The PaintingArea class manages the methods and stores information about the current painting area,...
-
-
-
-
-
-
+
+
+
+int width
width - Stores the width of a layer in pixels.
+
+
-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.
-
-
-The IntelliColorPicker manages the selected colors for one whole project.
+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.
+
+The IntelliColorPicker manages the selected colors for one whole project.
-
-
+IntelliImage * image
image - Stores the imageData of the current LayerObject.
+
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
-
+
+
diff --git a/docs/html/_intelli_tool_flood_fill_8h_source.html b/docs/html/_intelli_tool_flood_fill_8h_source.html
index 2b5c6f2..f8f2409 100644
--- a/docs/html/_intelli_tool_flood_fill_8h_source.html
+++ b/docs/html/_intelli_tool_flood_fill_8h_source.html
@@ -92,46 +92,52 @@ $(document).ready(function(){initNavTree('_intelli_tool_flood_fill_8h_source.htm
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
-
-
+
+
+
-The PaintingArea class manages the methods and stores information about the current painting area,...
+The PaintingArea class manages the methods and stores information about the current painting area,...
-
-
-The IntelliColorPicker manages the selected colors for one whole project.
+
+
+The IntelliColorPicker manages the selected colors for one whole project.
-
-
+
+
+
diff --git a/docs/html/_intelli_tool_line_8cpp_source.html b/docs/html/_intelli_tool_line_8cpp_source.html
index 9296aab..3f9ffdf 100644
--- a/docs/html/_intelli_tool_line_8cpp_source.html
+++ b/docs/html/_intelli_tool_line_8cpp_source.html
@@ -134,40 +134,40 @@ $(document).ready(function(){initNavTree('_intelli_tool_line_8cpp_source.html','
-
-
-
-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 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.
+
+
-The PaintingArea class manages the methods and stores information about the current painting area,...
-
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
-virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
+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.
-
-
-
+
+
+
-QColor getFirstColor()
A function to read the primary selected color.
-
-The IntelliColorPicker manages the selected colors for one whole project.
-
+QColor getFirstColor()
A function to read the primary selected color.
+
+The IntelliColorPicker manages the selected colors for one whole project.
+IntelliImage * image
image - Stores the imageData of the current LayerObject.
-
+
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
-
-virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
+
+
+virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
-
+
-
+
-
-The PaintingArea class manages the methods and stores information about the current painting area,...
+
+The PaintingArea class manages the methods and stores information about the current painting area,...
-
-The IntelliColorPicker manages the selected colors for one whole project.
+
+The IntelliColorPicker manages the selected colors for one whole project.
+
-
-
+
+
diff --git a/docs/html/_intelli_tool_pen_8cpp_source.html b/docs/html/_intelli_tool_pen_8cpp_source.html
index 9954a96..e13c012 100644
--- a/docs/html/_intelli_tool_pen_8cpp_source.html
+++ b/docs/html/_intelli_tool_pen_8cpp_source.html
@@ -136,38 +136,38 @@ $(document).ready(function(){initNavTree('_intelli_tool_pen_8cpp_source.html',''
-
-
-
-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 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.
+
+
-The PaintingArea class manages the methods and stores information about the current painting area,...
-
-virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
-
-
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
+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.
+
+
-
+
-QColor getFirstColor()
A function to read the primary selected color.
+QColor getFirstColor()
A function to read the primary selected color.
-
-The IntelliColorPicker manages the selected colors for one whole project.
-
+
+The IntelliColorPicker manages the selected colors for one whole project.
+IntelliImage * image
image - Stores the imageData of the current LayerObject.
-
+
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
-
+
+
diff --git a/docs/html/_intelli_tool_pen_8h_source.html b/docs/html/_intelli_tool_pen_8h_source.html
index f57a115..54baa3d 100644
--- a/docs/html/_intelli_tool_pen_8h_source.html
+++ b/docs/html/_intelli_tool_pen_8h_source.html
@@ -93,45 +93,50 @@ $(document).ready(function(){initNavTree('_intelli_tool_pen_8h_source.html','');
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-The PaintingArea class manages the methods and stores information about the current painting area,...
-
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
-
+
-The IntelliColorPicker manages the selected colors for one whole project.
+The IntelliColorPicker manages the selected colors for one whole project.
+
-
+
diff --git a/docs/html/_intelli_tool_plain_8cpp_source.html b/docs/html/_intelli_tool_plain_8cpp_source.html
index 68861e5..cd751eb 100644
--- a/docs/html/_intelli_tool_plain_8cpp_source.html
+++ b/docs/html/_intelli_tool_plain_8cpp_source.html
@@ -126,34 +126,34 @@ $(document).ready(function(){initNavTree('_intelli_tool_plain_8cpp_source.html',
-
-
-
-
+
+
+
+
-The PaintingArea class manages the methods and stores information about the current painting area,...
+The PaintingArea class manages the methods and stores information about the current painting area,...
-
+
-
-
+
+
-QColor getFirstColor()
A function to read the primary selected color.
-
-The IntelliColorPicker manages the selected colors for one whole project.
+QColor getFirstColor()
A function to read the primary selected color.
+
+The IntelliColorPicker manages the selected colors for one whole project.
-
+IntelliImage * image
image - Stores the imageData of the current LayerObject.
-
+
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
-
-virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
+
+
+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 ec7e3ab..757984f 100644
--- a/docs/html/_intelli_tool_plain_8h_source.html
+++ b/docs/html/_intelli_tool_plain_8h_source.html
@@ -91,45 +91,51 @@ $(document).ready(function(){initNavTree('_intelli_tool_plain_8h_source.html',''
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
-
+
+
-The PaintingArea class manages the methods and stores information about the current painting area,...
+The PaintingArea class manages the methods and stores information about the current painting area,...
-
-The IntelliColorPicker manages the selected colors for one whole project.
+
+The IntelliColorPicker manages the selected colors for one whole project.
+
-
+
diff --git a/docs/html/_intelli_tool_polygon_8cpp_source.html b/docs/html/_intelli_tool_polygon_8cpp_source.html
index 5341219..5b880b5 100644
--- a/docs/html/_intelli_tool_polygon_8cpp_source.html
+++ b/docs/html/_intelli_tool_polygon_8cpp_source.html
@@ -95,7 +95,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
9 isPointNearStart =
false;
-
+ 10 drawingOfPolygon =
false;
12 this->isSettingPolygon = isSettingPolygon;
13 if(isSettingPolygon) {
@@ -105,17 +105,17 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
-
+ 20 if(drawingOfPolygon) {
-
+
-
+
@@ -124,15 +124,15 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
-
+
- 43 if(isInside && !isDrawing) {
+ 43 if(isInside && !drawingOfPolygon) {
45 QPoint drawingPoint = QPoint(x,y);
-
+ 47 drawingOfPolygon =
true;
48 QPointList.push_back(drawingPoint);
@@ -140,7 +140,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
- 55 else if(isDrawing && isNearStart(x,y,QPointList.front())) {
+ 55 else if(drawingOfPolygon && QPointList.size() > 0 && isNearStart(x,y,QPointList.front())) {
56 if(QPointList.size() > 2) {
57 isPointNearStart =
true;
@@ -150,146 +150,142 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
-
+ 65 drawingOfPolygon =
false;
-
-
-
-
- 72 QPoint drawingPoint(x,y);
- 73 QPointList.push_back(drawingPoint);
-
- 75 if(!isSettingPolygon) {
-
-
-
-
-
-
-
-
- 84 isPointNearStart =
false;
-
-
-
-
-
- 90 if(isPointNearStart) {
-
- 92 isPointNearStart =
false;
-
- 94 if(!isSettingPolygon) {
-
-
-
-
-
-
-
-
-
-
-
-
- 107 for(
int i = 0; i<static_cast<int>(QPointList.size()); i++) {
- 108 int next =
static_cast<int>((i +
static_cast<int>(1)) %
static_cast<int>(QPointList.size()));
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 127 if(!isSettingPolygon) {
-
-
-
-
-
-
-
-
- 136 if(!isSettingPolygon) {
-
-
-
-
- 141 bool IntelliToolPolygon::isNearStart(
int x,
int y, QPoint Startpoint){
-
+
+
+
+
+ 72 else if(drawingOfPolygon) {
+ 73 QPoint drawingPoint(x,y);
+ 74 QPointList.push_back(drawingPoint);
+
+ 76 if(!isSettingPolygon) {
+
+
+
+
+
+
+ 83 drawingOfPolygon =
false;
+
+ 85 isPointNearStart =
false;
+
+
+
+
+
+ 91 if(isPointNearStart) {
+
+ 93 isPointNearStart =
false;
+ 94 drawingOfPolygon =
false;
+ 95 if(!isSettingPolygon) {
+
+
+
+
+
+
+
+
+
+
+
+
+ 108 for(
int i = 0; i<static_cast<int>(QPointList.size()); i++) {
+ 109 int next =
static_cast<int>((i +
static_cast<int>(1)) %
static_cast<int>(QPointList.size()));
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 128 if(!isSettingPolygon) {
+
+
+
+
+
+
+
+
+ 137 if(!isSettingPolygon) {
+
+
+
+
+ 142 bool IntelliToolPolygon::isNearStart(
int x,
int y, QPoint Startpoint){
143 int StartX = Startpoint.x();
144 int StartY = Startpoint.y();
- 147 for(
int i = StartX - valueToNear; i < StartX + valueToNear; i++) {
- 148 for(
int j = StartY - valueToNear; j < StartY + valueToNear; j++) {
- 149 if((i == x) && (j == y)) {
-
-
-
-
-
-
+ 147 float euklid = sqrt(pow(
static_cast<float>(StartX-x),2.f)+pow(
static_cast<float>(StartY-y),2.f));
+
+ 149 return static_cast<int>(euklid)<valueToNear;
+
-
-
-
-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 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 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 ...
-
-QColor getSecondColor()
A function to read the secondary selected color.
-
-The PaintingArea class manages the methods and stores information about the current painting area,...
+
+QColor getSecondColor()
A function to read the secondary selected color.
+
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
-virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
-
-
+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.
+
+
-
-IntelliImage::ImageType getTypeOfImageRealLayer()
-
-
+
+IntelliImage::ImageType getTypeOfImageRealLayer()
+int width
width - Stores the width of a layer in pixels.
+
-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 setImageData(const QImage &newData)
setImageData overwrites the old imageData the new imageData.
+
-QColor getFirstColor()
A function to read the primary selected color.
-
-QImage getImageDataOfActiveLayer()
getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...
-
-The IntelliColorPicker manages the selected colors for one whole project.
+QColor getFirstColor()
A function to read the primary selected color.
+int height
height - Stores the height of a layer in pixels.
+QImage getImageDataOfActiveLayer()
getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...
+
+The IntelliColorPicker manages the selected colors for one whole project.
-
-std::vector< QPoint > getPolygonDataOfRealLayer()
+IntelliImage * image
image - Stores the imageData of the current LayerObject.
+std::vector< QPoint > getPolygonDataOfRealLayer()
-
+
-
-
+
+
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
-
-
+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 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 5d38e7c..560626e 100644
--- a/docs/html/_intelli_tool_polygon_8h_source.html
+++ b/docs/html/_intelli_tool_polygon_8h_source.html
@@ -93,58 +93,64 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8h_source.html',
-
-
-
20 bool isNearStart(
int x,
int y, QPoint Startpoint);
-
-
+
+
+
+
+
+
+
+
25 bool isNearStart(
int x,
int y, QPoint Startpoint);
-
+
30 bool drawingOfPolygon;
-
35 bool isSettingPolygon;
+
-
40 bool isPointNearStart;
+
40 bool isSettingPolygon;
-
45 std::vector<QPoint> QPointList;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
45 bool isPointNearStart;
+
+
50 std::vector<QPoint> QPointList;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-The PaintingArea class manages the methods and stores information about the current painting area,...
+
+
+
+The PaintingArea class manages the methods and stores information about the current painting area,...
-
-
-The IntelliColorPicker manages the selected colors for one whole project.
+
+
+The IntelliColorPicker manages the selected colors for one whole project.
+
-
-
-
+
+
+
-
-
+
+
diff --git a/docs/html/_intelli_tool_rectangle_8cpp_source.html b/docs/html/_intelli_tool_rectangle_8cpp_source.html
index 35bb58c..c43529a 100644
--- a/docs/html/_intelli_tool_rectangle_8cpp_source.html
+++ b/docs/html/_intelli_tool_rectangle_8cpp_source.html
@@ -152,39 +152,39 @@ $(document).ready(function(){initNavTree('_intelli_tool_rectangle_8cpp_source.ht
-
-
+
+
-
-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 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.
+
+
-QColor getSecondColor()
A function to read the secondary selected color.
+QColor getSecondColor()
A function to read the secondary selected color.
-The PaintingArea class manages the methods and stores information about the current painting area,...
-
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
-
-
+
+
-
+
-QColor getFirstColor()
A function to read the primary selected color.
-
+QColor getFirstColor()
A function to read the primary selected color.
+
-The IntelliColorPicker manages the selected colors for one whole project.
+The IntelliColorPicker manages the selected colors for one whole project.
-
+IntelliImage * image
image - Stores the imageData of the current LayerObject.
-
+
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
-
-virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
+
+
+virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
diff --git a/docs/html/_intelli_tool_rectangle_8h_source.html b/docs/html/_intelli_tool_rectangle_8h_source.html
index 583c39b..74655e4 100644
--- a/docs/html/_intelli_tool_rectangle_8h_source.html
+++ b/docs/html/_intelli_tool_rectangle_8h_source.html
@@ -93,46 +93,52 @@ $(document).ready(function(){initNavTree('_intelli_tool_rectangle_8h_source.html
-
-
16 void drawRectangle(QPoint otherCorner);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
21 void drawRectangle(QPoint otherCorner);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-The PaintingArea class manages the methods and stores information about the current painting area,...
-
-
+The PaintingArea class manages the methods and stores information about the current painting area,...
+
+
-The IntelliColorPicker manages the selected colors for one whole project.
+The IntelliColorPicker manages the selected colors for one whole project.
+
-
+
diff --git a/docs/html/_intelli_toolsettings_8h_source.html b/docs/html/_intelli_toolsettings_8h_source.html
index 122e800..3cea510 100644
--- a/docs/html/_intelli_toolsettings_8h_source.html
+++ b/docs/html/_intelli_toolsettings_8h_source.html
@@ -89,30 +89,37 @@ $(document).ready(function(){initNavTree('_intelli_toolsettings_8h_source.html',
Go to the documentation of this file. 1 #ifndef INTELLITOOLSETTINGS_H
2 #define INTELLITOOLSETTINGS_H
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/docs/html/_intelli_triangulation_8cpp_source.html b/docs/html/_intelli_triangulation_8cpp_source.html
index 254df55..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
-
+
117 for(
auto triangle : triangles) {
@@ -211,14 +211,14 @@ $(document).ready(function(){initNavTree('_intelli_triangulation_8cpp_source.htm
-bool isInTriangle(Triangle &tri, QPoint &P)
A function to check if a given point is in a triangle.
+bool isInTriangle(Triangle &tri, QPoint &P)
A function to check if a given point is in a triangle.
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 ...
-
+
-
-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.
-
+
+The Triangle struct holds the 3 vertices of a triangle.
+
+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.html b/docs/html/_intelli_triangulation_8h.html
index c5d9728..3b84cc0 100644
--- a/docs/html/_intelli_triangulation_8h.html
+++ b/docs/html/_intelli_triangulation_8h.html
@@ -117,9 +117,9 @@ Functions
| std::vector< Triangle > | IntelliTriangulation::calculateTriangles (std::vector< QPoint > polyPoints) |
| | A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by clipping ears of a planar graph. More...
|
| |
-
| bool | IntelliTriangulation::isInPolygon (std::vector< Triangle > &triangles, QPoint &point) |
-
| | A function to check if a point lies in a polygon by checking its spanning triangles. More...
|
-
| |
+
| bool | IntelliTriangulation::isInPolygon (const std::vector< Triangle > &triangles, QPoint &point) |
+
| | A function to check if a point lies in a polygon by checking its spanning triangles. More...
|
+
| |