mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
Automated Release Preparation
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 114 KiB |
@@ -1,34 +1,61 @@
|
||||
src/GUI/IntelliInputDialog.h:4:0: information: Include file: <QtWidgets> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliInputDialog.h:4:0: information: Include file: <QSize> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliInputDialog.cpp:2:0: information: Include file: <QFile> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliInputDialog.h:5:0: information: Include file: <QDialog> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:4:0: information: Include file: <QtWidgets> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliInputDialog.h:6:0: information: Include file: <QLabel> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:5:0: information: Include file: <QPixmap> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliInputDialog.h:7:0: information: Include file: <QGridLayout> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:6:0: information: Include file: <QList> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliInputDialog.h:8:0: information: Include file: <QDialogButtonBox> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:7:0: information: Include file: <QMainWindow> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliInputDialog.h:9:0: information: Include file: <QPushButton> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:8:0: information: Include file: <QGridLayout> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliInputDialog.h:10:0: information: Include file: <QSpinBox> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:9:0: information: Include file: <QPushButton> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliPhotoGui.h:4:0: information: Include file: <QAction> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:10:0: information: Include file: <QTextEdit> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliPhotoGui.h:5:0: information: Include file: <QFileDialog> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:11:0: information: Include file: <QLabel> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliPhotoGui.h:6:0: information: Include file: <QMessageBox> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:12:0: information: Include file: <QLineEdit> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/GUI/IntelliPhotoGui.h:7:0: information: Include file: <QImageWriter> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:8:0: information: Include file: <QMenu> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:9:0: information: Include file: <QMenuBar> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:10:0: information: Include file: <QList> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:11:0: information: Include file: <QMainWindow> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:12:0: information: Include file: <QGridLayout> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:13:0: information: Include file: <QPushButton> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:14:0: information: Include file: <QTextEdit> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:15:0: information: Include file: <QLabel> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.h:16:0: information: Include file: <QLineEdit> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.cpp:4:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
||||
@@ -82,10 +109,10 @@ src/IntelliHelper/IntelliColorPicker.h:6:0: information: Include file: "QColorDi
|
||||
src/IntelliHelper/IntelliToolsettings.cpp:2:0: information: Include file: <QInputDialog> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/IntelliHelper/IntelliTriangulation.h:4:0: information: Include file: <QPoint> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/IntelliHelper/IntelliTriangulation.h:7:0: information: Include file: <QPoint> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/IntelliHelper/IntelliTriangulation.h:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
src/IntelliHelper/IntelliTriangulation.h:8:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/IntelliHelper/IntelliTriangulation.cpp:2:0: information: Include file: <algorithm> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
@@ -171,12 +198,6 @@ src/Layer/PaintingArea.cpp:18:0: information: Include file: "Tool/IntelliToolFlo
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:19:0: information: Include file: "Tool/IntelliToolPolygon.h" not found. [missingInclude]
|
||||
|
||||
^
|
||||
src/Tool/IntelliColorPicker.cpp:1:0: information: Include file: "IntelliColorPicker.h" not found. [missingInclude]
|
||||
|
||||
^
|
||||
src/Tool/IntelliColorPicker.cpp:2:0: information: Include file: "QDebug" not found. [missingInclude]
|
||||
|
||||
^
|
||||
src/Tool/IntelliTool.h:4:0: information: Include file: "IntelliHelper/IntelliColorPicker.h" not found. [missingInclude]
|
||||
|
||||
@@ -282,6 +303,9 @@ src/Tool/IntelliToolPolygon.cpp:4:0: information: Include file: <QInputDialog> n
|
||||
^
|
||||
src/Tool/IntelliToolPolygon.cpp:5:0: information: Include file: <QDebug> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/Tool/IntelliToolPolygon.cpp:6:0: information: Include file: <cmath> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/Tool/IntelliToolRectangle.h:6:0: information: Include file: "QColor" not found. [missingInclude]
|
||||
|
||||
@@ -304,3 +328,54 @@ src/main.cpp:3:0: information: Include file: <QDebug> not found. Please note: Cp
|
||||
src/main.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:1:0: information: Include file: <QtTest> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:252:0: information: Include file: "tst_unittest.moc" not found. [missingInclude]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1:0: information: Include file: <QtTest> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:2:0: information: Include file: <QCoreApplication> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/Image/IntelliImage.h:4:0: information: Include file: <QImage> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/Image/IntelliImage.h:5:0: information: Include file: <QPoint> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/Image/IntelliImage.h:6:0: information: Include file: <QColor> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/Image/IntelliImage.h:7:0: information: Include file: <QSize> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/Image/IntelliImage.h:8:0: information: Include file: <QWidget> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/Image/IntelliImage.h:9:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/Image/IntelliImage.h:11:0: information: Include file: "IntelliHelper/IntelliTriangulation.h" not found. [missingInclude]
|
||||
|
||||
^
|
||||
src/Image/IntelliImage.h:12:0: information: Include file: "IntelliHelper/IntelliRenderSettings.h" not found. [missingInclude]
|
||||
|
||||
^
|
||||
src/Image/IntelliRasterImage.h:4:0: information: Include file: "Image/IntelliImage.h" not found. [missingInclude]
|
||||
|
||||
^
|
||||
src/Image/IntelliShapedImage.h:4:0: information: Include file: "Image/IntelliRasterImage.h" not found. [missingInclude]
|
||||
|
||||
^
|
||||
src/Image/IntelliShapedImage.h:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1697:0: information: Include file: "tst_unittest.moc" not found. [missingInclude]
|
||||
|
||||
^
|
||||
|
||||
@@ -1,79 +1,298 @@
|
||||
src/IntelliHelper/IntelliColorPicker.cpp:4:3: performance: Variable 'firstColor' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList]
|
||||
firstColor = {255,0,0,255};
|
||||
^
|
||||
src/IntelliHelper/IntelliColorPicker.cpp:5:3: performance: Variable 'secondColor' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList]
|
||||
secondColor = {0,255,255,255};
|
||||
^
|
||||
src/IntelliHelper/IntelliTriangulation.cpp:116:63: style: Parameter 'triangles' can be declared with const [constParameter]
|
||||
bool IntelliTriangulation::isInPolygon(std::vector<Triangle> &triangles, QPoint &point){
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:344:22: style: Redundant condition: If 'activeLayer > 0', the comparison 'activeLayer != -1' is always true. [redundantCondition]
|
||||
if(activeLayer!=-1 && activeLayer>0) {
|
||||
^
|
||||
src/Tool/IntelliTool.cpp:4:14: warning: Member variable 'IntelliTool::ActiveType' is not initialized in the constructor. [uninitMemberVar]
|
||||
IntelliTool::IntelliTool(PaintingArea* Area, IntelliColorPicker* colorPicker, IntelliToolsettings* Toolsettings){
|
||||
^
|
||||
src/Tool/IntelliTool.cpp:4:14: warning: Member variable 'IntelliTool::activeLayer' is not initialized in the constructor. [uninitMemberVar]
|
||||
IntelliTool::IntelliTool(PaintingArea* Area, IntelliColorPicker* colorPicker, IntelliToolsettings* Toolsettings){
|
||||
^
|
||||
src/Tool/IntelliTool.cpp:4:14: warning: Member variable 'IntelliTool::Canvas' is not initialized in the constructor. [uninitMemberVar]
|
||||
IntelliTool::IntelliTool(PaintingArea* Area, IntelliColorPicker* colorPicker, IntelliToolsettings* Toolsettings){
|
||||
^
|
||||
src/Tool/IntelliToolCircle.cpp:42:9: style: Local variable 'yMin' shadows outer variable [shadowVariable]
|
||||
int yMin = static_cast<int>(centerPoint.y() - sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
||||
^
|
||||
src/Tool/IntelliToolCircle.cpp:18:7: note: Shadowed declaration
|
||||
int yMin, yMax, xMin, xMax;
|
||||
^
|
||||
src/Tool/IntelliToolCircle.cpp:42:9: note: Shadow variable
|
||||
int yMin = static_cast<int>(centerPoint.y() - sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
||||
^
|
||||
src/Tool/IntelliToolCircle.cpp:43:9: style: Local variable 'yMax' shadows outer variable [shadowVariable]
|
||||
int yMax = static_cast<int>(centerPoint.y() + sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
||||
^
|
||||
src/Tool/IntelliToolCircle.cpp:18:13: note: Shadowed declaration
|
||||
int yMin, yMax, xMin, xMax;
|
||||
^
|
||||
src/Tool/IntelliToolCircle.cpp:43:9: note: Shadow variable
|
||||
int yMax = static_cast<int>(centerPoint.y() + sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
||||
^
|
||||
src/Tool/IntelliToolPolygon.h:25:6: warning: The class 'IntelliToolPolygon' defines member variable with name 'isDrawing' also defined in its parent class 'IntelliTool'. [duplInheritedMember]
|
||||
bool isDrawing;
|
||||
^
|
||||
src/Tool/IntelliTool.h:69:6: note: Parent variable 'IntelliTool::isDrawing'
|
||||
bool isDrawing = false;
|
||||
^
|
||||
src/Tool/IntelliToolPolygon.h:25:6: note: Derived variable 'IntelliToolPolygon::isDrawing'
|
||||
bool isDrawing;
|
||||
^
|
||||
src/tst_unittest.cpp:1370:0: style: The function 'bench_Circle_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1388:0: style: The function 'bench_Circle_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1409:0: style: The function 'bench_FloodFill_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1427:0: style: The function 'bench_FloodFill_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1448:0: style: The function 'bench_Line_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1466:0: style: The function 'bench_Line_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1487:0: style: The function 'bench_Pen_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1505:0: style: The function 'bench_Pen_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1525:0: style: The function 'bench_Plain_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1543:0: style: The function 'bench_Plain_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1563:0: style: The function 'bench_Polygon_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1602:0: style: The function 'bench_Polygon_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1222:0: style: The function 'bench_RasterImage_drawLine' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1210:0: style: The function 'bench_RasterImage_drawPixel' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1235:0: style: The function 'bench_RasterImage_drawPoint' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1247:0: style: The function 'bench_RasterImage_getDisplayable' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1269:0: style: The function 'bench_RasterImage_getImageData' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1257:0: style: The function 'bench_RasterImage_getPixelColor' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1279:0: style: The function 'bench_RasterImage_setImageData' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1626:0: style: The function 'bench_Rectangle_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1645:0: style: The function 'bench_Rectangle_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1302:0: style: The function 'bench_ShapedImage_drawLine' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1290:0: style: The function 'bench_ShapedImage_drawPixel' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1315:0: style: The function 'bench_ShapedImage_drawPoint' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1327:0: style: The function 'bench_ShapedImage_getDisplayable' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1349:0: style: The function 'bench_ShapedImage_getImageData' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1337:0: style: The function 'bench_ShapedImage_getPixelColor' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1359:0: style: The function 'bench_ShapedImage_setImageData' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1666:0: style: The function 'bench_Triangulation_Coverage' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1079:0: style: The function 'bench_addLayer' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1180:0: style: The function 'bench_createTools' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1086:0: style: The function 'bench_deleteLayer' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1115:0: style: The function 'bench_floodFill' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1125:0: style: The function 'bench_moveActive' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1093:0: style: The function 'bench_setActive' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1105:0: style: The function 'bench_setAlpha' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1168:0: style: The function 'bench_setLayerDown' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1155:0: style: The function 'bench_setLayerUp' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/tst_unittest.cpp:1138:0: style: The function 'bench_setPolygon' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:118:0: style: The function 'cleanupTestCase' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/GUI/IntelliPhotoGui.cpp:23:0: style: The function 'closeEvent' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:271:0: style: The function 'mouseMoveEvent' is never used. [unusedFunction]
|
||||
src/mainUnitTest.cpp:113:0: style: The function 'initTestCase' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:252:0: style: The function 'mousePressEvent' is never used. [unusedFunction]
|
||||
src/Layer/PaintingArea.cpp:281:0: style: The function 'mouseMoveEvent' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:284:0: style: The function 'mouseReleaseEvent' is never used. [unusedFunction]
|
||||
src/Layer/PaintingArea.cpp:262:0: style: The function 'mousePressEvent' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:314:0: style: The function 'paintEvent' is never used. [unusedFunction]
|
||||
src/Layer/PaintingArea.cpp:294:0: style: The function 'mouseReleaseEvent' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:325:0: style: The function 'resizeEvent' is never used. [unusedFunction]
|
||||
src/Layer/PaintingArea.cpp:324:0: style: The function 'paintEvent' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:330:0: style: The function 'resizeLayer' is never used. [unusedFunction]
|
||||
src/Layer/PaintingArea.cpp:180:0: style: The function 'slotActivateLayer' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:170:0: style: The function 'slotActivateLayer' is never used. [unusedFunction]
|
||||
src/Layer/PaintingArea.cpp:96:0: style: The function 'slotDeleteActiveLayer' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:88:0: style: The function 'slotDeleteActiveLayer' is never used. [unusedFunction]
|
||||
src/mainUnitTest.cpp:211:0: style: The function 'test_Circle_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:299:0: style: The function 'wheelEvent' is never used. [unusedFunction]
|
||||
src/mainUnitTest.cpp:213:0: style: The function 'test_Circle_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:216:0: style: The function 'test_FloodFill_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:218:0: style: The function 'test_FloodFill_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:221:0: style: The function 'test_Line_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:223:0: style: The function 'test_Line_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:226:0: style: The function 'test_Pen_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:228:0: style: The function 'test_Pen_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:231:0: style: The function 'test_Plain_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:233:0: style: The function 'test_Plain_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:236:0: style: The function 'test_Polygon_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:238:0: style: The function 'test_Polygon_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:157:0: style: The function 'test_RasterImage_drawLine' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:155:0: style: The function 'test_RasterImage_drawPixel' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:159:0: style: The function 'test_RasterImage_drawPoint' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:161:0: style: The function 'test_RasterImage_getDisplayable' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:169:0: style: The function 'test_RasterImage_getImageData' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:167:0: style: The function 'test_RasterImage_getPixelColor' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:165:0: style: The function 'test_RasterImage_loadImage' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:171:0: style: The function 'test_RasterImage_setImageData' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:163:0: style: The function 'test_RasterImage_setPolygon' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:241:0: style: The function 'test_Rectangle_fullDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:243:0: style: The function 'test_Rectangle_interruptedDraw' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:177:0: style: The function 'test_ShapedImage_drawLine' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:175:0: style: The function 'test_ShapedImage_drawPixel' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:179:0: style: The function 'test_ShapedImage_drawPoint' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:181:0: style: The function 'test_ShapedImage_getDisplayable' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:189:0: style: The function 'test_ShapedImage_getImageData' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:187:0: style: The function 'test_ShapedImage_getPixelColor' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:185:0: style: The function 'test_ShapedImage_loadImage' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:191:0: style: The function 'test_ShapedImage_setImageData' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:183:0: style: The function 'test_ShapedImage_setPolygon' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:247:0: style: The function 'test_Triangulation_Coverage' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:132:0: style: The function 'test_addLayer' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:195:0: style: The function 'test_createTool_Circle' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:197:0: style: The function 'test_createTool_FloodFill' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:199:0: style: The function 'test_createTool_Line' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:201:0: style: The function 'test_createTool_Pen' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:203:0: style: The function 'test_createTool_Plain' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:205:0: style: The function 'test_createTool_Polygon' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:207:0: style: The function 'test_createTool_Rectangle' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:151:0: style: The function 'test_createTools' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:134:0: style: The function 'test_deleteLayer' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:140:0: style: The function 'test_floodFill' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:142:0: style: The function 'test_moveActive' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:136:0: style: The function 'test_setActive' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:138:0: style: The function 'test_setAlpha' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:148:0: style: The function 'test_setLayerDown' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:146:0: style: The function 'test_setLayerUp' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/mainUnitTest.cpp:144:0: style: The function 'test_setPolygon' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
src/Layer/PaintingArea.cpp:309:0: style: The function 'wheelEvent' is never used. [unusedFunction]
|
||||
|
||||
^
|
||||
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]
|
||||
|
||||
@@ -89,42 +89,46 @@ $(document).ready(function(){initNavTree('_intelli_color_picker_8cpp_source.html
|
||||
<a href="_intelli_color_picker_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#include "<a class="code" href="_intelli_color_picker_8h.html">IntelliColorPicker.h</a>"</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>  </div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#a0d1247bdd87add1396ea5d9acaad79ae"> 3</a></span> <a class="code" href="class_intelli_color_picker.html#a0d1247bdd87add1396ea5d9acaad79ae">IntelliColorPicker::IntelliColorPicker</a>(){</div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  firstColor = QColor(255,0,0,255);</div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  secondColor = QColor(0,255,255,255);</div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> }</div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#a40b975268a1f05249e8a49dde9a862ff"> 8</a></span> <a class="code" href="class_intelli_color_picker.html#a40b975268a1f05249e8a49dde9a862ff">IntelliColorPicker::~IntelliColorPicker</a>(){</div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> }</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e"> 12</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e">IntelliColorPicker::swapColors</a>(){</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  std::swap(firstColor, secondColor);</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> }</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7"> 16</a></span> QColor <a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a>(){</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keywordflow">return</span> this->firstColor;</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> }</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415"> 20</a></span> QColor <a class="code" href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a>(){</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordflow">return</span> this->secondColor;</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> }</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8"> 24</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a>(QColor Color){</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  this->firstColor = Color;</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> }</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931"> 28</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a>(QColor Color){</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  this->secondColor = Color;</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  initializeColors();</div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> }</div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#a40b975268a1f05249e8a49dde9a862ff"> 7</a></span> <a class="code" href="class_intelli_color_picker.html#a40b975268a1f05249e8a49dde9a862ff">IntelliColorPicker::~IntelliColorPicker</a>(){</div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> }</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e"> 11</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e">IntelliColorPicker::swapColors</a>(){</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  std::swap(firstColor, secondColor);</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> }</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7"> 15</a></span> QColor <a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a>(){</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keywordflow">return</span> this->firstColor;</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> }</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415"> 19</a></span> QColor <a class="code" href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a>(){</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordflow">return</span> this->secondColor;</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> }</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8"> 23</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a>(QColor Color){</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  this->firstColor = Color;</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> }</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931"> 27</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a>(QColor Color){</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  this->secondColor = Color;</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> }</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keywordtype">void</span> IntelliColorPicker::initializeColors(){</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  this->firstColor = QColor(255,0,0,255);</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  this->secondColor = QColor(0,0,0,255);</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> }</div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a40b975268a1f05249e8a49dde9a862ff"><div class="ttname"><a href="class_intelli_color_picker.html#a40b975268a1f05249e8a49dde9a862ff">IntelliColorPicker::~IntelliColorPicker</a></div><div class="ttdeci">virtual ~IntelliColorPicker()</div><div class="ttdoc">IntelliColorPicker destructor clears up his used memory, if there is some.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00008">IntelliColorPicker.cpp:8</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a86bf4a940e4a0e465e30cbdf28748931"><div class="ttname"><a href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a></div><div class="ttdeci">void setSecondColor(QColor Color)</div><div class="ttdoc">A function to set the secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00028">IntelliColorPicker.cpp:28</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00020">IntelliColorPicker.cpp:20</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a40b975268a1f05249e8a49dde9a862ff"><div class="ttname"><a href="class_intelli_color_picker.html#a40b975268a1f05249e8a49dde9a862ff">IntelliColorPicker::~IntelliColorPicker</a></div><div class="ttdeci">virtual ~IntelliColorPicker()</div><div class="ttdoc">IntelliColorPicker destructor clears up his used memory, if there is some.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00007">IntelliColorPicker.cpp:7</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a86bf4a940e4a0e465e30cbdf28748931"><div class="ttname"><a href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a></div><div class="ttdeci">void setSecondColor(QColor Color)</div><div class="ttdoc">A function to set the secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00027">IntelliColorPicker.cpp:27</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00019">IntelliColorPicker.cpp:19</a></div></div>
|
||||
<div class="ttc" id="a_intelli_color_picker_8h_html"><div class="ttname"><a href="_intelli_color_picker_8h.html">IntelliColorPicker.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a7e2ddbbbfbed383f06b24e5bf6b27ae8"><div class="ttname"><a href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a></div><div class="ttdeci">void setFirstColor(QColor Color)</div><div class="ttdoc">A function to set the primary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00024">IntelliColorPicker.cpp:24</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aec499265ae28ce1b54be88222e74292e"><div class="ttname"><a href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e">IntelliColorPicker::swapColors</a></div><div class="ttdeci">void swapColors()</div><div class="ttdoc">A function switching primary and secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00012">IntelliColorPicker.cpp:12</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a7e2ddbbbfbed383f06b24e5bf6b27ae8"><div class="ttname"><a href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a></div><div class="ttdeci">void setFirstColor(QColor Color)</div><div class="ttdoc">A function to set the primary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00023">IntelliColorPicker.cpp:23</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aec499265ae28ce1b54be88222e74292e"><div class="ttname"><a href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e">IntelliColorPicker::swapColors</a></div><div class="ttdeci">void swapColors()</div><div class="ttdoc">A function switching primary and secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00011">IntelliColorPicker.cpp:11</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a0d1247bdd87add1396ea5d9acaad79ae"><div class="ttname"><a href="class_intelli_color_picker.html#a0d1247bdd87add1396ea5d9acaad79ae">IntelliColorPicker::IntelliColorPicker</a></div><div class="ttdeci">IntelliColorPicker()</div><div class="ttdoc">IntelliColorPicker constructor, setting 2 preset colors, be careful, theese color may change in produ...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00003">IntelliColorPicker.cpp:3</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
|
||||
@@ -97,7 +97,7 @@ $(document).ready(function(){initNavTree('_intelli_color_picker_8h_source.html',
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_intelli_color_picker.html"> 14</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_color_picker.html">IntelliColorPicker</a> {</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <a class="code" href="class_intelli_color_picker.html#a0d1247bdd87add1396ea5d9acaad79ae">IntelliColorPicker</a>();</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
||||
@@ -117,19 +117,21 @@ $(document).ready(function(){initNavTree('_intelli_color_picker_8h_source.html',
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> QColor firstColor;</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> QColor secondColor;</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> };</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">void</span> initializeColors();</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> };</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#endif</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a40b975268a1f05249e8a49dde9a862ff"><div class="ttname"><a href="class_intelli_color_picker.html#a40b975268a1f05249e8a49dde9a862ff">IntelliColorPicker::~IntelliColorPicker</a></div><div class="ttdeci">virtual ~IntelliColorPicker()</div><div class="ttdoc">IntelliColorPicker destructor clears up his used memory, if there is some.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00008">IntelliColorPicker.cpp:8</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a86bf4a940e4a0e465e30cbdf28748931"><div class="ttname"><a href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a></div><div class="ttdeci">void setSecondColor(QColor Color)</div><div class="ttdoc">A function to set the secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00028">IntelliColorPicker.cpp:28</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00020">IntelliColorPicker.cpp:20</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a7e2ddbbbfbed383f06b24e5bf6b27ae8"><div class="ttname"><a href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a></div><div class="ttdeci">void setFirstColor(QColor Color)</div><div class="ttdoc">A function to set the primary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00024">IntelliColorPicker.cpp:24</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a40b975268a1f05249e8a49dde9a862ff"><div class="ttname"><a href="class_intelli_color_picker.html#a40b975268a1f05249e8a49dde9a862ff">IntelliColorPicker::~IntelliColorPicker</a></div><div class="ttdeci">virtual ~IntelliColorPicker()</div><div class="ttdoc">IntelliColorPicker destructor clears up his used memory, if there is some.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00007">IntelliColorPicker.cpp:7</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a86bf4a940e4a0e465e30cbdf28748931"><div class="ttname"><a href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a></div><div class="ttdeci">void setSecondColor(QColor Color)</div><div class="ttdoc">A function to set the secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00027">IntelliColorPicker.cpp:27</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00019">IntelliColorPicker.cpp:19</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a7e2ddbbbfbed383f06b24e5bf6b27ae8"><div class="ttname"><a href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a></div><div class="ttdeci">void setFirstColor(QColor Color)</div><div class="ttdoc">A function to set the primary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00023">IntelliColorPicker.cpp:23</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
<div class="ttc" id="aclass_unit_test_html"><div class="ttname"><a href="class_unit_test.html">UnitTest</a></div><div class="ttdef"><b>Definition:</b> <a href="main_unit_test_8cpp_source.html#l00008">mainUnitTest.cpp:8</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aec499265ae28ce1b54be88222e74292e"><div class="ttname"><a href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e">IntelliColorPicker::swapColors</a></div><div class="ttdeci">void swapColors()</div><div class="ttdoc">A function switching primary and secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00012">IntelliColorPicker.cpp:12</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aec499265ae28ce1b54be88222e74292e"><div class="ttname"><a href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e">IntelliColorPicker::swapColors</a></div><div class="ttdeci">void swapColors()</div><div class="ttdoc">A function switching primary and secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00011">IntelliColorPicker.cpp:11</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a0d1247bdd87add1396ea5d9acaad79ae"><div class="ttname"><a href="class_intelli_color_picker.html#a0d1247bdd87add1396ea5d9acaad79ae">IntelliColorPicker::IntelliColorPicker</a></div><div class="ttdeci">IntelliColorPicker()</div><div class="ttdoc">IntelliColorPicker constructor, setting 2 preset colors, be careful, theese color may change in produ...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00003">IntelliColorPicker.cpp:3</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
|
||||
@@ -105,7 +105,7 @@ $(document).ready(function(){initNavTree('_intelli_image_8h_source.html',''); in
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">class </span><a class="code" href="class_intelli_tool.html">IntelliTool</a>;</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_intelli_image.html"> 22</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_image.html">IntelliImage</a> {</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">friend</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a>;</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -165,119 +165,127 @@ $(document).ready(function(){initNavTree('_intelli_photo_gui_8h_source.html','')
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="keywordtype">void</span> slotAboutDialog();</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keywordtype">void</span> slotEnterPressed();</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keywordtype">void</span> slotChangeDim();</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="keywordtype">void</span> slotSetWidth();</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="keywordtype">void</span> slotSetInnerAlpha();</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="keywordtype">void</span> slotResetTools();</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="keywordtype">void</span> slotEnterPressed();</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="keywordtype">void</span> slotSetWidth();</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="keywordtype">void</span> slotSetInnerAlpha();</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="keywordtype">void</span> createActions();</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keywordtype">void</span> createMenus();</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="keywordtype">void</span> createGui();</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment">// Set the style of the GUI</span></div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keywordtype">void</span> setIntelliStyle();</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment">// Will check if changes have occurred since last save</span></div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keywordtype">bool</span> maybeSave();</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment">// Opens the Save dialog and saves</span></div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="keywordtype">bool</span> saveFile(<span class="keyword">const</span> QByteArray &fileFormat);</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="keywordtype">void</span> setDefaultToolValue();</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="keywordtype">void</span> slotResetTools();</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="keywordtype">void</span> createActions();</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="keywordtype">void</span> createMenus();</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keywordtype">void</span> createGui();</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment">// Set the style of the GUI</span></div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="keywordtype">void</span> setIntelliStyle();</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment">// Will check if changes have occurred since last save</span></div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="keywordtype">bool</span> maybeSave();</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment">// Opens the Save dialog and saves</span></div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="keywordtype">bool</span> saveFile(<span class="keyword">const</span> QByteArray &fileFormat);</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment">// What we'll draw on</span></div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <a class="code" href="class_painting_area.html">PaintingArea</a>* paintingArea;</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">const</span> QSize Buttonsize = QSize(35,35);</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> QPixmap preview;</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> QPushButton* CircleButton;</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> QPushButton* FloodFillButton;</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> QPushButton* LineButton;</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> QPushButton* PenButton;</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> QPushButton* PlainButton;</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> QPushButton* PolygonButton;</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> QPushButton* RectangleButton;</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> QLabel* WidthLine;</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> QLabel* innerAlphaLine;</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> QLineEdit* EditLineWidth;</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> QLineEdit* EditLineInnerAlpha;</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> QIntValidator* ValidatorLineWidth;</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> QIntValidator* ValidatorInnerAlpha;</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  </div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> QPushButton* FirstColorButton;</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> QPushButton* SecondColorButton;</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> QPushButton* SwitchColorButton;</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> QLabel* ActiveLayerLine;</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> QLabel* ActiveLayerImageLabel;</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment">// The menu widgets</span></div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> QMenu*saveAsMenu;</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> QMenu*fileMenu;</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> QMenu*renderMenu;</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> QMenu*optionMenu;</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> QMenu*layerCreationMenu;</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> QMenu*layerMenu;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> QMenu*colorMenu;</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> QMenu*toolCreationMenu;</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> QMenu*toolSettingsMenu;</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> QMenu*toolMenu;</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> QMenu*helpMenu;</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment">// All the actions that can occur</span></div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment">// meta image actions (need further modularisation)</span></div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> QAction* actionOpen;</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> QAction* actionExit;</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="keywordtype">void</span> setDefaultToolValue();</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment">// What we'll draw on</span></div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <a class="code" href="class_painting_area.html">PaintingArea</a>* paintingArea;</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="keyword">const</span> QSize Buttonsize = QSize(35,35);</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> QPixmap preview;</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> QPushButton* CircleButton;</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> QPushButton* FloodFillButton;</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> QPushButton* LineButton;</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> QPushButton* PenButton;</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> QPushButton* PlainButton;</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> QPushButton* PolygonButton;</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> QPushButton* RectangleButton;</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> QLabel* WidthLine;</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> QLabel* innerAlphaLine;</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> QLineEdit* EditLineWidth;</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> QLineEdit* EditLineInnerAlpha;</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> QIntValidator* ValidatorLineWidth;</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> QIntValidator* ValidatorInnerAlpha;</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> QPushButton* FirstColorButton;</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> QPushButton* SecondColorButton;</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> QPushButton* SwitchColorButton;</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  </div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> QLabel* ActiveLayerLine;</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> QLabel* ActiveLayerImageLabel;</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> QPushButton* dimActive;</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> QPushButton* dimCanvas;</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment">// The menu widgets</span></div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> QMenu*saveAsMenu;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> QMenu*fileMenu;</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> QMenu*renderMenu;</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> QMenu*optionMenu;</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> QMenu*layerCreationMenu;</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> QMenu*layerMenu;</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> QMenu*colorMenu;</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> QMenu*toolCreationMenu;</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> QMenu*toolSettingsMenu;</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> QMenu*toolMenu;</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> QMenu*helpMenu;</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment">//Rendersetting actions</span></div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> QAction*actionUpdateRenderSettingsOn;</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> QAction*actionUpdateRenderSettingsOff;</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  </div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// color Picker actions</span></div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> QAction* actionColorPickerFirstColor;</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> QAction* actionColorPickerSecondColor;</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> QAction* actionColorSwap;</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment">// All the actions that can occur</span></div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment">// meta image actions (need further modularisation)</span></div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> QAction* actionOpen;</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> QAction* actionExit;</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  </div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment">//Rendersetting actions</span></div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> QAction*actionUpdateRenderSettingsOn;</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> QAction*actionUpdateRenderSettingsOff;</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment">// tool actions</span></div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> QAction* actionCreatePenTool;</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> QAction* actionCreatePlainTool;</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> QAction* actionCreateLineTool;</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> QAction* actionCreateRectangleTool;</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> QAction* actionCreateCircleTool;</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> QAction* actionCreatePolygonTool;</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> QAction* actionCreateFloodFillTool;</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment">// dialog actions</span></div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> QAction* actionAboutDialog;</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> QAction* actionAboutQtDialog;</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment">// layer change actions</span></div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> QAction* actionCreateNewRasterLayer;</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> QAction* actionCreateNewShapedLayer;</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> QAction* actionDeleteLayer;</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> QAction* actionSetActiveLayer;</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> QAction* actionSetActiveAlpha;</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> QAction* actionSetPolygon;</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> QAction* actionMovePositionUp;</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> QAction* actionMovePositionDown;</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> QAction* actionMovePositionLeft;</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> QAction* actionMovePositionRight;</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> QAction* actionMoveLayerUp;</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> QAction* actionMoveLayerDown;</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  </div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="comment">// Actions tied to specific file formats</span></div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> QList<QAction*> actionSaveAs;</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  </div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> QAction* actionSetWidth;</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> QAction* actionSetInnerAlpha;</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment">// main GUI elements</span></div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> QWidget* centralGuiWidget;</div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> QGridLayout* mainLayout;</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> };</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment">// color Picker actions</span></div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> QAction* actionColorPickerFirstColor;</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> QAction* actionColorPickerSecondColor;</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> QAction* actionColorSwap;</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  </div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment">// tool actions</span></div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> QAction* actionCreatePenTool;</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> QAction* actionCreatePlainTool;</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> QAction* actionCreateLineTool;</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> QAction* actionCreateRectangleTool;</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> QAction* actionCreateCircleTool;</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> QAction* actionCreatePolygonTool;</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> QAction* actionCreateFloodFillTool;</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  </div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment">// dimension actions</span></div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> QAction*actionChangeDim;</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment">// dialog actions</span></div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> QAction* actionAboutDialog;</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> QAction* actionAboutQtDialog;</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  </div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment">// layer change actions</span></div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> QAction* actionCreateNewRasterLayer;</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> QAction* actionCreateNewShapedLayer;</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> QAction* actionDeleteLayer;</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> QAction* actionSetActiveLayer;</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> QAction* actionSetActiveAlpha;</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> QAction* actionSetPolygon;</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> QAction* actionMovePositionUp;</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> QAction* actionMovePositionDown;</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> QAction* actionMovePositionLeft;</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> QAction* actionMovePositionRight;</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> QAction* actionMoveLayerUp;</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> QAction* actionMoveLayerDown;</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="comment">// Actions tied to specific file formats</span></div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> QList<QAction*> actionSaveAs;</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> QAction* actionSetWidth;</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> QAction* actionSetInnerAlpha;</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment">// main GUI elements</span></div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> QWidget* centralGuiWidget;</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> QGridLayout* mainLayout;</div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> };</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="preprocessor">#endif</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<div class="ttc" id="a_intelli_input_dialog_8h_html"><div class="ttname"><a href="_intelli_input_dialog_8h.html">IntelliInputDialog.h</a></div></div>
|
||||
@@ -286,9 +294,9 @@ $(document).ready(function(){initNavTree('_intelli_photo_gui_8h_source.html','')
|
||||
<div class="ttc" id="aclass_painting_area_html"><div class="ttname"><a href="class_painting_area.html">PaintingArea</a></div><div class="ttdoc">The PaintingArea class manages the methods and stores information about the current painting area,...</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00053">PaintingArea.h:53</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a2cf48070236ae8b35245e7f30482ef13"><div class="ttname"><a href="class_intelli_photo_gui.html#a2cf48070236ae8b35245e7f30482ef13">IntelliPhotoGui::closeEvent</a></div><div class="ttdeci">void closeEvent(QCloseEvent *event) override</div><div class="ttdoc">The closeEvent function handles closing events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00023">IntelliPhotoGui.cpp:23</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a343f8ebf5d27b7242208747de6c92497"><div class="ttname"><a href="class_intelli_photo_gui.html#a343f8ebf5d27b7242208747de6c92497">IntelliPhotoGui::setToolWidth</a></div><div class="ttdeci">void setToolWidth(int value)</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00790">IntelliPhotoGui.cpp:790</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a343f8ebf5d27b7242208747de6c92497"><div class="ttname"><a href="class_intelli_photo_gui.html#a343f8ebf5d27b7242208747de6c92497">IntelliPhotoGui::setToolWidth</a></div><div class="ttdeci">void setToolWidth(int value)</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00827">IntelliPhotoGui.cpp:827</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a1dbef8d4688227aa9455aea52db00bf4"><div class="ttname"><a href="class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4">IntelliPhotoGui::UpdateGui</a></div><div class="ttdeci">void UpdateGui()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00799">IntelliPhotoGui.cpp:799</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a1dbef8d4688227aa9455aea52db00bf4"><div class="ttname"><a href="class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4">IntelliPhotoGui::UpdateGui</a></div><div class="ttdeci">void UpdateGui()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00836">IntelliPhotoGui.cpp:836</a></div></div>
|
||||
<div class="ttc" id="aclass_unit_test_html"><div class="ttname"><a href="class_unit_test.html">UnitTest</a></div><div class="ttdef"><b>Definition:</b> <a href="main_unit_test_8cpp_source.html#l00008">mainUnitTest.cpp:8</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
|
||||
@@ -95,7 +95,7 @@ $(document).ready(function(){initNavTree('_intelli_raster_image_8h_source.html',
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_intelli_raster_image.html"> 12</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_raster_image.html">IntelliRasterImage</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_image.html">IntelliImage</a> {</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">friend</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a>;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">protected</span>:</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_raster_image.html#a87cf2d360c129d64a5db0db85818eb60">calculateVisiblity</a>() <span class="keyword">override</span>;</div>
|
||||
|
||||
@@ -95,7 +95,7 @@ $(document).ready(function(){initNavTree('_intelli_render_settings_8h_source.htm
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_intelli_render_settings.html"> 8</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_render_settings.html">IntelliRenderSettings</a></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> {</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <a class="code" href="class_intelli_render_settings.html#a4a01de6e5e8e516a7eae51d6f1f66529">IntelliRenderSettings</a>();</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
|
||||
|
||||
@@ -96,7 +96,7 @@ $(document).ready(function(){initNavTree('_intelli_shaped_image_8h_source.html',
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_intelli_shaped_image.html"> 13</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_shaped_image.html">IntelliShapedImage</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_raster_image.html">IntelliRasterImage</a> {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">friend</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a>;</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> std::vector<Triangle> triangles;</div>
|
||||
|
||||
@@ -213,14 +213,14 @@ $(document).ready(function(){initNavTree('_intelli_tool_8cpp_source.html',''); i
|
||||
<div class="ttc" id="astruct_layer_object_html_af261813df52ff0b0c82bfa57efeb9897"><div class="ttname"><a href="struct_layer_object.html#af261813df52ff0b0c82bfa57efeb9897">LayerObject::width</a></div><div class="ttdeci">int width</div><div class="ttdoc">width - Stores the width of a layer in pixels.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00031">PaintingArea.h:31</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_ad66fbe380ffe0e073a8cd760f8285fe3"><div class="ttname"><a href="class_intelli_image.html#ad66fbe380ffe0e073a8cd760f8285fe3">IntelliImage::getImageData</a></div><div class="ttdeci">virtual QImage getImageData()</div><div class="ttdoc">getImageData returns the data of the current image (Note: It will allways return a ARGB32bit QImage!...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00134">IntelliImage.cpp:134</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_ab09c64e7559f3db32ca3b20ba6339268"><div class="ttname"><a href="class_intelli_image.html#ab09c64e7559f3db32ca3b20ba6339268">IntelliImage::setImageData</a></div><div class="ttdeci">virtual void setImageData(const QImage &newData)</div><div class="ttdoc">setImageData overwrites the old imageData the new imageData.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00142">IntelliImage.cpp:142</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a343f8ebf5d27b7242208747de6c92497"><div class="ttname"><a href="class_intelli_photo_gui.html#a343f8ebf5d27b7242208747de6c92497">IntelliPhotoGui::setToolWidth</a></div><div class="ttdeci">void setToolWidth(int value)</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00790">IntelliPhotoGui.cpp:790</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a343f8ebf5d27b7242208747de6c92497"><div class="ttname"><a href="class_intelli_photo_gui.html#a343f8ebf5d27b7242208747de6c92497">IntelliPhotoGui::setToolWidth</a></div><div class="ttdeci">void setToolWidth(int value)</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00827">IntelliPhotoGui.cpp:827</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a0020fad2e26315d5c4d96dbc95d1dceb"><div class="ttname"><a href="class_intelli_tool.html#a0020fad2e26315d5c4d96dbc95d1dceb">IntelliTool::getIsDrawing</a></div><div class="ttdeci">bool getIsDrawing()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00103">IntelliTool.cpp:103</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_ae0003fb815e50ed587a9897988befc90"><div class="ttname"><a href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">LayerObject::height</a></div><div class="ttdeci">int height</div><div class="ttdoc">height - Stores the height of a layer in pixels.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00035">PaintingArea.h:35</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a631388999f36013628e13b9de87a6f7b"><div class="ttname"><a href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">IntelliTool::ActiveType</a></div><div class="ttdeci">Tooltype ActiveType</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00052">IntelliTool.h:52</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a08ef094271ce6248b42f888472463526"><div class="ttname"><a href="class_intelli_tool.html#a08ef094271ce6248b42f888472463526">IntelliTool::IntelliTool</a></div><div class="ttdeci">IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)</div><div class="ttdoc">A constructor setting the general Painting Area and colorPicker.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00004">IntelliTool.cpp:4</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a1dbef8d4688227aa9455aea52db00bf4"><div class="ttname"><a href="class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4">IntelliPhotoGui::UpdateGui</a></div><div class="ttdeci">void UpdateGui()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00799">IntelliPhotoGui.cpp:799</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a1dbef8d4688227aa9455aea52db00bf4"><div class="ttname"><a href="class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4">IntelliPhotoGui::UpdateGui</a></div><div class="ttdeci">void UpdateGui()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00836">IntelliPhotoGui.cpp:836</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a2431be82e9e85dd34b62a7f7cba053c2"><div class="ttname"><a href="class_intelli_image.html#a2431be82e9e85dd34b62a7f7cba053c2">IntelliImage::imageData</a></div><div class="ttdeci">QImage imageData</div><div class="ttdoc">The underlying image data.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8h_source.html#l00041">IntelliImage.h:41</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_af01a139bc8edfdbb338393874e89bd83"><div class="ttname"><a href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">LayerObject::image</a></div><div class="ttdeci">IntelliImage * image</div><div class="ttdoc">image - Stores the imageData of the current LayerObject.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00027">PaintingArea.h:27</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_toolsettings_html_a68528dd3bad8f39ba19fa6b12a4e415a"><div class="ttname"><a href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">IntelliToolsettings::getLineWidth</a></div><div class="ttdeci">int getLineWidth()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8cpp_source.html#l00014">IntelliToolsettings.cpp:14</a></div></div>
|
||||
|
||||
@@ -100,7 +100,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_8h_source.html',''); ini
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="keyword">class </span><a class="code" href="class_painting_area.html">PaintingArea</a>;</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_intelli_tool.html"> 17</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_tool.html">IntelliTool</a> {</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8f"> 20</a></span> <span class="keyword">enum class</span> <a class="code" href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8f">Tooltype</a> {</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <a class="code" href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa0af50777920c1401ab975cab64c4d491">CIRCLE</a>,</div>
|
||||
|
||||
@@ -103,30 +103,30 @@ $(document).ready(function(){initNavTree('_intelli_tool_circle_8cpp_source.html'
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keywordtype">void</span> IntelliToolCircle::drawCircle(<span class="keywordtype">int</span> radius){</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  QColor inner = this-><a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">getSecondColor</a>();</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  inner.setAlpha(<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a7d6ce2054ec4bcba7629dc2b514b6b5c">getInnerAlpha</a>());</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keywordtype">int</span> yMin, yMax, xMin, xMax;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  yMin = centerPoint.y() - radius;</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  yMax = centerPoint.y() + radius;</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keywordtype">int</span> yMinimum, yMaximum, xMinimum, xMaximum;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  yMinimum = centerPoint.y() - radius;</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  yMaximum = centerPoint.y() + radius;</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="comment">// x = x0+-sqrt(r2-(y-y0)2)</span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = yMin; i<=yMax; i++) {</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  xMin = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.x() - sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  xMax = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.x() + sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">drawLine</a>(QPoint(xMin,i), QPoint(xMax,i),inner,1);</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = yMinimum; i<=yMaximum; i++) {</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  xMinimum = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.x() - sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  xMaximum = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.x() + sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">drawLine</a>(QPoint(xMinimum,i), QPoint(xMaximum,i),inner,1);</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  }</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="comment">//TODO implement circle drawing algorithm bresenham</span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  radius = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(radius + (<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>() / 2.));</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  yMin = (centerPoint.y() - radius);</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  yMax = (centerPoint.y() + radius);</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = yMin; i<=yMax; i++) {</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  xMin = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.x() - sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  xMax = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.x() + sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">drawPoint</a>(QPoint(xMin,i), <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(),<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">drawPoint</a>(QPoint(xMax,i), <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(),<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  yMinimum = (centerPoint.y() - radius);</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  yMaximum = (centerPoint.y() + radius);</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = yMinimum; i<=yMaximum; i++) {</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  xMinimum = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.x() - sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  xMaximum = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.x() + sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">drawPoint</a>(QPoint(xMinimum,i), <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(),<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">drawPoint</a>(QPoint(xMaximum,i), <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(),<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  }</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  xMin = (centerPoint.x() - radius);</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  xMax = (centerPoint.x() + radius);</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = xMin; i<=xMax; i++) {</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  xMinimum = (centerPoint.x() - radius);</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  xMaximum = (centerPoint.x() + radius);</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = xMinimum; i<=xMaximum; i++) {</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">int</span> yMin = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.y() - sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">int</span> yMax = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(centerPoint.y() + sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">drawPoint</a>(QPoint(i, yMin), <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(),<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
@@ -181,7 +181,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_circle_8cpp_source.html'
|
||||
<div class="ttc" id="aclass_intelli_tool_circle_html_ae2d9b0fb6695c184c4cb507a5fb75506"><div class="ttname"><a href="class_intelli_tool_circle.html#ae2d9b0fb6695c184c4cb507a5fb75506">IntelliToolCircle::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value) override</div><div class="ttdoc">A function managing the scroll event. Changing the edge Width relative to value.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_circle_8cpp_source.html#l00071">IntelliToolCircle.cpp:71</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a34b7ef1dde96b94a0ce450a25ae1778c"><div class="ttname"><a href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool::onMouseLeftPressed</a></div><div class="ttdeci">virtual void onMouseLeftPressed(int x, int y)</div><div class="ttdoc">A function managing the left click Pressed of a Mouse. Resetting the current draw....</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00029">IntelliTool.cpp:29</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a55f6b45b416b7d790fa8bc09603bf67f"><div class="ttname"><a href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">IntelliTool::Toolsettings</a></div><div class="ttdeci">IntelliToolsettings * Toolsettings</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00059">IntelliTool.h:59</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00020">IntelliColorPicker.cpp:20</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00019">IntelliColorPicker.cpp:19</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html"><div class="ttname"><a href="class_painting_area.html">PaintingArea</a></div><div class="ttdoc">The PaintingArea class manages the methods and stores information about the current painting area,...</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00053">PaintingArea.h:53</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a555aa8a74992327f740dd69b3bb0ccca"><div class="ttname"><a href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">IntelliTool::isDrawing</a></div><div class="ttdeci">bool isDrawing</div><div class="ttdoc">A flag checking if the user is currently drawing or not.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00074">IntelliTool.h:74</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_toolsettings_html_a7d6ce2054ec4bcba7629dc2b514b6b5c"><div class="ttname"><a href="class_intelli_toolsettings.html#a7d6ce2054ec4bcba7629dc2b514b6b5c">IntelliToolsettings::getInnerAlpha</a></div><div class="ttdeci">int getInnerAlpha()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8cpp_source.html#l00028">IntelliToolsettings.cpp:28</a></div></div>
|
||||
@@ -192,7 +192,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_circle_8cpp_source.html'
|
||||
<div class="ttc" id="aclass_intelli_tool_circle_html_a7a03b65b95d7b5d72e6a92c95f068954"><div class="ttname"><a href="class_intelli_tool_circle.html#a7a03b65b95d7b5d72e6a92c95f068954">IntelliToolCircle::~IntelliToolCircle</a></div><div class="ttdeci">virtual ~IntelliToolCircle() override</div><div class="ttdoc">A Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_circle_8cpp_source.html#l00011">IntelliToolCircle.cpp:11</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a631388999f36013628e13b9de87a6f7b"><div class="ttname"><a href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">IntelliTool::ActiveType</a></div><div class="ttdeci">Tooltype ActiveType</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00052">IntelliTool.h:52</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_circle_html_a90ee58c5390a86afc75c14ca79b91d7b"><div class="ttname"><a href="class_intelli_tool_circle.html#a90ee58c5390a86afc75c14ca79b91d7b">IntelliToolCircle::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y) override</div><div class="ttdoc">A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse posit...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_circle_8cpp_source.html#l00076">IntelliToolCircle.cpp:76</a></div></div>
|
||||
|
||||
@@ -97,7 +97,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_circle_8h_source.html','
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_intelli_tool_circle.html"> 14</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_tool_circle.html">IntelliToolCircle</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a> {</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keywordtype">void</span> drawCircle(<span class="keywordtype">int</span> radius);</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> QPoint centerPoint;</div>
|
||||
|
||||
@@ -192,7 +192,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_flood_fill_8cpp_source.h
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html_a3cd42cea99bc7583875abcc0c274c668"><div class="ttname"><a href="class_intelli_tool_flood_fill.html#a3cd42cea99bc7583875abcc0c274c668">IntelliToolFloodFill::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y) override</div><div class="ttdoc">A function managing the mouse moved event.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8cpp_source.html#l00081">IntelliToolFloodFill.cpp:81</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a4576ebb6d863321c816293d7b7f9fd3f"><div class="ttname"><a href="class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f">IntelliImage::getPixelColor</a></div><div class="ttdeci">virtual QColor getPixelColor(QPoint &point)</div><div class="ttdoc">A function that returns the pixelcolor at a certain point.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00126">IntelliImage.cpp:126</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_ae0003fb815e50ed587a9897988befc90"><div class="ttname"><a href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">LayerObject::height</a></div><div class="ttdeci">int height</div><div class="ttdoc">height - Stores the height of a layer in pixels.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00035">PaintingArea.h:35</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a631388999f36013628e13b9de87a6f7b"><div class="ttname"><a href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">IntelliTool::ActiveType</a></div><div class="ttdeci">Tooltype ActiveType</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00052">IntelliTool.h:52</a></div></div>
|
||||
|
||||
@@ -97,7 +97,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_flood_fill_8h_source.htm
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_intelli_tool_flood_fill.html"> 14</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_tool_flood_fill.html">IntelliToolFloodFill</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a> {</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <a class="code" href="class_intelli_tool_flood_fill.html#a0b283b1b0135ff909a7199be9da9c076">IntelliToolFloodFill</a>(<a class="code" href="class_painting_area.html">PaintingArea</a>* <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>, <a class="code" href="class_intelli_color_picker.html">IntelliColorPicker</a>* <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>, <a class="code" href="class_intelli_toolsettings.html">IntelliToolsettings</a>* <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>);</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
||||
|
||||
@@ -155,7 +155,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_line_8cpp_source.html','
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a144d469cc03584f501194529a1b53c77"><div class="ttname"><a href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">IntelliTool::Canvas</a></div><div class="ttdeci">LayerObject * Canvas</div><div class="ttdoc">A pointer to the drawing canvas of the tool, work on this.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00069">IntelliTool.h:69</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a631388999f36013628e13b9de87a6f7b"><div class="ttname"><a href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">IntelliTool::ActiveType</a></div><div class="ttdeci">Tooltype ActiveType</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00052">IntelliTool.h:52</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_af01a139bc8edfdbb338393874e89bd83"><div class="ttname"><a href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">LayerObject::image</a></div><div class="ttdeci">IntelliImage * image</div><div class="ttdoc">image - Stores the imageData of the current LayerObject.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00027">PaintingArea.h:27</a></div></div>
|
||||
|
||||
@@ -96,7 +96,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_line_8h_source.html','')
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_intelli_tool_line.html"> 13</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_tool_line.html">IntelliToolLine</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a> {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> QPoint lineStartingPoint;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">public</span>:</div>
|
||||
|
||||
@@ -155,7 +155,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_pen_8cpp_source.html',''
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_pen_html_abda7a22b9766fa4ad254324a53cab94d"><div class="ttname"><a href="class_intelli_tool_pen.html#abda7a22b9766fa4ad254324a53cab94d">IntelliToolPen::onMouseLeftReleased</a></div><div class="ttdeci">virtual void onMouseLeftReleased(int x, int y) override</div><div class="ttdoc">A function managing the left click released of a mouse. Merging the drawing to the active layer.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_pen_8cpp_source.html#l00031">IntelliToolPen.cpp:31</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_pen_html_a9f885143d6bb7adda3dcd3707d59e14d"><div class="ttname"><a href="class_intelli_tool_pen.html#a9f885143d6bb7adda3dcd3707d59e14d">IntelliToolPen::IntelliToolPen</a></div><div class="ttdeci">IntelliToolPen(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)</div><div class="ttdoc">A constructor setting the general paintingArea and colorPicker. Reading the penWidth.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_pen_8cpp_source.html#l00007">IntelliToolPen.cpp:7</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a631388999f36013628e13b9de87a6f7b"><div class="ttname"><a href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">IntelliTool::ActiveType</a></div><div class="ttdeci">Tooltype ActiveType</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00052">IntelliTool.h:52</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
|
||||
@@ -97,7 +97,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_pen_8h_source.html','');
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_intelli_tool_pen.html"> 14</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_tool_pen.html">IntelliToolPen</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a> {</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> QPoint previousPoint;</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <a class="code" href="class_intelli_tool_pen.html#a9f885143d6bb7adda3dcd3707d59e14d">IntelliToolPen</a>(<a class="code" href="class_painting_area.html">PaintingArea</a>* <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>, <a class="code" href="class_intelli_color_picker.html">IntelliColorPicker</a>* <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>, <a class="code" href="class_intelli_toolsettings.html">IntelliToolsettings</a>* <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>);</div>
|
||||
|
||||
@@ -141,7 +141,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_plain_8cpp_source.html',
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a144d469cc03584f501194529a1b53c77"><div class="ttname"><a href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">IntelliTool::Canvas</a></div><div class="ttdeci">LayerObject * Canvas</div><div class="ttdoc">A pointer to the drawing canvas of the tool, work on this.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00069">IntelliTool.h:69</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a631388999f36013628e13b9de87a6f7b"><div class="ttname"><a href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">IntelliTool::ActiveType</a></div><div class="ttdeci">Tooltype ActiveType</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00052">IntelliTool.h:52</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_plain_tool_html_acb0c46e16d2c09370a2244a936de38b1"><div class="ttname"><a href="class_intelli_tool_plain_tool.html#acb0c46e16d2c09370a2244a936de38b1">IntelliToolPlainTool::onMouseRightPressed</a></div><div class="ttdeci">virtual void onMouseRightPressed(int x, int y) override</div><div class="ttdoc">A function managing the right click pressed of a mouse. Resetting the current fill.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_plain_8cpp_source.html#l00024">IntelliToolPlain.cpp:24</a></div></div>
|
||||
|
||||
@@ -96,7 +96,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_plain_8h_source.html',''
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_intelli_tool_plain_tool.html"> 13</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_tool_plain_tool.html">IntelliToolPlainTool</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a> {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <a class="code" href="class_intelli_tool_plain_tool.html#a816bcd6aea046994420969bed8b139d2">IntelliToolPlainTool</a>(<a class="code" href="class_painting_area.html">PaintingArea</a>*<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>, <a class="code" href="class_intelli_color_picker.html">IntelliColorPicker</a>* <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>, <a class="code" href="class_intelli_toolsettings.html">IntelliToolsettings</a>* <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>);</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">virtual</span> <a class="code" href="class_intelli_tool_plain_tool.html#a91fe568be05c075814d67440472bb658">~IntelliToolPlainTool</a>() <span class="keyword">override</span>;</div>
|
||||
|
||||
@@ -91,6 +91,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp.html','');
|
||||
<code>#include <QCursor></code><br />
|
||||
<code>#include <QInputDialog></code><br />
|
||||
<code>#include <QDebug></code><br />
|
||||
<code>#include <cmath></code><br />
|
||||
</div>
|
||||
<p><a href="_intelli_tool_polygon_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
</div><!-- contents -->
|
||||
|
||||
@@ -91,151 +91,152 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include <QCursor></span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <QInputDialog></span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <QDebug></span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a63b8c7514a87d4608533fbb557ee0db5"> 7</a></span> <a class="code" href="class_intelli_tool_polygon.html#a63b8c7514a87d4608533fbb557ee0db5">IntelliToolPolygon::IntelliToolPolygon</a>(<a class="code" href="class_painting_area.html">PaintingArea</a>* Area, <a class="code" href="class_intelli_color_picker.html">IntelliColorPicker</a>* colorPicker, <a class="code" href="class_intelli_toolsettings.html">IntelliToolsettings</a>* Toolsettings, <span class="keywordtype">bool</span> isSettingPolygon)</div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  : <a class="code" href="class_intelli_tool.html">IntelliTool</a>(Area, colorPicker, Toolsettings){</div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  isPointNearStart = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  drawingOfPolygon = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  isInside = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  this->isSettingPolygon = isSettingPolygon;</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <span class="keywordflow">if</span>(isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a73fa94c85c6c2fdc1a33975a33304a6f">setLineWidth</a>(5);</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  }</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  this-><a class="code" href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">ActiveType</a> = <a class="code" href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8faecdc92bf56d960b73b02ee40125758bc">Tooltype::POLYGON</a>;</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> }</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499"> 19</a></span> <a class="code" href="class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499">IntelliToolPolygon::~IntelliToolPolygon</a>(){</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordflow">if</span>(drawingOfPolygon) {</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(0,0);</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  }</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> }</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d"> 25</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d">IntelliToolPolygon::onMouseLeftPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordflow">if</span>(!drawingOfPolygon && <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#ae92b27dfd09573c224d2ae1958d3bead">getTypeOfImageRealLayer</a>() == <a class="code" href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eac065b60ec4cf443808263527bdc0df37">IntelliImage::ImageType::SHAPEDIMAGE</a> && x > 0 && y > 0 && x<Area->getWidthOfActive() && y<Area->getHeightOfActive()) {</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">if</span>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#a7ae21fd031ee1c04f92e042e86be0a90">getPolygonDataOfRealLayer</a>().size()>2) {</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  std::vector<Triangle> Triangles = <a class="code" href="namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5">IntelliTriangulation::calculateTriangles</a>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#a7ae21fd031ee1c04f92e042e86be0a90">getPolygonDataOfRealLayer</a>());</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  QPoint Point(x,y);</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  isInside = <a class="code" href="namespace_intelli_triangulation.html#ac276696f29d141ed34614c1c3b1c040f">IntelliTriangulation::isInPolygon</a>(Triangles,Point);</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">else</span>{</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  isInside = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  }</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">if</span>(isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  isInside = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  }</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(!drawingOfPolygon && <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#ae92b27dfd09573c224d2ae1958d3bead">getTypeOfImageRealLayer</a>() == <a class="code" href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eadd5823fd73c42c0154fa2abbd70283b9">IntelliImage::ImageType::RASTERIMAGE</a> && x >= 0 && y >= 0 && x<Area->getWidthOfActive() && y<Area->getHeightOfActive()) {</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  isInside = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">if</span>(isInside && !drawingOfPolygon) {</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool::onMouseLeftPressed</a>(x,y);</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  QPoint drawingPoint = QPoint(x,y);</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  drawingOfPolygon = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  QPointList.push_back(drawingPoint);</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">drawPoint</a>(QPointList.back(), <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(drawingOfPolygon && QPointList.size() > 0 && isNearStart(x,y,QPointList.front())) {</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">if</span>(QPointList.size() > 2) {</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  isPointNearStart = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">drawLine</a>(QPointList.back(), QPointList.front(), <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">else</span>{</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  isInside = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  drawingOfPolygon = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  QPointList.clear();</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(x,y);</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::onMouseRightReleased</a>(x,y);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  }</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(drawingOfPolygon) {</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  QPoint drawingPoint(x,y);</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  QPointList.push_back(drawingPoint);</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">drawLine</a>(QPointList[QPointList.size() - 2], QPointList[QPointList.size() - 1], <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> }</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427"> 82</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427">IntelliToolPolygon::onMouseRightPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  drawingOfPolygon = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  isInside = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  isPointNearStart = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  QPointList.clear();</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(x,y);</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> }</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21"> 90</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21">IntelliToolPolygon::onMouseLeftReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">if</span>(isPointNearStart) {</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  isInside = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  isPointNearStart = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  drawingOfPolygon = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  std::vector<Triangle> Triangles = <a class="code" href="namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5">IntelliTriangulation::calculateTriangles</a>(QPointList);</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  QPoint Point;</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  QColor colorTwo(<a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">getSecondColor</a>());</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  colorTwo.setAlpha(<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a7d6ce2054ec4bcba7629dc2b514b6b5c">getInnerAlpha</a>());</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < <a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#af261813df52ff0b0c82bfa57efeb9897">width</a>; i++) {</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> j = 0; j < <a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">height</a>; j++) {</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  Point = QPoint(i,j);</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">if</span>(<a class="code" href="namespace_intelli_triangulation.html#ac276696f29d141ed34614c1c3b1c040f">IntelliTriangulation::isInPolygon</a>(Triangles,Point)) {</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(Point, colorTwo);</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i<static_cast<int>(QPointList.size()); i++) {</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">int</span> next = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>((i + <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(1)) % <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(QPointList.size()));</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">drawLine</a>(QPointList[<span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span><span class="keyword">></span>(i)], QPointList[<span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span><span class="keyword">></span>(next)], <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">else</span>{</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aa4b3f4631bd972456917275afb9fd309">setPolygon</a>(QPointList);</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#ab09c64e7559f3db32ca3b20ba6339268">setImageData</a>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#a4f484ff3ca7ae202ab57a00f52551423">getImageDataOfActiveLayer</a>());</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b">IntelliTool::onMouseLeftReleased</a>(x,y);</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  QPointList.clear();</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> }</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a47cad87cd02b128b02dc929713bd1d1b"> 123</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#a47cad87cd02b128b02dc929713bd1d1b">IntelliToolPolygon::onMouseRightReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::onMouseRightReleased</a>(x,y);</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> }</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17"> 127</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17">IntelliToolPolygon::onWheelScrolled</a>(<span class="keywordtype">int</span> value){</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool::onWheelScrolled</a>(value);</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">if</span>(!<a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>) {</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a73fa94c85c6c2fdc1a33975a33304a6f">setLineWidth</a>(<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>() + value);</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  }</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> }</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922"> 136</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922">IntelliToolPolygon::onMouseMoved</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool::onMouseMoved</a>(x,y);</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  }</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> }</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="keywordtype">bool</span> IntelliToolPolygon::isNearStart(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, QPoint Startpoint){</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">int</span> StartX = Startpoint.x();</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordtype">int</span> StartY = Startpoint.y();</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordtype">int</span> valueToNear = 5;</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordtype">float</span> euklid = sqrt(pow(<span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(StartX-x),2.f)+pow(<span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(StartY-y),2.f));</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(euklid)<valueToNear;</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> }</div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <cmath></span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a63b8c7514a87d4608533fbb557ee0db5"> 8</a></span> <a class="code" href="class_intelli_tool_polygon.html#a63b8c7514a87d4608533fbb557ee0db5">IntelliToolPolygon::IntelliToolPolygon</a>(<a class="code" href="class_painting_area.html">PaintingArea</a>* Area, <a class="code" href="class_intelli_color_picker.html">IntelliColorPicker</a>* colorPicker, <a class="code" href="class_intelli_toolsettings.html">IntelliToolsettings</a>* Toolsettings, <span class="keywordtype">bool</span> isSettingPolygon)</div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  : <a class="code" href="class_intelli_tool.html">IntelliTool</a>(Area, colorPicker, Toolsettings){</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  isPointNearStart = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  drawingOfPolygon = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  isInside = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  this->isSettingPolygon = isSettingPolygon;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keywordflow">if</span>(isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a73fa94c85c6c2fdc1a33975a33304a6f">setLineWidth</a>(5);</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  }</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  this-><a class="code" href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">ActiveType</a> = <a class="code" href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8faecdc92bf56d960b73b02ee40125758bc">Tooltype::POLYGON</a>;</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> }</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499"> 20</a></span> <a class="code" href="class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499">IntelliToolPolygon::~IntelliToolPolygon</a>(){</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordflow">if</span>(drawingOfPolygon) {</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(0,0);</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  }</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> }</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d"> 26</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d">IntelliToolPolygon::onMouseLeftPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">if</span>(!drawingOfPolygon && <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#ae92b27dfd09573c224d2ae1958d3bead">getTypeOfImageRealLayer</a>() == <a class="code" href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eac065b60ec4cf443808263527bdc0df37">IntelliImage::ImageType::SHAPEDIMAGE</a> && x > 0 && y > 0 && x<Area->getWidthOfActive() && y<Area->getHeightOfActive()) {</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">if</span>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#a7ae21fd031ee1c04f92e042e86be0a90">getPolygonDataOfRealLayer</a>().size()>2) {</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  std::vector<Triangle> Triangles = <a class="code" href="namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5">IntelliTriangulation::calculateTriangles</a>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#a7ae21fd031ee1c04f92e042e86be0a90">getPolygonDataOfRealLayer</a>());</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  QPoint Point(x,y);</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  isInside = <a class="code" href="namespace_intelli_triangulation.html#ac276696f29d141ed34614c1c3b1c040f">IntelliTriangulation::isInPolygon</a>(Triangles,Point);</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">else</span>{</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  isInside = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  }</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">if</span>(isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  isInside = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(!drawingOfPolygon && <a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#ae92b27dfd09573c224d2ae1958d3bead">getTypeOfImageRealLayer</a>() == <a class="code" href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eadd5823fd73c42c0154fa2abbd70283b9">IntelliImage::ImageType::RASTERIMAGE</a> && x >= 0 && y >= 0 && x<Area->getWidthOfActive() && y<Area->getHeightOfActive()) {</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  isInside = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">if</span>(isInside && !drawingOfPolygon) {</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool::onMouseLeftPressed</a>(x,y);</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  QPoint drawingPoint = QPoint(x,y);</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  drawingOfPolygon = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  QPointList.push_back(drawingPoint);</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">drawPoint</a>(QPointList.back(), <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(drawingOfPolygon && QPointList.size() > 0 && isNearStart(x,y,QPointList.front())) {</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span>(QPointList.size() > 2) {</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  isPointNearStart = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">drawLine</a>(QPointList.back(), QPointList.front(), <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">else</span>{</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  isInside = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  drawingOfPolygon = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  QPointList.clear();</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(x,y);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::onMouseRightReleased</a>(x,y);</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(drawingOfPolygon) {</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  QPoint drawingPoint(x,y);</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  QPointList.push_back(drawingPoint);</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">drawLine</a>(QPointList[QPointList.size() - 2], QPointList[QPointList.size() - 1], <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">calculateVisiblity</a>();</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427"> 83</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427">IntelliToolPolygon::onMouseRightPressed</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  drawingOfPolygon = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  isInside = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  isPointNearStart = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  QPointList.clear();</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a>(x,y);</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> }</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21"> 91</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21">IntelliToolPolygon::onMouseLeftReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">if</span>(isPointNearStart) {</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  isInside = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  isPointNearStart = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  drawingOfPolygon = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  std::vector<Triangle> Triangles = <a class="code" href="namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5">IntelliTriangulation::calculateTriangles</a>(QPointList);</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  QPoint Point;</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  QColor colorTwo(<a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">getSecondColor</a>());</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  colorTwo.setAlpha(<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a7d6ce2054ec4bcba7629dc2b514b6b5c">getInnerAlpha</a>());</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < <a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#af261813df52ff0b0c82bfa57efeb9897">width</a>; i++) {</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> j = 0; j < <a class="code" href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">activeLayer</a>-><a class="code" href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">height</a>; j++) {</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  Point = QPoint(i,j);</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">if</span>(<a class="code" href="namespace_intelli_triangulation.html#ac276696f29d141ed34614c1c3b1c040f">IntelliTriangulation::isInPolygon</a>(Triangles,Point)) {</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">drawPixel</a>(Point, colorTwo);</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i<static_cast<int>(QPointList.size()); i++) {</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">int</span> next = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>((i + <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(1)) % <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(QPointList.size()));</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  this-><a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31">drawLine</a>(QPointList[<span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span><span class="keyword">></span>(i)], QPointList[<span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span><span class="keyword">></span>(next)], <a class="code" href="class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef">colorPicker</a>-><a class="code" href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">getFirstColor</a>(), <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>());</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  }</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">else</span>{</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#aa4b3f4631bd972456917275afb9fd309">setPolygon</a>(QPointList);</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">Canvas</a>-><a class="code" href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">image</a>-><a class="code" href="class_intelli_image.html#ab09c64e7559f3db32ca3b20ba6339268">setImageData</a>(<a class="code" href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">Area</a>-><a class="code" href="class_painting_area.html#a4f484ff3ca7ae202ab57a00f52551423">getImageDataOfActiveLayer</a>());</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  }</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b">IntelliTool::onMouseLeftReleased</a>(x,y);</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  QPointList.clear();</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> }</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a47cad87cd02b128b02dc929713bd1d1b"> 124</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#a47cad87cd02b128b02dc929713bd1d1b">IntelliToolPolygon::onMouseRightReleased</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::onMouseRightReleased</a>(x,y);</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> }</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17"> 128</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17">IntelliToolPolygon::onWheelScrolled</a>(<span class="keywordtype">int</span> value){</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool::onWheelScrolled</a>(value);</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">if</span>(!<a class="code" href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">isDrawing</a>) {</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a73fa94c85c6c2fdc1a33975a33304a6f">setLineWidth</a>(<a class="code" href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">Toolsettings</a>-><a class="code" href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">getLineWidth</a>() + value);</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922"> 137</a></span> <span class="keywordtype">void</span> <a class="code" href="class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922">IntelliToolPolygon::onMouseMoved</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y){</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">if</span>(!isSettingPolygon) {</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool::onMouseMoved</a>(x,y);</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  }</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> }</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  </div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="keywordtype">bool</span> IntelliToolPolygon::isNearStart(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, QPoint Startpoint){</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordtype">int</span> StartX = Startpoint.x();</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordtype">int</span> StartY = Startpoint.y();</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordtype">int</span> valueToNear = 5;</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordtype">float</span> euklid = sqrt(pow(<span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(StartX - x),2.f) + pow(<span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(StartY - y),2.f));</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(euklid)<valueToNear;</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> }</div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a1e6aa68ac5f3c2ca02319e5ef3f0c966"><div class="ttname"><a href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool::onMouseRightPressed</a></div><div class="ttdeci">virtual void onMouseRightPressed(int x, int y)</div><div class="ttdoc">A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00018">IntelliTool.cpp:18</a></div></div>
|
||||
@@ -248,15 +249,15 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
|
||||
<div class="ttc" id="aclass_intelli_image_html_af3c859f5c409e37051edfd9e9fbca056"><div class="ttname"><a href="class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056">IntelliImage::drawPixel</a></div><div class="ttdeci">virtual void drawPixel(const QPoint &p1, const QColor &color)</div><div class="ttdoc">A funtcion used to draw a pixel on the Image with the given Color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00057">IntelliImage.cpp:57</a></div></div>
|
||||
<div class="ttc" id="anamespace_intelli_triangulation_html_acdaf1ed598e868b25e9e06d580da32e5"><div class="ttname"><a href="namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5">IntelliTriangulation::calculateTriangles</a></div><div class="ttdeci">std::vector< Triangle > calculateTriangles(std::vector< QPoint > polyPoints)</div><div class="ttdoc">A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_triangulation_8cpp_source.html#l00007">IntelliTriangulation.cpp:7</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_ab4c2698a0f9f25fb6639ec760d2d0289"><div class="ttname"><a href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">IntelliTool::Area</a></div><div class="ttdeci">PaintingArea * Area</div><div class="ttdoc">A pointer to the general PaintingArea to interact with.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00050">IntelliTool.h:50</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00020">IntelliColorPicker.cpp:20</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a0e3a1135f04c73c159137ae219a38922"><div class="ttname"><a href="class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922">IntelliToolPolygon::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y) override</div><div class="ttdoc">A function managing the mouse moved event.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00136">IntelliToolPolygon.cpp:136</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00019">IntelliColorPicker.cpp:19</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a0e3a1135f04c73c159137ae219a38922"><div class="ttname"><a href="class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922">IntelliToolPolygon::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y) override</div><div class="ttdoc">A function managing the mouse moved event.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00137">IntelliToolPolygon.cpp:137</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html"><div class="ttname"><a href="class_painting_area.html">PaintingArea</a></div><div class="ttdoc">The PaintingArea class manages the methods and stores information about the current painting area,...</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00053">PaintingArea.h:53</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a555aa8a74992327f740dd69b3bb0ccca"><div class="ttname"><a href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">IntelliTool::isDrawing</a></div><div class="ttdeci">bool isDrawing</div><div class="ttdoc">A flag checking if the user is currently drawing or not.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00074">IntelliTool.h:74</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_toolsettings_html_a7d6ce2054ec4bcba7629dc2b514b6b5c"><div class="ttname"><a href="class_intelli_toolsettings.html#a7d6ce2054ec4bcba7629dc2b514b6b5c">IntelliToolsettings::getInnerAlpha</a></div><div class="ttdeci">int getInnerAlpha()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8cpp_source.html#l00028">IntelliToolsettings.cpp:28</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a2e787f1b333b59401643936ebb3dcfe1"><div class="ttname"><a href="class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1">IntelliImage::drawPoint</a></div><div class="ttdeci">virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)</div><div class="ttdoc">A function that draws a point between on a given point in a given color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00077">IntelliImage.cpp:77</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a16189b00307c6d7e89f28198f54404b0"><div class="ttname"><a href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool::onMouseRightReleased</a></div><div class="ttdeci">virtual void onMouseRightReleased(int x, int y)</div><div class="ttdoc">A function managing the right click Released of a Mouse. Merging the Canvas to Active....</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00025">IntelliTool.cpp:25</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_aedccdad01b2bc6ec84fad3582251ff5d"><div class="ttname"><a href="class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d">IntelliTool::activeLayer</a></div><div class="ttdeci">LayerObject * activeLayer</div><div class="ttdoc">A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or prev...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00064">IntelliTool.h:64</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a63b8c7514a87d4608533fbb557ee0db5"><div class="ttname"><a href="class_intelli_tool_polygon.html#a63b8c7514a87d4608533fbb557ee0db5">IntelliToolPolygon::IntelliToolPolygon</a></div><div class="ttdeci">IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings, bool isSettingPolygon=false)</div><div class="ttdoc">A constructor setting the general paintingArea and colorPicker.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00007">IntelliToolPolygon.cpp:7</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a63b8c7514a87d4608533fbb557ee0db5"><div class="ttname"><a href="class_intelli_tool_polygon.html#a63b8c7514a87d4608533fbb557ee0db5">IntelliToolPolygon::IntelliToolPolygon</a></div><div class="ttdeci">IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings, bool isSettingPolygon=false)</div><div class="ttdoc">A constructor setting the general paintingArea and colorPicker.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00008">IntelliToolPolygon.cpp:8</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a3fbd2584566b3cefcf3c070ae0b69d8faecdc92bf56d960b73b02ee40125758bc"><div class="ttname"><a href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8faecdc92bf56d960b73b02ee40125758bc">IntelliTool::Tooltype::POLYGON</a></div><div class="ttdeci">@ POLYGON</div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a144d469cc03584f501194529a1b53c77"><div class="ttname"><a href="class_intelli_tool.html#a144d469cc03584f501194529a1b53c77">IntelliTool::Canvas</a></div><div class="ttdeci">LayerObject * Canvas</div><div class="ttdoc">A pointer to the drawing canvas of the tool, work on this.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00069">IntelliTool.h:69</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_ae92b27dfd09573c224d2ae1958d3bead"><div class="ttname"><a href="class_painting_area.html#ae92b27dfd09573c224d2ae1958d3bead">PaintingArea::getTypeOfImageRealLayer</a></div><div class="ttdeci">IntelliImage::ImageType getTypeOfImageRealLayer()</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00251">PaintingArea.cpp:251</a></div></div>
|
||||
@@ -264,28 +265,28 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8cpp_source.html
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a5274ce9fcdcb2659c148e7ff916b680eac065b60ec4cf443808263527bdc0df37"><div class="ttname"><a href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eac065b60ec4cf443808263527bdc0df37">IntelliImage::ImageType::SHAPEDIMAGE</a></div><div class="ttdeci">@ SHAPEDIMAGE</div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_ab09c64e7559f3db32ca3b20ba6339268"><div class="ttname"><a href="class_intelli_image.html#ab09c64e7559f3db32ca3b20ba6339268">IntelliImage::setImageData</a></div><div class="ttdeci">virtual void setImageData(const QImage &newData)</div><div class="ttdoc">setImageData overwrites the old imageData the new imageData.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_image_8cpp_source.html#l00142">IntelliImage.cpp:142</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_aa36b012b48311c36e7cd6771a5081427"><div class="ttname"><a href="class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427">IntelliToolPolygon::onMouseRightPressed</a></div><div class="ttdeci">virtual void onMouseRightPressed(int x, int y) override</div><div class="ttdoc">A function managing the right click pressed of a mouse. Resetting the current fill.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00082">IntelliToolPolygon.cpp:82</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_aa36b012b48311c36e7cd6771a5081427"><div class="ttname"><a href="class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427">IntelliToolPolygon::onMouseRightPressed</a></div><div class="ttdeci">virtual void onMouseRightPressed(int x, int y) override</div><div class="ttdoc">A function managing the right click pressed of a mouse. Resetting the current fill.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00083">IntelliToolPolygon.cpp:83</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_ae0003fb815e50ed587a9897988befc90"><div class="ttname"><a href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">LayerObject::height</a></div><div class="ttdeci">int height</div><div class="ttdoc">height - Stores the height of a layer in pixels.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00035">PaintingArea.h:35</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a4f484ff3ca7ae202ab57a00f52551423"><div class="ttname"><a href="class_painting_area.html#a4f484ff3ca7ae202ab57a00f52551423">PaintingArea::getImageDataOfActiveLayer</a></div><div class="ttdeci">QImage getImageDataOfActiveLayer()</div><div class="ttdoc">getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00423">PaintingArea.cpp:423</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a631388999f36013628e13b9de87a6f7b"><div class="ttname"><a href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">IntelliTool::ActiveType</a></div><div class="ttdeci">Tooltype ActiveType</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00052">IntelliTool.h:52</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a087cbf2254010989df6106a357471499"><div class="ttname"><a href="class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499">IntelliToolPolygon::~IntelliToolPolygon</a></div><div class="ttdeci">~IntelliToolPolygon() override</div><div class="ttdoc">A Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00019">IntelliToolPolygon.cpp:19</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a087cbf2254010989df6106a357471499"><div class="ttname"><a href="class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499">IntelliToolPolygon::~IntelliToolPolygon</a></div><div class="ttdeci">~IntelliToolPolygon() override</div><div class="ttdoc">A Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00020">IntelliToolPolygon.cpp:20</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a5274ce9fcdcb2659c148e7ff916b680eadd5823fd73c42c0154fa2abbd70283b9"><div class="ttname"><a href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eadd5823fd73c42c0154fa2abbd70283b9">IntelliImage::ImageType::RASTERIMAGE</a></div><div class="ttdeci">@ RASTERIMAGE</div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_af01a139bc8edfdbb338393874e89bd83"><div class="ttname"><a href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">LayerObject::image</a></div><div class="ttdeci">IntelliImage * image</div><div class="ttdoc">image - Stores the imageData of the current LayerObject.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00027">PaintingArea.h:27</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a7ae21fd031ee1c04f92e042e86be0a90"><div class="ttname"><a href="class_painting_area.html#a7ae21fd031ee1c04f92e042e86be0a90">PaintingArea::getPolygonDataOfRealLayer</a></div><div class="ttdeci">std::vector< QPoint > getPolygonDataOfRealLayer()</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00255">PaintingArea.cpp:255</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_toolsettings_html_a73fa94c85c6c2fdc1a33975a33304a6f"><div class="ttname"><a href="class_intelli_toolsettings.html#a73fa94c85c6c2fdc1a33975a33304a6f">IntelliToolsettings::setLineWidth</a></div><div class="ttdeci">void setLineWidth(int LineWidth)</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8cpp_source.html#l00018">IntelliToolsettings.cpp:18</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_toolsettings_html_a68528dd3bad8f39ba19fa6b12a4e415a"><div class="ttname"><a href="class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a">IntelliToolsettings::getLineWidth</a></div><div class="ttdeci">int getLineWidth()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8cpp_source.html#l00014">IntelliToolsettings.cpp:14</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_ac10e20414cd8855a2f9b103fb6408639"><div class="ttname"><a href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y)</div><div class="ttdoc">A function managing the mouse moved event. Call this in child classes!</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00046">IntelliTool.cpp:46</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_ad5d3b741be6d0647a9cdc9da2cb8bc3d"><div class="ttname"><a href="class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d">IntelliToolPolygon::onMouseLeftPressed</a></div><div class="ttdeci">virtual void onMouseLeftPressed(int x, int y) override</div><div class="ttdoc">A function managing the left click pressed of a mouse. Setting polygon points.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00025">IntelliToolPolygon.cpp:25</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a47cad87cd02b128b02dc929713bd1d1b"><div class="ttname"><a href="class_intelli_tool_polygon.html#a47cad87cd02b128b02dc929713bd1d1b">IntelliToolPolygon::onMouseRightReleased</a></div><div class="ttdeci">virtual void onMouseRightReleased(int x, int y) override</div><div class="ttdoc">A function managing the right click released of a mouse.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00123">IntelliToolPolygon.cpp:123</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a4e1473ff408ae2e11cf6a43f6f575f21"><div class="ttname"><a href="class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21">IntelliToolPolygon::onMouseLeftReleased</a></div><div class="ttdeci">virtual void onMouseLeftReleased(int x, int y) override</div><div class="ttdoc">A function managing the left click released of a mouse. Merging the fill to the active layer.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00090">IntelliToolPolygon.cpp:90</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_ad5d3b741be6d0647a9cdc9da2cb8bc3d"><div class="ttname"><a href="class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d">IntelliToolPolygon::onMouseLeftPressed</a></div><div class="ttdeci">virtual void onMouseLeftPressed(int x, int y) override</div><div class="ttdoc">A function managing the left click pressed of a mouse. Setting polygon points.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00026">IntelliToolPolygon.cpp:26</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a47cad87cd02b128b02dc929713bd1d1b"><div class="ttname"><a href="class_intelli_tool_polygon.html#a47cad87cd02b128b02dc929713bd1d1b">IntelliToolPolygon::onMouseRightReleased</a></div><div class="ttdeci">virtual void onMouseRightReleased(int x, int y) override</div><div class="ttdoc">A function managing the right click released of a mouse.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00124">IntelliToolPolygon.cpp:124</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a4e1473ff408ae2e11cf6a43f6f575f21"><div class="ttname"><a href="class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21">IntelliToolPolygon::onMouseLeftReleased</a></div><div class="ttdeci">virtual void onMouseLeftReleased(int x, int y) override</div><div class="ttdoc">A function managing the left click released of a mouse. Merging the fill to the active layer.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00091">IntelliToolPolygon.cpp:91</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_aebbced93f4744fad81b7f141b21f4ab2"><div class="ttname"><a href="class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2">IntelliImage::calculateVisiblity</a></div><div class="ttdeci">virtual void calculateVisiblity()=0</div><div class="ttdoc">An abstract function that calculates the visiblity of the Image data if needed.</div></div>
|
||||
<div class="ttc" id="anamespace_intelli_triangulation_html_ac276696f29d141ed34614c1c3b1c040f"><div class="ttname"><a href="namespace_intelli_triangulation.html#ac276696f29d141ed34614c1c3b1c040f">IntelliTriangulation::isInPolygon</a></div><div class="ttdeci">bool isInPolygon(const std::vector< Triangle > &triangles, QPoint &point)</div><div class="ttdoc">A function to check if a point lies in a polygon by checking its spanning triangles.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_triangulation_8cpp_source.html#l00116">IntelliTriangulation.cpp:116</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a4dccfd4460255ccb866f336406a33574"><div class="ttname"><a href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value)</div><div class="ttdoc">A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00051">IntelliTool.cpp:51</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_toolsettings_html"><div class="ttname"><a href="class_intelli_toolsettings.html">IntelliToolsettings</a></div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8h_source.html#l00007">IntelliToolsettings.h:7</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a713103300c9f023d64d9eec5ac05dd17"><div class="ttname"><a href="class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17">IntelliToolPolygon::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value) override</div><div class="ttdoc">A function managing the scroll event. CHanging the lineWidth relative to value.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00127">IntelliToolPolygon.cpp:127</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a713103300c9f023d64d9eec5ac05dd17"><div class="ttname"><a href="class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17">IntelliToolPolygon::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value) override</div><div class="ttdoc">A function managing the scroll event. CHanging the lineWidth relative to value.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00128">IntelliToolPolygon.cpp:128</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_aa4b3f4631bd972456917275afb9fd309"><div class="ttname"><a href="class_intelli_image.html#aa4b3f4631bd972456917275afb9fd309">IntelliImage::setPolygon</a></div><div class="ttdeci">virtual void setPolygon(const std::vector< QPoint > &polygonData)=0</div><div class="ttdoc">An abstract function that sets the data of the visible Polygon, if needed.</div></div>
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
|
||||
@@ -99,7 +99,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8h_source.html',
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_intelli_tool_polygon.html"> 15</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_tool_polygon.html">IntelliToolPolygon</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> {</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keywordtype">bool</span> isNearStart(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, QPoint Startpoint);</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">bool</span> drawingOfPolygon;</div>
|
||||
@@ -136,21 +136,21 @@ $(document).ready(function(){initNavTree('_intelli_tool_polygon_8h_source.html',
|
||||
<div class="ttc" id="a_intelli_tool_8h_html"><div class="ttname"><a href="_intelli_tool_8h.html">IntelliTool.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a55f6b45b416b7d790fa8bc09603bf67f"><div class="ttname"><a href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">IntelliTool::Toolsettings</a></div><div class="ttdeci">IntelliToolsettings * Toolsettings</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00059">IntelliTool.h:59</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_ab4c2698a0f9f25fb6639ec760d2d0289"><div class="ttname"><a href="class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289">IntelliTool::Area</a></div><div class="ttdeci">PaintingArea * Area</div><div class="ttdoc">A pointer to the general PaintingArea to interact with.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00050">IntelliTool.h:50</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a0e3a1135f04c73c159137ae219a38922"><div class="ttname"><a href="class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922">IntelliToolPolygon::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y) override</div><div class="ttdoc">A function managing the mouse moved event.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00136">IntelliToolPolygon.cpp:136</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a0e3a1135f04c73c159137ae219a38922"><div class="ttname"><a href="class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922">IntelliToolPolygon::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y) override</div><div class="ttdoc">A function managing the mouse moved event.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00137">IntelliToolPolygon.cpp:137</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html"><div class="ttname"><a href="class_painting_area.html">PaintingArea</a></div><div class="ttdoc">The PaintingArea class manages the methods and stores information about the current painting area,...</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00053">PaintingArea.h:53</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a63b8c7514a87d4608533fbb557ee0db5"><div class="ttname"><a href="class_intelli_tool_polygon.html#a63b8c7514a87d4608533fbb557ee0db5">IntelliToolPolygon::IntelliToolPolygon</a></div><div class="ttdeci">IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings, bool isSettingPolygon=false)</div><div class="ttdoc">A constructor setting the general paintingArea and colorPicker.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00007">IntelliToolPolygon.cpp:7</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a63b8c7514a87d4608533fbb557ee0db5"><div class="ttname"><a href="class_intelli_tool_polygon.html#a63b8c7514a87d4608533fbb557ee0db5">IntelliToolPolygon::IntelliToolPolygon</a></div><div class="ttdeci">IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings, bool isSettingPolygon=false)</div><div class="ttdoc">A constructor setting the general paintingArea and colorPicker.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00008">IntelliToolPolygon.cpp:8</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_aa36b012b48311c36e7cd6771a5081427"><div class="ttname"><a href="class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427">IntelliToolPolygon::onMouseRightPressed</a></div><div class="ttdeci">virtual void onMouseRightPressed(int x, int y) override</div><div class="ttdoc">A function managing the right click pressed of a mouse. Resetting the current fill.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00082">IntelliToolPolygon.cpp:82</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_aa36b012b48311c36e7cd6771a5081427"><div class="ttname"><a href="class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427">IntelliToolPolygon::onMouseRightPressed</a></div><div class="ttdeci">virtual void onMouseRightPressed(int x, int y) override</div><div class="ttdoc">A function managing the right click pressed of a mouse. Resetting the current fill.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00083">IntelliToolPolygon.cpp:83</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a087cbf2254010989df6106a357471499"><div class="ttname"><a href="class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499">IntelliToolPolygon::~IntelliToolPolygon</a></div><div class="ttdeci">~IntelliToolPolygon() override</div><div class="ttdoc">A Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00019">IntelliToolPolygon.cpp:19</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a087cbf2254010989df6106a357471499"><div class="ttname"><a href="class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499">IntelliToolPolygon::~IntelliToolPolygon</a></div><div class="ttdeci">~IntelliToolPolygon() override</div><div class="ttdoc">A Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00020">IntelliToolPolygon.cpp:20</a></div></div>
|
||||
<div class="ttc" id="aclass_unit_test_html"><div class="ttname"><a href="class_unit_test.html">UnitTest</a></div><div class="ttdef"><b>Definition:</b> <a href="main_unit_test_8cpp_source.html#l00008">mainUnitTest.cpp:8</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_ad5d3b741be6d0647a9cdc9da2cb8bc3d"><div class="ttname"><a href="class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d">IntelliToolPolygon::onMouseLeftPressed</a></div><div class="ttdeci">virtual void onMouseLeftPressed(int x, int y) override</div><div class="ttdoc">A function managing the left click pressed of a mouse. Setting polygon points.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00025">IntelliToolPolygon.cpp:25</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a47cad87cd02b128b02dc929713bd1d1b"><div class="ttname"><a href="class_intelli_tool_polygon.html#a47cad87cd02b128b02dc929713bd1d1b">IntelliToolPolygon::onMouseRightReleased</a></div><div class="ttdeci">virtual void onMouseRightReleased(int x, int y) override</div><div class="ttdoc">A function managing the right click released of a mouse.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00123">IntelliToolPolygon.cpp:123</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_ad5d3b741be6d0647a9cdc9da2cb8bc3d"><div class="ttname"><a href="class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d">IntelliToolPolygon::onMouseLeftPressed</a></div><div class="ttdeci">virtual void onMouseLeftPressed(int x, int y) override</div><div class="ttdoc">A function managing the left click pressed of a mouse. Setting polygon points.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00026">IntelliToolPolygon.cpp:26</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a47cad87cd02b128b02dc929713bd1d1b"><div class="ttname"><a href="class_intelli_tool_polygon.html#a47cad87cd02b128b02dc929713bd1d1b">IntelliToolPolygon::onMouseRightReleased</a></div><div class="ttdeci">virtual void onMouseRightReleased(int x, int y) override</div><div class="ttdoc">A function managing the right click released of a mouse.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00124">IntelliToolPolygon.cpp:124</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html"><div class="ttname"><a href="class_intelli_tool_polygon.html">IntelliToolPolygon</a></div><div class="ttdoc">The IntelliToolPolygon managed the Drawing of Polygonforms.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8h_source.html#l00015">IntelliToolPolygon.h:15</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a4e1473ff408ae2e11cf6a43f6f575f21"><div class="ttname"><a href="class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21">IntelliToolPolygon::onMouseLeftReleased</a></div><div class="ttdeci">virtual void onMouseLeftReleased(int x, int y) override</div><div class="ttdoc">A function managing the left click released of a mouse. Merging the fill to the active layer.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00090">IntelliToolPolygon.cpp:90</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a4e1473ff408ae2e11cf6a43f6f575f21"><div class="ttname"><a href="class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21">IntelliToolPolygon::onMouseLeftReleased</a></div><div class="ttdeci">virtual void onMouseLeftReleased(int x, int y) override</div><div class="ttdoc">A function managing the left click released of a mouse. Merging the fill to the active layer.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00091">IntelliToolPolygon.cpp:91</a></div></div>
|
||||
<div class="ttc" id="a_intelli_triangulation_8h_html"><div class="ttname"><a href="_intelli_triangulation_8h.html">IntelliTriangulation.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_toolsettings_html"><div class="ttname"><a href="class_intelli_toolsettings.html">IntelliToolsettings</a></div><div class="ttdef"><b>Definition:</b> <a href="_intelli_toolsettings_8h_source.html#l00007">IntelliToolsettings.h:7</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a713103300c9f023d64d9eec5ac05dd17"><div class="ttname"><a href="class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17">IntelliToolPolygon::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value) override</div><div class="ttdoc">A function managing the scroll event. CHanging the lineWidth relative to value.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00127">IntelliToolPolygon.cpp:127</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_polygon_html_a713103300c9f023d64d9eec5ac05dd17"><div class="ttname"><a href="class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17">IntelliToolPolygon::onWheelScrolled</a></div><div class="ttdeci">virtual void onWheelScrolled(int value) override</div><div class="ttdoc">A function managing the scroll event. CHanging the lineWidth relative to value.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_polygon_8cpp_source.html#l00128">IntelliToolPolygon.cpp:128</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
|
||||
@@ -161,7 +161,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_rectangle_8cpp_source.ht
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a55f6b45b416b7d790fa8bc09603bf67f"><div class="ttname"><a href="class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f">IntelliTool::Toolsettings</a></div><div class="ttdeci">IntelliToolsettings * Toolsettings</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00059">IntelliTool.h:59</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_rectangle_html_a7dc1463e726a21255e6297241dc71fb1"><div class="ttname"><a href="class_intelli_tool_rectangle.html#a7dc1463e726a21255e6297241dc71fb1">IntelliToolRectangle::~IntelliToolRectangle</a></div><div class="ttdeci">virtual ~IntelliToolRectangle() override</div><div class="ttdoc">A Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_rectangle_8cpp_source.html#l00010">IntelliToolRectangle.cpp:10</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_rectangle_html_ae03c307ccf66cbe3fd59e3657712368d"><div class="ttname"><a href="class_intelli_tool_rectangle.html#ae03c307ccf66cbe3fd59e3657712368d">IntelliToolRectangle::onMouseLeftPressed</a></div><div class="ttdeci">virtual void onMouseLeftPressed(int x, int y) override</div><div class="ttdoc">A function managing the left click pressed of a mouse. Setting the originCorner and draws a rectangle...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_rectangle_8cpp_source.html#l00040">IntelliToolRectangle.cpp:40</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00020">IntelliColorPicker.cpp:20</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00019">IntelliColorPicker.cpp:19</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_rectangle_html_a480c6804a4963c5a1c3f7ef84b63c1a8"><div class="ttname"><a href="class_intelli_tool_rectangle.html#a480c6804a4963c5a1c3f7ef84b63c1a8">IntelliToolRectangle::onMouseRightPressed</a></div><div class="ttdeci">virtual void onMouseRightPressed(int x, int y) override</div><div class="ttdoc">A function managing the right click pressed of a mouse.Resetting the current draw.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_rectangle_8cpp_source.html#l00032">IntelliToolRectangle.cpp:32</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html"><div class="ttname"><a href="class_painting_area.html">PaintingArea</a></div><div class="ttdoc">The PaintingArea class manages the methods and stores information about the current painting area,...</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00053">PaintingArea.h:53</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a555aa8a74992327f740dd69b3bb0ccca"><div class="ttname"><a href="class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca">IntelliTool::isDrawing</a></div><div class="ttdeci">bool isDrawing</div><div class="ttdoc">A flag checking if the user is currently drawing or not.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00074">IntelliTool.h:74</a></div></div>
|
||||
@@ -171,7 +171,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_rectangle_8cpp_source.ht
|
||||
<div class="ttc" id="a_intelli_tool_rectangle_8h_html"><div class="ttname"><a href="_intelli_tool_rectangle_8h.html">IntelliToolRectangle.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a631388999f36013628e13b9de87a6f7b"><div class="ttname"><a href="class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b">IntelliTool::ActiveType</a></div><div class="ttdeci">Tooltype ActiveType</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00052">IntelliTool.h:52</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_rectangle_html_a4b5931071e21eb6949ffe357315e408b"><div class="ttname"><a href="class_intelli_tool_rectangle.html#a4b5931071e21eb6949ffe357315e408b">IntelliToolRectangle::onMouseMoved</a></div><div class="ttdeci">virtual void onMouseMoved(int x, int y) override</div><div class="ttdoc">A function managing the mouse moved event.Drawing a rectangle to currrent mouse position.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_rectangle_8cpp_source.html#l00051">IntelliToolRectangle.cpp:51</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html"><div class="ttname"><a href="class_intelli_color_picker.html">IntelliColorPicker</a></div><div class="ttdoc">The IntelliColorPicker manages the selected colors for one whole project.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8h_source.html#l00014">IntelliColorPicker.h:14</a></div></div>
|
||||
|
||||
@@ -98,7 +98,7 @@ $(document).ready(function(){initNavTree('_intelli_tool_rectangle_8h_source.html
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_intelli_tool_rectangle.html"> 15</a></span> <span class="keyword">class </span><a class="code" href="class_intelli_tool_rectangle.html">IntelliToolRectangle</a> : <span class="keyword">public</span> <a class="code" href="class_intelli_tool.html">IntelliTool</a> {</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">friend</span> <a class="code" href="class_unit_test.html">UnitTest</a>;</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keywordtype">void</span> drawRectangle(QPoint otherCorner);</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> QPoint originCorner;</div>
|
||||
|
||||
@@ -560,9 +560,9 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');
|
||||
<div class="ttc" id="aclass_painting_area_html_aa811d142df9239ae248679bd70ad6da7"><div class="ttname"><a href="class_painting_area.html#aa811d142df9239ae248679bd70ad6da7">PaintingArea::getMaxHeight</a></div><div class="ttdeci">int getMaxHeight()</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00247">PaintingArea.cpp:247</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a9b7dc8b8dc0b301ce58206aa76fb1630"><div class="ttname"><a href="class_painting_area.html#a9b7dc8b8dc0b301ce58206aa76fb1630">PaintingArea::deleteLayer</a></div><div class="ttdeci">void deleteLayer(int idx, bool isTool=false)</div><div class="ttdoc">The deleteLayer method removes a layer at a given idx.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00081">PaintingArea.cpp:81</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_plain_tool_html"><div class="ttname"><a href="class_intelli_tool_plain_tool.html">IntelliToolPlainTool</a></div><div class="ttdoc">The IntelliToolPlainTool class represents a tool to fill the whole canvas with one color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_plain_8h_source.html#l00013">IntelliToolPlain.h:13</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a86bf4a940e4a0e465e30cbdf28748931"><div class="ttname"><a href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a></div><div class="ttdeci">void setSecondColor(QColor Color)</div><div class="ttdoc">A function to set the secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00028">IntelliColorPicker.cpp:28</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a86bf4a940e4a0e465e30cbdf28748931"><div class="ttname"><a href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a></div><div class="ttdeci">void setSecondColor(QColor Color)</div><div class="ttdoc">A function to set the secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00027">IntelliColorPicker.cpp:27</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_shaped_image_html"><div class="ttname"><a href="class_intelli_shaped_image.html">IntelliShapedImage</a></div><div class="ttdoc">The IntelliShapedImage manages a Shapedimage.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_shaped_image_8h_source.html#l00013">IntelliShapedImage.h:13</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00020">IntelliColorPicker.cpp:20</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00019">IntelliColorPicker.cpp:19</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_a08bacdcd64a0ae0eb5376f55329954bc"><div class="ttname"><a href="struct_layer_object.html#a08bacdcd64a0ae0eb5376f55329954bc">LayerObject::heightOffset</a></div><div class="ttdeci">int heightOffset</div><div class="ttdoc">heightOffset - Stores the number of pixles from the top of the painting area.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00043">PaintingArea.h:43</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_ac576f58aad03b4dcd47611b6a4b9abb4"><div class="ttname"><a href="class_painting_area.html#ac576f58aad03b4dcd47611b6a4b9abb4">PaintingArea::getHeightOfActive</a></div><div class="ttdeci">int getHeightOfActive()</div><div class="ttdoc">The getHeightOfActive gets the vertical dimensions of the active layer.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00239">PaintingArea.cpp:239</a></div></div>
|
||||
<div class="ttc" id="a_intelli_tool_flood_fill_8h_html"><div class="ttname"><a href="_intelli_tool_flood_fill_8h.html">IntelliToolFloodFill.h</a></div></div>
|
||||
@@ -592,11 +592,11 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');
|
||||
<div class="ttc" id="aclass_painting_area_html_aa32adc113f77031945f73e33051931e8"><div class="ttname"><a href="class_painting_area.html#aa32adc113f77031945f73e33051931e8">PaintingArea::~PaintingArea</a></div><div class="ttdeci">~PaintingArea() override</div><div class="ttdoc">This deconstructor is used to clear up the memory and remove the currently active window.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00030">PaintingArea.cpp:30</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_aa22e274b6094a9619f196cd7b49526b5"><div class="ttname"><a href="class_painting_area.html#aa22e274b6094a9619f196cd7b49526b5">PaintingArea::mouseMoveEvent</a></div><div class="ttdeci">void mouseMoveEvent(QMouseEvent *event) override</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00281">PaintingArea.cpp:281</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a24280454ebb80db7feba2fd621513353"><div class="ttname"><a href="class_painting_area.html#a24280454ebb80db7feba2fd621513353">PaintingArea::getNumberOfActiveLayer</a></div><div class="ttdeci">int getNumberOfActiveLayer()</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00412">PaintingArea.cpp:412</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a7e2ddbbbfbed383f06b24e5bf6b27ae8"><div class="ttname"><a href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a></div><div class="ttdeci">void setFirstColor(QColor Color)</div><div class="ttdoc">A function to set the primary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00024">IntelliColorPicker.cpp:24</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a7e2ddbbbfbed383f06b24e5bf6b27ae8"><div class="ttname"><a href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a></div><div class="ttdeci">void setFirstColor(QColor Color)</div><div class="ttdoc">A function to set the primary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00023">IntelliColorPicker.cpp:23</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html"><div class="ttname"><a href="class_intelli_tool.html">IntelliTool</a></div><div class="ttdoc">An abstract class that manages the basic events, like mouse clicks or scrolls events.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8h_source.html#l00017">IntelliTool.h:17</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a5274ce9fcdcb2659c148e7ff916b680eac065b60ec4cf443808263527bdc0df37"><div class="ttname"><a href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eac065b60ec4cf443808263527bdc0df37">IntelliImage::ImageType::SHAPEDIMAGE</a></div><div class="ttdeci">@ SHAPEDIMAGE</div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a1ff0b9c1227531943c9cec2c546fae5e"><div class="ttname"><a href="class_painting_area.html#a1ff0b9c1227531943c9cec2c546fae5e">PaintingArea::slotDeleteActiveLayer</a></div><div class="ttdeci">void slotDeleteActiveLayer()</div><div class="ttdoc">The slotDeleteActiveLayer method handles the deletion of the active layer.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00096">PaintingArea.cpp:96</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a343f8ebf5d27b7242208747de6c92497"><div class="ttname"><a href="class_intelli_photo_gui.html#a343f8ebf5d27b7242208747de6c92497">IntelliPhotoGui::setToolWidth</a></div><div class="ttdeci">void setToolWidth(int value)</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00790">IntelliPhotoGui.cpp:790</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a343f8ebf5d27b7242208747de6c92497"><div class="ttname"><a href="class_intelli_photo_gui.html#a343f8ebf5d27b7242208747de6c92497">IntelliPhotoGui::setToolWidth</a></div><div class="ttdeci">void setToolWidth(int value)</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00827">IntelliPhotoGui.cpp:827</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a88c7e759aa8375a56129791645f46ea5"><div class="ttname"><a href="class_painting_area.html#a88c7e759aa8375a56129791645f46ea5">PaintingArea::open</a></div><div class="ttdeci">bool open(const QString &filePath)</div><div class="ttdoc">The open method is used for loading a picture into the current layer.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00129">PaintingArea.cpp:129</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a13c2f94644bea9c2d3123d0b7898f34b"><div class="ttname"><a href="class_painting_area.html#a13c2f94644bea9c2d3123d0b7898f34b">PaintingArea::createPolygonTool</a></div><div class="ttdeci">void createPolygonTool()</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00225">PaintingArea.cpp:225</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_ae05f6893fb44bfcb34018573a609cd1a"><div class="ttname"><a href="class_painting_area.html#ae05f6893fb44bfcb34018573a609cd1a">PaintingArea::moveActiveLayer</a></div><div class="ttdeci">void moveActiveLayer(int idx)</div><div class="ttdoc">The moveActiveLayer moves the active layer to a specific position in the layer stack.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00170">PaintingArea.cpp:170</a></div></div>
|
||||
@@ -604,14 +604,14 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');
|
||||
<div class="ttc" id="aclass_painting_area_html_a4fa0ec23e78cc59f28c823584c721460"><div class="ttname"><a href="class_painting_area.html#a4fa0ec23e78cc59f28c823584c721460">PaintingArea::PaintingArea</a></div><div class="ttdeci">PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)</div><div class="ttdoc">PaintingArea is the constructor of the PaintingArea class, which initiates the working environment.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00022">PaintingArea.cpp:22</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a0020fad2e26315d5c4d96dbc95d1dceb"><div class="ttname"><a href="class_intelli_tool.html#a0020fad2e26315d5c4d96dbc95d1dceb">IntelliTool::getIsDrawing</a></div><div class="ttdeci">bool getIsDrawing()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_8cpp_source.html#l00103">IntelliTool.cpp:103</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_ae0003fb815e50ed587a9897988befc90"><div class="ttname"><a href="struct_layer_object.html#ae0003fb815e50ed587a9897988befc90">LayerObject::height</a></div><div class="ttdeci">int height</div><div class="ttdoc">height - Stores the height of a layer in pixels.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00035">PaintingArea.h:35</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a4f484ff3ca7ae202ab57a00f52551423"><div class="ttname"><a href="class_painting_area.html#a4f484ff3ca7ae202ab57a00f52551423">PaintingArea::getImageDataOfActiveLayer</a></div><div class="ttdeci">QImage getImageDataOfActiveLayer()</div><div class="ttdoc">getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00423">PaintingArea.cpp:423</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a0b22e18069b524f3e75857d203baf256"><div class="ttname"><a href="class_painting_area.html#a0b22e18069b524f3e75857d203baf256">PaintingArea::createFloodFillTool</a></div><div class="ttdeci">void createFloodFillTool()</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00230">PaintingArea.cpp:230</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a71ac281e0de263208d4a3b9de74258ec"><div class="ttname"><a href="class_painting_area.html#a71ac281e0de263208d4a3b9de74258ec">PaintingArea::slotActivateLayer</a></div><div class="ttdeci">void slotActivateLayer(int a)</div><div class="ttdoc">The slotActivateLayer method handles the event of selecting one layer as active.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00180">PaintingArea.cpp:180</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a4a8138b9508ee4ec87a7fca9160368a7"><div class="ttname"><a href="class_painting_area.html#a4a8138b9508ee4ec87a7fca9160368a7">PaintingArea::paintEvent</a></div><div class="ttdeci">void paintEvent(QPaintEvent *event) override</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00324">PaintingArea.cpp:324</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_render_settings_html_a5ffb878b77e5d448ffe4eb03a8397ac2"><div class="ttname"><a href="class_intelli_render_settings.html#a5ffb878b77e5d448ffe4eb03a8397ac2">IntelliRenderSettings::setFastRendering</a></div><div class="ttdeci">void setFastRendering(bool Updatedsetting)</div><div class="ttdoc">setFastRendering sets fastRendering to Updatedsetting.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_render_settings_8cpp_source.html#l00008">IntelliRenderSettings.cpp:8</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a1dbef8d4688227aa9455aea52db00bf4"><div class="ttname"><a href="class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4">IntelliPhotoGui::UpdateGui</a></div><div class="ttdeci">void UpdateGui()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00799">IntelliPhotoGui.cpp:799</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html_a1dbef8d4688227aa9455aea52db00bf4"><div class="ttname"><a href="class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4">IntelliPhotoGui::UpdateGui</a></div><div class="ttdeci">void UpdateGui()</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8cpp_source.html#l00836">IntelliPhotoGui.cpp:836</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a5274ce9fcdcb2659c148e7ff916b680eadd5823fd73c42c0154fa2abbd70283b9"><div class="ttname"><a href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eadd5823fd73c42c0154fa2abbd70283b9">IntelliImage::ImageType::RASTERIMAGE</a></div><div class="ttdeci">@ RASTERIMAGE</div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a3fbd2584566b3cefcf3c070ae0b69d8fa8e8e58fe94ab307a826e087028a7c01a"><div class="ttname"><a href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa8e8e58fe94ab307a826e087028a7c01a">IntelliTool::Tooltype::RECTANGLE</a></div><div class="ttdeci">@ RECTANGLE</div></div>
|
||||
<div class="ttc" id="astruct_layer_object_html_af01a139bc8edfdbb338393874e89bd83"><div class="ttname"><a href="struct_layer_object.html#af01a139bc8edfdbb338393874e89bd83">LayerObject::image</a></div><div class="ttdeci">IntelliImage * image</div><div class="ttdoc">image - Stores the imageData of the current LayerObject.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00027">PaintingArea.h:27</a></div></div>
|
||||
@@ -620,7 +620,7 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');
|
||||
<div class="ttc" id="aclass_painting_area_html_abc2f798744f1dc805a651731eb1692ea"><div class="ttname"><a href="class_painting_area.html#abc2f798744f1dc805a651731eb1692ea">PaintingArea::Toolsettings</a></div><div class="ttdeci">IntelliToolsettings Toolsettings</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00201">PaintingArea.h:201</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_aa409492ac26483d618bb33616f2e3f81"><div class="ttname"><a href="class_painting_area.html#aa409492ac26483d618bb33616f2e3f81">PaintingArea::setPolygon</a></div><div class="ttdeci">void setPolygon(int idx)</div><div class="ttdoc">setPolygon is used for setting polygondata, it only works on RASTER images</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00117">PaintingArea.cpp:117</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_html_a3fbd2584566b3cefcf3c070ae0b69d8fa17b8ef2c330f1430e00c9de5469fc7e7"><div class="ttname"><a href="class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa17b8ef2c330f1430e00c9de5469fc7e7">IntelliTool::Tooltype::LINE</a></div><div class="ttdeci">@ LINE</div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aec499265ae28ce1b54be88222e74292e"><div class="ttname"><a href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e">IntelliColorPicker::swapColors</a></div><div class="ttdeci">void swapColors()</div><div class="ttdoc">A function switching primary and secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00012">IntelliColorPicker.cpp:12</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aec499265ae28ce1b54be88222e74292e"><div class="ttname"><a href="class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e">IntelliColorPicker::swapColors</a></div><div class="ttdeci">void swapColors()</div><div class="ttdoc">A function switching primary and secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00011">IntelliColorPicker.cpp:11</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_flood_fill_html"><div class="ttname"><a href="class_intelli_tool_flood_fill.html">IntelliToolFloodFill</a></div><div class="ttdoc">The IntelliToolFloodFill class represents a tool to flood FIll a certian area.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_flood_fill_8h_source.html#l00014">IntelliToolFloodFill.h:14</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_acff4563d006fda491469bd41778d07eb"><div class="ttname"><a href="class_painting_area.html#acff4563d006fda491469bd41778d07eb">PaintingArea::colorPickerSwapColors</a></div><div class="ttdeci">void colorPickerSwapColors()</div><div class="ttdoc">The colorPickerSwitchColor swaps the primary color with the secondary drawing color.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00197">PaintingArea.cpp:197</a></div></div>
|
||||
<div class="ttc" id="a_intelli_tool_pen_8h_html"><div class="ttname"><a href="_intelli_tool_pen_8h.html">IntelliToolPen.h</a></div></div>
|
||||
|
||||
@@ -170,7 +170,7 @@ Public Member Functions</h2></td></tr>
|
||||
|
||||
<p><a class="el" href="class_intelli_color_picker.html" title="The IntelliColorPicker manages the selected colors for one whole project.">IntelliColorPicker</a> destructor clears up his used memory, if there is some. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00008">8</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00007">7</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -193,7 +193,7 @@ Public Member Functions</h2></td></tr>
|
||||
<p>A function to read the primary selected color. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>Returns the primary color. </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00016">16</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00015">15</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -215,7 +215,7 @@ Public Member Functions</h2></td></tr>
|
||||
<p>A function to read the secondary selected color. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>Returns the secondary color. </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00020">20</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00019">19</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -243,7 +243,7 @@ Public Member Functions</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00024">24</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00023">23</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -271,7 +271,7 @@ Public Member Functions</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00028">28</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00027">27</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -292,7 +292,7 @@ Public Member Functions</h2></td></tr>
|
||||
|
||||
<p>A function switching primary and secondary color. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00012">12</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_color_picker_8cpp_source.html#l00011">11</a> of file <a class="el" href="_intelli_color_picker_8cpp_source.html">IntelliColorPicker.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -191,7 +191,7 @@ Protected Member Functions</h2></td></tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_photo_gui_8cpp_source.html#l00790">790</a> of file <a class="el" href="_intelli_photo_gui_8cpp_source.html">IntelliPhotoGui.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_photo_gui_8cpp_source.html#l00827">827</a> of file <a class="el" href="_intelli_photo_gui_8cpp_source.html">IntelliPhotoGui.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -210,7 +210,7 @@ Protected Member Functions</h2></td></tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_photo_gui_8cpp_source.html#l00799">799</a> of file <a class="el" href="_intelli_photo_gui_8cpp_source.html">IntelliPhotoGui.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_photo_gui_8cpp_source.html#l00836">836</a> of file <a class="el" href="_intelli_photo_gui_8cpp_source.html">IntelliPhotoGui.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -232,7 +232,7 @@ Additional Inherited Members</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00007">7</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00008">8</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -261,7 +261,7 @@ Additional Inherited Members</h2></td></tr>
|
||||
|
||||
<p>A Destructor. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00019">19</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00020">20</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -311,7 +311,7 @@ Additional Inherited Members</h2></td></tr>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c">IntelliTool</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00025">25</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00026">26</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -360,7 +360,7 @@ Additional Inherited Members</h2></td></tr>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b">IntelliTool</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00090">90</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00091">91</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -409,7 +409,7 @@ Additional Inherited Members</h2></td></tr>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639">IntelliTool</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00136">136</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00137">137</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -458,7 +458,7 @@ Additional Inherited Members</h2></td></tr>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966">IntelliTool</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00082">82</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00083">83</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -507,7 +507,7 @@ Additional Inherited Members</h2></td></tr>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0">IntelliTool</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00123">123</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00124">124</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -545,7 +545,7 @@ Additional Inherited Members</h2></td></tr>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574">IntelliTool</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00127">127</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
<p class="definition">Definition at line <a class="el" href="_intelli_tool_polygon_8cpp_source.html#l00128">128</a> of file <a class="el" href="_intelli_tool_polygon_8cpp_source.html">IntelliToolPolygon.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -86,111 +86,111 @@ $(document).ready(function(){initNavTree('main_unit_test_8cpp_source.html','');
|
||||
<div class="title">mainUnitTest.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="main_unit_test_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#include <QtTest></span> </div>
|
||||
<a href="main_unit_test_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#include <QtTest></span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// add necessary includes here</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include<string></span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include <string></span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  </div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "<a class="code" href="_intelli_photo_gui_8h.html">GUI/IntelliPhotoGui.h</a>"</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_unit_test.html"> 8</a></span> <span class="keyword">class </span><a class="code" href="class_unit_test.html">UnitTest</a> : <span class="keyword">public</span> QObject</div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> {</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  Q_OBJECT</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> Q_OBJECT</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <a class="code" href="class_intelli_photo_gui.html">IntelliPhotoGui</a>* gui;</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <a class="code" href="class_painting_area.html">PaintingArea</a>* area;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  QApplication* app;</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <a class="code" href="class_intelli_photo_gui.html">IntelliPhotoGui</a>* gui;</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <a class="code" href="class_painting_area.html">PaintingArea</a>* area;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> QApplication* app;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <a class="code" href="class_unit_test.html#a67ddaff817b55a624741d32550052f4b">UnitTest</a>();</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <a class="code" href="class_unit_test.html#afa0bdd3e2ac33cd52e697406339a2edf">~UnitTest</a>();</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <a class="code" href="class_unit_test.html#a67ddaff817b55a624741d32550052f4b">UnitTest</a>();</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <a class="code" href="class_unit_test.html#afa0bdd3e2ac33cd52e697406339a2edf">~UnitTest</a>();</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">private</span> slots:</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordtype">void</span> initTestCase();</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordtype">void</span> cleanupTestCase();</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="comment">//void test_case1();</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keywordtype">void</span> initTestCase();</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keywordtype">void</span> cleanupTestCase();</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">//void test_case1();</span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="comment">//test painting area</span></div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordtype">void</span> test_addLayer();</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordtype">void</span> test_deleteLayer();</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordtype">void</span> test_setActive();</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordtype">void</span> test_setAlpha();</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordtype">void</span> test_floodFill();</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordtype">void</span> test_moveActive();</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordtype">void</span> test_setPolygon();</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordtype">void</span> test_setLayerUp();</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">void</span> test_setLayerDown();</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">//test painting area</span></div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keywordtype">void</span> test_addLayer();</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keywordtype">void</span> test_deleteLayer();</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keywordtype">void</span> test_setActive();</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keywordtype">void</span> test_setAlpha();</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">void</span> test_floodFill();</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keywordtype">void</span> test_moveActive();</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keywordtype">void</span> test_setPolygon();</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keywordtype">void</span> test_setLayerUp();</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keywordtype">void</span> test_setLayerDown();</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">void</span> test_createTools();</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keywordtype">void</span> test_createTools();</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="comment">//test Raster-Image operations</span></div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">void</span> test_RasterImage_drawPixel();</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordtype">void</span> test_RasterImage_drawLine();</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordtype">void</span> test_RasterImage_drawPoint();</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">void</span> test_RasterImage_getDisplayable();</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">void</span> test_RasterImage_setPolygon();</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">void</span> test_RasterImage_loadImage();</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">void</span> test_RasterImage_getPixelColor();</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">void</span> test_RasterImage_getImageData();</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">void</span> test_RasterImage_setImageData();</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">//test Raster-Image operations</span></div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keywordtype">void</span> test_RasterImage_drawPixel();</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keywordtype">void</span> test_RasterImage_drawLine();</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keywordtype">void</span> test_RasterImage_drawPoint();</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keywordtype">void</span> test_RasterImage_getDisplayable();</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keywordtype">void</span> test_RasterImage_setPolygon();</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keywordtype">void</span> test_RasterImage_loadImage();</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keywordtype">void</span> test_RasterImage_getPixelColor();</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keywordtype">void</span> test_RasterImage_getImageData();</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keywordtype">void</span> test_RasterImage_setImageData();</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">//test Shaped-Image operations</span></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">void</span> test_ShapedImage_drawPixel();</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">void</span> test_ShapedImage_drawLine();</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordtype">void</span> test_ShapedImage_drawPoint();</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">void</span> test_ShapedImage_getDisplayable();</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">void</span> test_ShapedImage_setPolygon();</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">void</span> test_ShapedImage_loadImage();</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">void</span> test_ShapedImage_getPixelColor();</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">void</span> test_ShapedImage_getImageData();</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">void</span> test_ShapedImage_setImageData();</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">//test Shaped-Image operations</span></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keywordtype">void</span> test_ShapedImage_drawPixel();</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keywordtype">void</span> test_ShapedImage_drawLine();</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keywordtype">void</span> test_ShapedImage_drawPoint();</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keywordtype">void</span> test_ShapedImage_getDisplayable();</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keywordtype">void</span> test_ShapedImage_setPolygon();</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keywordtype">void</span> test_ShapedImage_loadImage();</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keywordtype">void</span> test_ShapedImage_getPixelColor();</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keywordtype">void</span> test_ShapedImage_getImageData();</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keywordtype">void</span> test_ShapedImage_setImageData();</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">//test painting-area tools</span></div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">void</span> test_createTool_Circle();</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">void</span> test_createTool_FloodFill();</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">void</span> test_createTool_Line();</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">void</span> test_createTool_Pen();</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span> test_createTool_Plain();</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">void</span> test_createTool_Polygon();</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">void</span> test_createTool_Rectangle();</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment">//test painting-area tools</span></div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keywordtype">void</span> test_createTool_Circle();</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keywordtype">void</span> test_createTool_FloodFill();</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="keywordtype">void</span> test_createTool_Line();</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keywordtype">void</span> test_createTool_Pen();</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keywordtype">void</span> test_createTool_Plain();</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keywordtype">void</span> test_createTool_Polygon();</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="keywordtype">void</span> test_createTool_Rectangle();</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">//test tools</span></div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">void</span> test_Circle_fullDraw();</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">void</span> test_Circle_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment">//test tools</span></div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">void</span> test_Circle_fullDraw();</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keywordtype">void</span> test_Circle_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">void</span> test_FloodFill_fullDraw();</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">void</span> test_FloodFill_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keywordtype">void</span> test_FloodFill_fullDraw();</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="keywordtype">void</span> test_FloodFill_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">void</span> test_Line_fullDraw();</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">void</span> test_Line_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="keywordtype">void</span> test_Line_fullDraw();</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="keywordtype">void</span> test_Line_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">void</span> test_Pen_fullDraw();</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">void</span> test_Pen_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keywordtype">void</span> test_Pen_fullDraw();</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keywordtype">void</span> test_Pen_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">void</span> test_Plain_fullDraw();</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">void</span> test_Plain_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="keywordtype">void</span> test_Plain_fullDraw();</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="keywordtype">void</span> test_Plain_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">void</span> test_Polygon_fullDraw();</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">void</span> test_Polygon_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="keywordtype">void</span> test_Polygon_fullDraw();</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keywordtype">void</span> test_Polygon_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">void</span> test_Rectangle_fullDraw();</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordtype">void</span> test_Rectangle_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="keywordtype">void</span> test_Rectangle_fullDraw();</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keywordtype">void</span> test_Rectangle_interruptedDraw();</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">//test Triangulation</span></div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordtype">void</span> test_Triangulation_Coverage();</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment">//test Triangulation</span></div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="keywordtype">void</span> test_Triangulation_Coverage();</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> };</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_unit_test.html#a67ddaff817b55a624741d32550052f4b"> 95</a></span> <a class="code" href="class_unit_test.html#a67ddaff817b55a624741d32550052f4b">UnitTest::UnitTest</a>()</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> {</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">char</span> arg0[] = <span class="stringliteral">"programName"</span>;</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">char</span> arg1[] = <span class="stringliteral">"arg1"</span>;</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">char</span> arg2[] = <span class="stringliteral">"arg2"</span>;</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">char</span> *argv[] = {arg0, arg1, arg2, <span class="keyword">nullptr</span>};</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">int</span> argc = <span class="keyword">sizeof</span>(argv) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>*) - 1;</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">char</span> arg0[] = <span class="stringliteral">"programName"</span>;</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">char</span> arg1[] = <span class="stringliteral">"arg1"</span>;</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">char</span> arg2[] = <span class="stringliteral">"arg2"</span>;</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">char</span>*argv[] = {arg0, arg1, arg2, <span class="keyword">nullptr</span>};</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">int</span> argc = <span class="keyword">sizeof</span>(argv) / <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>*) - 1;</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  app = <span class="keyword">new</span> QApplication(argc,argv);</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  gui = <span class="keyword">new</span> <a class="code" href="class_intelli_photo_gui.html">IntelliPhotoGui</a>();</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  area = gui->paintingArea;</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  app = <span class="keyword">new</span> QApplication(argc,argv);</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  gui = <span class="keyword">new</span> <a class="code" href="class_intelli_photo_gui.html">IntelliPhotoGui</a>();</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  area = gui->paintingArea;</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> }</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_unit_test.html#afa0bdd3e2ac33cd52e697406339a2edf"> 108</a></span> <a class="code" href="class_unit_test.html#afa0bdd3e2ac33cd52e697406339a2edf">UnitTest::~UnitTest</a>()</div>
|
||||
@@ -205,8 +205,8 @@ $(document).ready(function(){initNavTree('main_unit_test_8cpp_source.html','');
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="keywordtype">void</span> UnitTest::cleanupTestCase()</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> {</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">delete</span> gui;</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">delete</span> app;</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">delete</span> gui;</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">delete</span> app;</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> }</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment">//void UnitTest::test_case1()</span></div>
|
||||
@@ -217,77 +217,127 @@ $(document).ready(function(){initNavTree('main_unit_test_8cpp_source.html','');
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment">//}</span></div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment">//test painting area</span></div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">void</span> UnitTest::test_addLayer(){}</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keywordtype">void</span> UnitTest::test_deleteLayer(){}</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="keywordtype">void</span> UnitTest::test_setActive(){}</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keywordtype">void</span> UnitTest::test_setAlpha(){}</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="keywordtype">void</span> UnitTest::test_floodFill(){}</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="keywordtype">void</span> UnitTest::test_moveActive(){}</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="keywordtype">void</span> UnitTest::test_setPolygon(){}</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="keywordtype">void</span> UnitTest::test_setLayerUp(){}</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="keywordtype">void</span> UnitTest::test_setLayerDown(){}</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="keywordtype">void</span> UnitTest::test_createTools(){}</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment">//test Raster-Image operations</span></div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_drawPixel(){}</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_drawLine(){}</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_drawPoint(){}</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_getDisplayable(){}</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_setPolygon(){}</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_loadImage(){}</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_getPixelColor(){}</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_getImageData(){}</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_setImageData(){}</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment">//test Shaped-Image operations</span></div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_drawPixel(){}</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_drawLine(){}</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_drawPoint(){}</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_getDisplayable(){}</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_setPolygon(){}</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_loadImage(){}</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_getPixelColor(){}</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_getImageData(){}</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_setImageData(){}</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment">//test painting-area tools</span></div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Circle(){}</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="keywordtype">void</span> UnitTest::test_createTool_FloodFill(){}</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Line(){}</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Pen(){}</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Plain(){}</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Polygon(){}</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Rectangle(){}</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment">//test tools</span></div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="keywordtype">void</span> UnitTest::test_Circle_fullDraw(){}</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="keywordtype">void</span> UnitTest::test_Circle_interruptedDraw(){}</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="keywordtype">void</span> UnitTest::test_FloodFill_fullDraw(){}</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="keywordtype">void</span> UnitTest::test_FloodFill_interruptedDraw(){}</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  </div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="keywordtype">void</span> UnitTest::test_Line_fullDraw(){}</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="keywordtype">void</span> UnitTest::test_Line_interruptedDraw(){}</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="keywordtype">void</span> UnitTest::test_Pen_fullDraw(){}</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="keywordtype">void</span> UnitTest::test_Pen_interruptedDraw(){}</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="keywordtype">void</span> UnitTest::test_Plain_fullDraw(){}</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="keywordtype">void</span> UnitTest::test_Plain_interruptedDraw(){}</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  </div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="keywordtype">void</span> UnitTest::test_Polygon_fullDraw(){}</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="keywordtype">void</span> UnitTest::test_Polygon_interruptedDraw(){}</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">void</span> UnitTest::test_addLayer(){</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> }</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="keywordtype">void</span> UnitTest::test_deleteLayer(){</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="keywordtype">void</span> UnitTest::test_setActive(){</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> }</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="keywordtype">void</span> UnitTest::test_setAlpha(){</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> }</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="keywordtype">void</span> UnitTest::test_floodFill(){</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> }</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="keywordtype">void</span> UnitTest::test_moveActive(){</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> }</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="keywordtype">void</span> UnitTest::test_setPolygon(){</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> }</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="keywordtype">void</span> UnitTest::test_setLayerUp(){</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> }</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="keywordtype">void</span> UnitTest::test_setLayerDown(){</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> }</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="keywordtype">void</span> UnitTest::test_createTools(){</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> }</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment">//test Raster-Image operations</span></div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_drawPixel(){</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> }</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_drawLine(){</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> }</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_drawPoint(){</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> }</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_getDisplayable(){</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> }</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_setPolygon(){</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> }</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_loadImage(){</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> }</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_getPixelColor(){</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> }</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_getImageData(){</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> }</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="keywordtype">void</span> UnitTest::test_RasterImage_setImageData(){</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> }</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  </div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="comment">//test Shaped-Image operations</span></div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_drawPixel(){</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> }</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_drawLine(){</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> }</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_drawPoint(){</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> }</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_getDisplayable(){</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> }</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_setPolygon(){</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> }</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_loadImage(){</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> }</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_getPixelColor(){</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> }</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_getImageData(){</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> }</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="keywordtype">void</span> UnitTest::test_ShapedImage_setImageData(){</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> }</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="keywordtype">void</span> UnitTest::test_Rectangle_fullDraw(){}</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="keywordtype">void</span> UnitTest::test_Rectangle_interruptedDraw(){}</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment">//test Triangulation</span></div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="keywordtype">void</span> UnitTest::test_Triangulation_Coverage(){}</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> QTEST_APPLESS_MAIN(<a class="code" href="class_unit_test.html">UnitTest</a>)</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="preprocessor">#include "tst_unittest.moc"</span></div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment">//test painting-area tools</span></div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Circle(){</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> }</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="keywordtype">void</span> UnitTest::test_createTool_FloodFill(){</div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> }</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Line(){</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> }</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Pen(){</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> }</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Plain(){</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> }</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Polygon(){</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> }</div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="keywordtype">void</span> UnitTest::test_createTool_Rectangle(){</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> }</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment">//test tools</span></div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="keywordtype">void</span> UnitTest::test_Circle_fullDraw(){</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> }</div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="keywordtype">void</span> UnitTest::test_Circle_interruptedDraw(){</div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> }</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="keywordtype">void</span> UnitTest::test_FloodFill_fullDraw(){</div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> }</div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="keywordtype">void</span> UnitTest::test_FloodFill_interruptedDraw(){</div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> }</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  </div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="keywordtype">void</span> UnitTest::test_Line_fullDraw(){</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> }</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="keywordtype">void</span> UnitTest::test_Line_interruptedDraw(){</div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> }</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  </div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="keywordtype">void</span> UnitTest::test_Pen_fullDraw(){</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> }</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="keywordtype">void</span> UnitTest::test_Pen_interruptedDraw(){</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> }</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  </div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="keywordtype">void</span> UnitTest::test_Plain_fullDraw(){</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> }</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="keywordtype">void</span> UnitTest::test_Plain_interruptedDraw(){</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> }</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  </div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="keywordtype">void</span> UnitTest::test_Polygon_fullDraw(){</div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> }</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="keywordtype">void</span> UnitTest::test_Polygon_interruptedDraw(){</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> }</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  </div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="keywordtype">void</span> UnitTest::test_Rectangle_fullDraw(){</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> }</div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="keywordtype">void</span> UnitTest::test_Rectangle_interruptedDraw(){</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> }</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  </div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment">//test Triangulation</span></div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="keywordtype">void</span> UnitTest::test_Triangulation_Coverage(){</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> }</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  </div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> QTEST_APPLESS_MAIN(<a class="code" href="class_unit_test.html">UnitTest</a>)</div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  </div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="preprocessor">#include "tst_unittest.moc"</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<div class="ttc" id="aclass_unit_test_html_afa0bdd3e2ac33cd52e697406339a2edf"><div class="ttname"><a href="class_unit_test.html#afa0bdd3e2ac33cd52e697406339a2edf">UnitTest::~UnitTest</a></div><div class="ttdeci">~UnitTest()</div><div class="ttdef"><b>Definition:</b> <a href="main_unit_test_8cpp_source.html#l00108">mainUnitTest.cpp:108</a></div></div>
|
||||
|
||||
@@ -535,9 +535,9 @@ $(document).ready(function(){initNavTree('tst__unittest_8cpp_source.html',''); i
|
||||
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  area->layerBundle[0].image->drawPlain(QColor(255, 255, 255, 255));</div>
|
||||
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  QImage img = area->layerBundle[0].image->getDisplayable(QSize(200,200),255);</div>
|
||||
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  QPoint point;</div>
|
||||
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i=0; i<200; i++) {</div>
|
||||
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i<200; i++) {</div>
|
||||
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  point.setX(<span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(i));</div>
|
||||
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> j=0; j<200; j++) {</div>
|
||||
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> j = 0; j<200; j++) {</div>
|
||||
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  point.setY(<span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(j));</div>
|
||||
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  QVERIFY(img.pixelColor(point) == QColor(255,255,255,255));</div>
|
||||
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  }</div>
|
||||
@@ -1766,9 +1766,9 @@ $(document).ready(function(){initNavTree('tst__unittest_8cpp_source.html',''); i
|
||||
<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>  QBENCHMARK{</div>
|
||||
<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>  std::vector<Triangle> tria = <a class="code" href="namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5">IntelliTriangulation::calculateTriangles</a>(points);</div>
|
||||
<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>  QPoint point;</div>
|
||||
<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0; i<200; i++) {</div>
|
||||
<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i<200; i++) {</div>
|
||||
<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>  point.setX(i);</div>
|
||||
<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> j=0; j<200; j++) {</div>
|
||||
<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> j = 0; j<200; j++) {</div>
|
||||
<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>  point.setY(j);</div>
|
||||
<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>  <a class="code" href="namespace_intelli_triangulation.html#ac276696f29d141ed34614c1c3b1c040f">IntelliTriangulation::isInPolygon</a>(tria, point);</div>
|
||||
<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>  }</div>
|
||||
@@ -1799,10 +1799,10 @@ $(document).ready(function(){initNavTree('tst__unittest_8cpp_source.html',''); i
|
||||
<div class="ttc" id="aclass_painting_area_html_a9b7dc8b8dc0b301ce58206aa76fb1630"><div class="ttname"><a href="class_painting_area.html#a9b7dc8b8dc0b301ce58206aa76fb1630">PaintingArea::deleteLayer</a></div><div class="ttdeci">void deleteLayer(int idx, bool isTool=false)</div><div class="ttdoc">The deleteLayer method removes a layer at a given idx.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00081">PaintingArea.cpp:81</a></div></div>
|
||||
<div class="ttc" id="aclass_unit_test_html_afa0bdd3e2ac33cd52e697406339a2edf"><div class="ttname"><a href="class_unit_test.html#afa0bdd3e2ac33cd52e697406339a2edf">UnitTest::~UnitTest</a></div><div class="ttdeci">~UnitTest()</div><div class="ttdef"><b>Definition:</b> <a href="main_unit_test_8cpp_source.html#l00108">mainUnitTest.cpp:108</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_photo_gui_html"><div class="ttname"><a href="class_intelli_photo_gui.html">IntelliPhotoGui</a></div><div class="ttdoc">The IntelliPhotoGui base class handles the graphical user interface and events for the intelliPhoto p...</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_photo_gui_8h_source.html#l00032">IntelliPhotoGui.h:32</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a86bf4a940e4a0e465e30cbdf28748931"><div class="ttname"><a href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a></div><div class="ttdeci">void setSecondColor(QColor Color)</div><div class="ttdoc">A function to set the secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00028">IntelliColorPicker.cpp:28</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a86bf4a940e4a0e465e30cbdf28748931"><div class="ttname"><a href="class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931">IntelliColorPicker::setSecondColor</a></div><div class="ttdeci">void setSecondColor(QColor Color)</div><div class="ttdoc">A function to set the secondary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00027">IntelliColorPicker.cpp:27</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_tool_plain_tool_html"><div class="ttname"><a href="class_intelli_tool_plain_tool.html">IntelliToolPlainTool</a></div><div class="ttdoc">The IntelliToolPlainTool class represents a tool to fill the whole canvas with one color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_tool_plain_8h_source.html#l00013">IntelliToolPlain.h:13</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_shaped_image_html"><div class="ttname"><a href="class_intelli_shaped_image.html">IntelliShapedImage</a></div><div class="ttdoc">The IntelliShapedImage manages a Shapedimage.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_shaped_image_8h_source.html#l00013">IntelliShapedImage.h:13</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00020">IntelliColorPicker.cpp:20</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a55568fbf5dc783f06284b7031ffe9415"><div class="ttname"><a href="class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415">IntelliColorPicker::getSecondColor</a></div><div class="ttdeci">QColor getSecondColor()</div><div class="ttdoc">A function to read the secondary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00019">IntelliColorPicker.cpp:19</a></div></div>
|
||||
<div class="ttc" id="aclass_unit_test_html_a67ddaff817b55a624741d32550052f4b"><div class="ttname"><a href="class_unit_test.html#a67ddaff817b55a624741d32550052f4b">UnitTest::UnitTest</a></div><div class="ttdeci">UnitTest()</div><div class="ttdef"><b>Definition:</b> <a href="main_unit_test_8cpp_source.html#l00095">mainUnitTest.cpp:95</a></div></div>
|
||||
<div class="ttc" id="a_intelli_tool_flood_fill_8h_html"><div class="ttname"><a href="_intelli_tool_flood_fill_8h.html">IntelliToolFloodFill.h</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a3de83443d2d5cf460ff48d0602070938"><div class="ttname"><a href="class_painting_area.html#a3de83443d2d5cf460ff48d0602070938">PaintingArea::createPlainTool</a></div><div class="ttdeci">void createPlainTool()</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00206">PaintingArea.cpp:206</a></div></div>
|
||||
@@ -1818,13 +1818,13 @@ $(document).ready(function(){initNavTree('tst__unittest_8cpp_source.html',''); i
|
||||
<div class="ttc" id="a_intelli_color_picker_8h_html"><div class="ttname"><a href="_intelli_color_picker_8h.html">IntelliColorPicker.h</a></div></div>
|
||||
<div class="ttc" id="a_intelli_tool_rectangle_8h_html"><div class="ttname"><a href="_intelli_tool_rectangle_8h.html">IntelliToolRectangle.h</a></div></div>
|
||||
<div class="ttc" id="a_intelli_photo_gui_8h_html"><div class="ttname"><a href="_intelli_photo_gui_8h.html">IntelliPhotoGui.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a7e2ddbbbfbed383f06b24e5bf6b27ae8"><div class="ttname"><a href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a></div><div class="ttdeci">void setFirstColor(QColor Color)</div><div class="ttdoc">A function to set the primary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00024">IntelliColorPicker.cpp:24</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_a7e2ddbbbfbed383f06b24e5bf6b27ae8"><div class="ttname"><a href="class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8">IntelliColorPicker::setFirstColor</a></div><div class="ttdeci">void setFirstColor(QColor Color)</div><div class="ttdoc">A function to set the primary color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00023">IntelliColorPicker.cpp:23</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a5274ce9fcdcb2659c148e7ff916b680eac065b60ec4cf443808263527bdc0df37"><div class="ttname"><a href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eac065b60ec4cf443808263527bdc0df37">IntelliImage::ImageType::SHAPEDIMAGE</a></div><div class="ttdeci">@ SHAPEDIMAGE</div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a13c2f94644bea9c2d3123d0b7898f34b"><div class="ttname"><a href="class_painting_area.html#a13c2f94644bea9c2d3123d0b7898f34b">PaintingArea::createPolygonTool</a></div><div class="ttdeci">void createPolygonTool()</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00225">PaintingArea.cpp:225</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_ae05f6893fb44bfcb34018573a609cd1a"><div class="ttname"><a href="class_painting_area.html#ae05f6893fb44bfcb34018573a609cd1a">PaintingArea::moveActiveLayer</a></div><div class="ttdeci">void moveActiveLayer(int idx)</div><div class="ttdoc">The moveActiveLayer moves the active layer to a specific position in the layer stack.</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00170">PaintingArea.cpp:170</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a132535c4e16052c1472cf1b9f3e096ed"><div class="ttname"><a href="class_painting_area.html#a132535c4e16052c1472cf1b9f3e096ed">PaintingArea::colorPicker</a></div><div class="ttdeci">IntelliColorPicker colorPicker</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8h_source.html#l00202">PaintingArea.h:202</a></div></div>
|
||||
<div class="ttc" id="a_painting_area_8h_html"><div class="ttname"><a href="_painting_area_8h.html">PaintingArea.h</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00016">IntelliColorPicker.cpp:16</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_color_picker_html_aae2eb27b928fe9388b9398b0556303b7"><div class="ttname"><a href="class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7">IntelliColorPicker::getFirstColor</a></div><div class="ttdeci">QColor getFirstColor()</div><div class="ttdoc">A function to read the primary selected color.</div><div class="ttdef"><b>Definition:</b> <a href="_intelli_color_picker_8cpp_source.html#l00015">IntelliColorPicker.cpp:15</a></div></div>
|
||||
<div class="ttc" id="aclass_painting_area_html_a0b22e18069b524f3e75857d203baf256"><div class="ttname"><a href="class_painting_area.html#a0b22e18069b524f3e75857d203baf256">PaintingArea::createFloodFillTool</a></div><div class="ttdeci">void createFloodFillTool()</div><div class="ttdef"><b>Definition:</b> <a href="_painting_area_8cpp_source.html#l00230">PaintingArea.cpp:230</a></div></div>
|
||||
<div class="ttc" id="aclass_intelli_image_html_a5274ce9fcdcb2659c148e7ff916b680eadd5823fd73c42c0154fa2abbd70283b9"><div class="ttname"><a href="class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eadd5823fd73c42c0154fa2abbd70283b9">IntelliImage::ImageType::RASTERIMAGE</a></div><div class="ttdeci">@ RASTERIMAGE</div></div>
|
||||
<div class="ttc" id="aclass_unit_test_html"><div class="ttname"><a href="class_unit_test.html">UnitTest</a></div><div class="ttdef"><b>Definition:</b> <a href="main_unit_test_8cpp_source.html#l00008">mainUnitTest.cpp:8</a></div></div>
|
||||
|
||||
@@ -14,8 +14,8 @@ IntelliPhotoGui::IntelliPhotoGui(){
|
||||
// set style of the gui
|
||||
setIntelliStyle();
|
||||
// Size the app
|
||||
resize(600,600);
|
||||
showMaximized();
|
||||
resize(600,600);
|
||||
showMaximized();
|
||||
setDefaultToolValue();
|
||||
}
|
||||
|
||||
@@ -73,9 +73,9 @@ void IntelliPhotoGui::slotCreateNewRasterLayer(){
|
||||
// "New Layer" is the title of the window
|
||||
// the next tr is the text to display
|
||||
// Define the standard Value, min, max, step and ok button
|
||||
int width = IntelliInputDialog::getInt("New Raster Layer", "Width:", 200, 1, paintingArea->getMaxWidth(), 1, &ok1);
|
||||
int width = IntelliInputDialog::getInt("New Raster Layer", "Width:", 200, 1, paintingArea->getMaxWidth(), 1, &ok1);
|
||||
|
||||
int height = IntelliInputDialog::getInt("New Raster Layer", "Height:", 200, 1, paintingArea->getMaxHeight(), 1, &ok2);
|
||||
int height = IntelliInputDialog::getInt("New Raster Layer", "Height:", 200, 1, paintingArea->getMaxHeight(), 1, &ok2);
|
||||
|
||||
// Create New Layer
|
||||
if (ok1&&ok2) {
|
||||
@@ -92,9 +92,9 @@ void IntelliPhotoGui::slotCreateNewShapedLayer(){
|
||||
// "New Layer" is the title of the window
|
||||
// the next tr is the text to display
|
||||
// Define the standard Value, min, max, step and ok button
|
||||
int width = IntelliInputDialog::getInt("New Shaped Layer", "Width:", 200, 1, paintingArea->getMaxWidth(), 1, &ok1);
|
||||
int width = IntelliInputDialog::getInt("New Shaped Layer", "Width:", 200, 1, paintingArea->getMaxWidth(), 1, &ok1);
|
||||
|
||||
int height = IntelliInputDialog::getInt("New Shaped Layer", "Height:", 200, 1, paintingArea->getMaxHeight(), 1, &ok2);
|
||||
int height = IntelliInputDialog::getInt("New Shaped Layer", "Height:", 200, 1, paintingArea->getMaxHeight(), 1, &ok2);
|
||||
|
||||
// Create New Layer
|
||||
if (ok1&&ok2) {
|
||||
@@ -105,21 +105,21 @@ void IntelliPhotoGui::slotCreateNewShapedLayer(){
|
||||
|
||||
// Opens a dialog that allows the user to change Dimension
|
||||
void IntelliPhotoGui::slotChangeDim(){
|
||||
// Stores button value
|
||||
bool ok1, ok2;
|
||||
// Stores button value
|
||||
bool ok1, ok2;
|
||||
|
||||
// "change Dimension" is the title of the window
|
||||
// the next tr is the text to display
|
||||
// Define the standard Value, min, step and ok button
|
||||
int width = IntelliInputDialog::getInt("New Canvas Size", "Width:", 600, 1, 50000 , 1, &ok1);
|
||||
// "change Dimension" is the title of the window
|
||||
// the next tr is the text to display
|
||||
// Define the standard Value, min, step and ok button
|
||||
int width = IntelliInputDialog::getInt("New Canvas Size", "Width:", 600, 1, 50000, 1, &ok1);
|
||||
|
||||
int height = IntelliInputDialog::getInt("New Canvas Size", "Height:", 600, 1, 50000, 1, &ok2);
|
||||
int height = IntelliInputDialog::getInt("New Canvas Size", "Height:", 600, 1, 50000, 1, &ok2);
|
||||
|
||||
// Change dimension
|
||||
if (ok1&&ok2) {
|
||||
paintingArea->setLayerDimensions(width,height);
|
||||
UpdateGui();
|
||||
}
|
||||
// Change dimension
|
||||
if (ok1&&ok2) {
|
||||
paintingArea->setLayerDimensions(width,height);
|
||||
UpdateGui();
|
||||
}
|
||||
}
|
||||
|
||||
// Opens a dialog that allows the user to delete a Layer
|
||||
@@ -317,7 +317,7 @@ void IntelliPhotoGui::slotSetWidth(){
|
||||
|
||||
void IntelliPhotoGui::slotSetInnerAlpha(){
|
||||
bool ok1;
|
||||
int temp = IntelliInputDialog::getInt("Toolsettings", "Alpha:", 5, 1, 50, 1, &ok1);
|
||||
int temp = IntelliInputDialog::getInt("Toolsettings", "Alpha:", 5, 1, 50, 1, &ok1);
|
||||
if(ok1) {
|
||||
paintingArea->Toolsettings.setInnerAlpha(temp);
|
||||
EditLineInnerAlpha->setText(QString("%1").arg(temp));
|
||||
@@ -378,10 +378,10 @@ void IntelliPhotoGui::createActions(){
|
||||
actionDeleteLayer->setShortcut(QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_D));
|
||||
connect(actionDeleteLayer, SIGNAL(triggered()), this, SLOT(slotDeleteLayer()));
|
||||
|
||||
actionChangeDim = new QAction(tr("&Change Dimension"), this);
|
||||
actionChangeDim->setShortcut(QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_X));
|
||||
connect(actionChangeDim, SIGNAL(triggered()), this, SLOT(slotChangeDim()));
|
||||
connect(dimCanvas, SIGNAL(clicked()), this, SLOT(slotChangeDim()));
|
||||
actionChangeDim = new QAction(tr("&Change Dimension"), this);
|
||||
actionChangeDim->setShortcut(QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_X));
|
||||
connect(actionChangeDim, SIGNAL(triggered()), this, SLOT(slotChangeDim()));
|
||||
connect(dimCanvas, SIGNAL(clicked()), this, SLOT(slotChangeDim()));
|
||||
|
||||
actionSetActiveLayer = new QAction(tr("&set Active"), this);
|
||||
actionSetActiveLayer->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_A));
|
||||
@@ -539,9 +539,9 @@ void IntelliPhotoGui::createMenus(){
|
||||
fileMenu->addAction(actionExit);
|
||||
|
||||
//Attach all actions to Render Settings
|
||||
renderMenu = new QMenu(tr("&Fast Renderer"), this);
|
||||
renderMenu->addAction(actionUpdateRenderSettingsOn);
|
||||
renderMenu->addAction(actionUpdateRenderSettingsOff);
|
||||
renderMenu = new QMenu(tr("&Fast Renderer"), this);
|
||||
renderMenu->addAction(actionUpdateRenderSettingsOn);
|
||||
renderMenu->addAction(actionUpdateRenderSettingsOff);
|
||||
|
||||
//Attach all Layer Creations to Menu
|
||||
layerCreationMenu = new QMenu(tr("&Create new Layer"), this);
|
||||
@@ -598,7 +598,7 @@ void IntelliPhotoGui::createMenus(){
|
||||
optionMenu->addMenu(toolMenu);
|
||||
optionMenu->addSeparator();
|
||||
optionMenu->addMenu(renderMenu);
|
||||
optionMenu->addAction(actionChangeDim);
|
||||
optionMenu->addAction(actionChangeDim);
|
||||
|
||||
// Attach all actions to Help
|
||||
helpMenu = new QMenu(tr("&Help"), this);
|
||||
@@ -621,8 +621,8 @@ void IntelliPhotoGui::createGui(){
|
||||
centralGuiWidget->setLayout(mainLayout);
|
||||
|
||||
// create Gui elements
|
||||
// get and set max width and height
|
||||
paintingArea = new PaintingArea(1280, 720);
|
||||
// get and set max width and height
|
||||
paintingArea = new PaintingArea(1280, 720);
|
||||
paintingArea->DummyGui = this;
|
||||
|
||||
preview = QPixmap(":/Icons/Buttons/icons/circle-tool.svg");
|
||||
@@ -728,14 +728,14 @@ void IntelliPhotoGui::createGui(){
|
||||
ActiveLayerImageLabel->setFixedSize(Buttonsize * 2);
|
||||
ActiveLayerImageLabel->setPixmap(preview.scaled(Buttonsize * 2));
|
||||
|
||||
dimActive = new QPushButton();
|
||||
dimActive->setFixedSize(Buttonsize.width()*2,Buttonsize.height()/2);
|
||||
dimActive->setText("0x0");
|
||||
dimActive = new QPushButton();
|
||||
dimActive->setFixedSize(Buttonsize.width() * 2,Buttonsize.height() / 2);
|
||||
dimActive->setText("0x0");
|
||||
|
||||
dimCanvas = new QPushButton();
|
||||
dimCanvas->setFixedSize(Buttonsize.width()*2,Buttonsize.height()/2);
|
||||
QString String = QString("%1x%2").arg(paintingArea->Canvas->width()).arg(paintingArea->Canvas->height());
|
||||
dimCanvas->setText(String);
|
||||
dimCanvas = new QPushButton();
|
||||
dimCanvas->setFixedSize(Buttonsize.width() * 2,Buttonsize.height() / 2);
|
||||
QString String = QString("%1x%2").arg(paintingArea->Canvas->width()).arg(paintingArea->Canvas->height());
|
||||
dimCanvas->setText(String);
|
||||
|
||||
// set gui elements
|
||||
mainLayout->addWidget(paintingArea,1,1,20,1);
|
||||
@@ -755,8 +755,8 @@ void IntelliPhotoGui::createGui(){
|
||||
mainLayout->addWidget(SwitchColorButton,10,2,1,2);
|
||||
mainLayout->addWidget(ActiveLayerLine,11,2,1,2);
|
||||
mainLayout->addWidget(ActiveLayerImageLabel,12,2,1,2);
|
||||
mainLayout->addWidget(dimActive,13,2,1,2);
|
||||
mainLayout->addWidget(dimCanvas,14,2,1,2);
|
||||
mainLayout->addWidget(dimActive,13,2,1,2);
|
||||
mainLayout->addWidget(dimCanvas,14,2,1,2);
|
||||
mainLayout->setHorizontalSpacing(0);
|
||||
}
|
||||
|
||||
@@ -852,14 +852,14 @@ void IntelliPhotoGui::UpdateGui(){
|
||||
string = QString("background-color: %1").arg(paintingArea->colorPicker.getSecondColor().name());
|
||||
SecondColorButton->setStyleSheet(string);
|
||||
|
||||
string = QString("%1x%2").arg(paintingArea->Canvas->width()).arg(paintingArea->Canvas->height());
|
||||
dimCanvas->setText(string);
|
||||
string = QString("%1x%2").arg(paintingArea->Canvas->width()).arg(paintingArea->Canvas->height());
|
||||
dimCanvas->setText(string);
|
||||
|
||||
if(paintingArea->layerBundle.size() != 0){
|
||||
string = QString("%1x%2").arg(paintingArea->layerBundle[static_cast<unsigned long long>(paintingArea->getNumberOfActiveLayer())].width).arg(paintingArea->layerBundle[static_cast<unsigned long long>(paintingArea->getNumberOfActiveLayer())].height);
|
||||
dimActive->setText(string);
|
||||
}
|
||||
else{
|
||||
dimActive->setText("0x0");
|
||||
}
|
||||
if(paintingArea->layerBundle.size() != 0) {
|
||||
string = QString("%1x%2").arg(paintingArea->layerBundle[static_cast<unsigned long long>(paintingArea->getNumberOfActiveLayer())].width).arg(paintingArea->layerBundle[static_cast<unsigned long long>(paintingArea->getNumberOfActiveLayer())].height);
|
||||
dimActive->setText(string);
|
||||
}
|
||||
else{
|
||||
dimActive->setText("0x0");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ class IntelliTool;
|
||||
* \brief An abstract class which manages the basic IntelliImage operations.
|
||||
*/
|
||||
class IntelliImage {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
friend IntelliTool;
|
||||
public:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ class UnitTest;
|
||||
* \brief The IntelliRasterImage manages a RASTERIMAGE.
|
||||
*/
|
||||
class IntelliRasterImage : public IntelliImage {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
friend IntelliTool;
|
||||
protected:
|
||||
/*!
|
||||
|
||||
@@ -11,7 +11,7 @@ class UnitTest;
|
||||
* \brief The IntelliShapedImage manages a Shapedimage.
|
||||
*/
|
||||
class IntelliShapedImage : public IntelliRasterImage {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
friend IntelliTool;
|
||||
private:
|
||||
/*!
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "IntelliColorPicker.h"
|
||||
|
||||
IntelliColorPicker::IntelliColorPicker(){
|
||||
initializeColors();
|
||||
initializeColors();
|
||||
}
|
||||
|
||||
IntelliColorPicker::~IntelliColorPicker(){
|
||||
@@ -29,6 +29,6 @@ void IntelliColorPicker::setSecondColor(QColor Color){
|
||||
}
|
||||
|
||||
void IntelliColorPicker::initializeColors(){
|
||||
this->firstColor = QColor(255,0,0,255);
|
||||
this->secondColor = QColor(0,0,0,255);
|
||||
this->firstColor = QColor(255,0,0,255);
|
||||
this->secondColor = QColor(0,0,0,255);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ class UnitTest;
|
||||
* \brief The IntelliColorPicker manages the selected colors for one whole project.
|
||||
*/
|
||||
class IntelliColorPicker {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
public:
|
||||
/*!
|
||||
* \brief IntelliColorPicker constructor, setting 2 preset colors, be careful, theese color may change in production.
|
||||
|
||||
@@ -7,7 +7,7 @@ class UnitTest;
|
||||
|
||||
class IntelliRenderSettings
|
||||
{
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
public:
|
||||
IntelliRenderSettings();
|
||||
|
||||
|
||||
@@ -332,15 +332,15 @@ void PaintingArea::paintEvent(QPaintEvent*event){
|
||||
|
||||
void PaintingArea::selectLayerUp(){
|
||||
updateTools();
|
||||
if(activeLayer != -1 && static_cast<size_t>(activeLayer)<layerBundle.size() - 1) {
|
||||
std::swap(layerBundle[static_cast<size_t>(activeLayer)], layerBundle[static_cast<size_t>(activeLayer + 1)]);
|
||||
if(activeLayer != -1 && static_cast<size_t>(activeLayer)<layerBundle.size() - 1) {
|
||||
std::swap(layerBundle[static_cast<size_t>(activeLayer)], layerBundle[static_cast<size_t>(activeLayer + 1)]);
|
||||
activeLayer++;
|
||||
}
|
||||
}
|
||||
|
||||
void PaintingArea::selectLayerDown(){
|
||||
updateTools();
|
||||
if(activeLayer>0) {
|
||||
if(activeLayer>0) {
|
||||
std::swap(layerBundle[static_cast<unsigned long long>(activeLayer)], layerBundle[static_cast<unsigned long long>(activeLayer - 1)]);
|
||||
activeLayer--;
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ class UnitTest;
|
||||
* \brief The LayerObject struct holds all the information needed to construct a layer
|
||||
*/
|
||||
struct LayerObject {
|
||||
/*!
|
||||
* \brief image - Stores the imageData of the current LayerObject.
|
||||
*/
|
||||
/*!
|
||||
* \brief image - Stores the imageData of the current LayerObject.
|
||||
*/
|
||||
IntelliImage* image;
|
||||
/*!
|
||||
* \brief width - Stores the width of a layer in pixels.
|
||||
*/
|
||||
/*!
|
||||
* \brief width - Stores the width of a layer in pixels.
|
||||
*/
|
||||
int width;
|
||||
/*!
|
||||
* \brief height - Stores the height of a layer in pixels.
|
||||
*/
|
||||
/*!
|
||||
* \brief height - Stores the height of a layer in pixels.
|
||||
*/
|
||||
int height;
|
||||
/*!
|
||||
* \brief widthOffset - Stores the number of pixles from the left side of the painting area.
|
||||
*/
|
||||
/*!
|
||||
* \brief widthOffset - Stores the number of pixles from the left side of the painting area.
|
||||
*/
|
||||
int widthOffset;
|
||||
/*!
|
||||
* \brief heightOffset - Stores the number of pixles from the top of the painting area.
|
||||
*/
|
||||
/*!
|
||||
* \brief heightOffset - Stores the number of pixles from the top of the painting area.
|
||||
*/
|
||||
int heightOffset;
|
||||
/*!
|
||||
* \brief alpha - Stores the alpha value of the layer (default=255).
|
||||
*/
|
||||
/*!
|
||||
* \brief alpha - Stores the alpha value of the layer (default=255).
|
||||
*/
|
||||
int alpha = 255;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ IntelliTool::IntelliTool(PaintingArea* Area, IntelliColorPicker* colorPicker, In
|
||||
this->colorPicker = colorPicker;
|
||||
this->Toolsettings = Toolsettings;
|
||||
this->isDrawing = false;
|
||||
this->ActiveType = Tooltype::NONE;
|
||||
this->activeLayer = nullptr;
|
||||
this->Canvas = nullptr;
|
||||
this->ActiveType = Tooltype::NONE;
|
||||
this->activeLayer = nullptr;
|
||||
this->Canvas = nullptr;
|
||||
}
|
||||
|
||||
IntelliTool::~IntelliTool(){
|
||||
@@ -17,7 +17,7 @@ IntelliTool::~IntelliTool(){
|
||||
|
||||
void IntelliTool::onMouseRightPressed(int x, int y){
|
||||
if(isDrawing) {
|
||||
isDrawing = false;
|
||||
isDrawing = false;
|
||||
this->deleteToolLayer();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ class PaintingArea;
|
||||
* \brief An abstract class that manages the basic events, like mouse clicks or scrolls events.
|
||||
*/
|
||||
class IntelliTool {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
public:
|
||||
enum class Tooltype {
|
||||
CIRCLE,
|
||||
@@ -24,8 +24,8 @@ enum class Tooltype {
|
||||
PEN,
|
||||
PLAIN,
|
||||
POLYGON,
|
||||
RECTANGLE,
|
||||
NONE
|
||||
RECTANGLE,
|
||||
NONE
|
||||
};
|
||||
private:
|
||||
/*!
|
||||
|
||||
@@ -15,30 +15,30 @@ IntelliToolCircle::~IntelliToolCircle(){
|
||||
void IntelliToolCircle::drawCircle(int radius){
|
||||
QColor inner = this->colorPicker->getSecondColor();
|
||||
inner.setAlpha(Toolsettings->getInnerAlpha());
|
||||
int yMinimum, yMaximum, xMinimum, xMaximum;
|
||||
yMinimum = centerPoint.y() - radius;
|
||||
yMaximum = centerPoint.y() + radius;
|
||||
int yMinimum, yMaximum, xMinimum, xMaximum;
|
||||
yMinimum = centerPoint.y() - radius;
|
||||
yMaximum = centerPoint.y() + radius;
|
||||
// x = x0+-sqrt(r2-(y-y0)2)
|
||||
for(int i = yMinimum; i<=yMaximum; i++) {
|
||||
xMinimum = static_cast<int>(centerPoint.x() - sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));
|
||||
xMaximum = static_cast<int>(centerPoint.x() + sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));
|
||||
this->Canvas->image->drawLine(QPoint(xMinimum,i), QPoint(xMaximum,i),inner,1);
|
||||
for(int i = yMinimum; i<=yMaximum; i++) {
|
||||
xMinimum = static_cast<int>(centerPoint.x() - sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));
|
||||
xMaximum = static_cast<int>(centerPoint.x() + sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));
|
||||
this->Canvas->image->drawLine(QPoint(xMinimum,i), QPoint(xMaximum,i),inner,1);
|
||||
}
|
||||
|
||||
//TODO implement circle drawing algorithm bresenham
|
||||
radius = static_cast<int>(radius + (Toolsettings->getLineWidth() / 2.));
|
||||
yMinimum = (centerPoint.y() - radius);
|
||||
yMaximum = (centerPoint.y() + radius);
|
||||
for(int i = yMinimum; i<=yMaximum; i++) {
|
||||
xMinimum = static_cast<int>(centerPoint.x() - sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));
|
||||
xMaximum = static_cast<int>(centerPoint.x() + sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));
|
||||
this->Canvas->image->drawPoint(QPoint(xMinimum,i), colorPicker->getFirstColor(),Toolsettings->getLineWidth());
|
||||
this->Canvas->image->drawPoint(QPoint(xMaximum,i), colorPicker->getFirstColor(),Toolsettings->getLineWidth());
|
||||
yMinimum = (centerPoint.y() - radius);
|
||||
yMaximum = (centerPoint.y() + radius);
|
||||
for(int i = yMinimum; i<=yMaximum; i++) {
|
||||
xMinimum = static_cast<int>(centerPoint.x() - sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));
|
||||
xMaximum = static_cast<int>(centerPoint.x() + sqrt(pow(radius,2) - pow(i - centerPoint.y(),2)));
|
||||
this->Canvas->image->drawPoint(QPoint(xMinimum,i), colorPicker->getFirstColor(),Toolsettings->getLineWidth());
|
||||
this->Canvas->image->drawPoint(QPoint(xMaximum,i), colorPicker->getFirstColor(),Toolsettings->getLineWidth());
|
||||
}
|
||||
|
||||
xMinimum = (centerPoint.x() - radius);
|
||||
xMaximum = (centerPoint.x() + radius);
|
||||
for(int i = xMinimum; i<=xMaximum; i++) {
|
||||
xMinimum = (centerPoint.x() - radius);
|
||||
xMaximum = (centerPoint.x() + radius);
|
||||
for(int i = xMinimum; i<=xMaximum; i++) {
|
||||
int yMin = static_cast<int>(centerPoint.y() - sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
||||
int yMax = static_cast<int>(centerPoint.y() + sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
||||
this->Canvas->image->drawPoint(QPoint(i, yMin), colorPicker->getFirstColor(),Toolsettings->getLineWidth());
|
||||
|
||||
@@ -12,7 +12,7 @@ class UnitTest;
|
||||
* \brief The IntelliToolCircle class represents a tool to draw a circle.
|
||||
*/
|
||||
class IntelliToolCircle : public IntelliTool {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
/*!
|
||||
* \brief A function that implements a circle drawing algorithm.
|
||||
* \param radius - The radius of the circle.
|
||||
|
||||
@@ -12,7 +12,7 @@ class UnitTest;
|
||||
* \brief The IntelliToolFloodFill class represents a tool to flood FIll a certian area.
|
||||
*/
|
||||
class IntelliToolFloodFill : public IntelliTool {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
public:
|
||||
/*!
|
||||
* \brief A constructor setting the general paintingArea and colorPicker.
|
||||
|
||||
@@ -11,7 +11,7 @@ class UnitTest;
|
||||
* \brief The IntelliToolFloodFill class represents a tool to draw a line.
|
||||
*/
|
||||
class IntelliToolLine : public IntelliTool {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
/*!
|
||||
* \brief The starting point of the line.
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,7 @@ class UnitTest;
|
||||
* \brief The IntelliToolPen class represents a tool to draw a line.
|
||||
*/
|
||||
class IntelliToolPen : public IntelliTool {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
/*!
|
||||
* \brief point - Represents the previous point to help drawing a line.
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ class UnitTest;
|
||||
* \brief The IntelliToolPlainTool class represents a tool to fill the whole canvas with one color.
|
||||
*/
|
||||
class IntelliToolPlainTool : public IntelliTool {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
public:
|
||||
/*!
|
||||
* \brief A constructor setting the general paintingArea and colorPicker.
|
||||
|
||||
@@ -24,7 +24,7 @@ IntelliToolPolygon::~IntelliToolPolygon(){
|
||||
}
|
||||
|
||||
void IntelliToolPolygon::onMouseLeftPressed(int x, int y){
|
||||
if(!drawingOfPolygon && Area->getTypeOfImageRealLayer() == IntelliImage::ImageType::SHAPEDIMAGE && x > 0 && y > 0 && x<Area->getWidthOfActive() && y<Area->getHeightOfActive()) {
|
||||
if(!drawingOfPolygon && Area->getTypeOfImageRealLayer() == IntelliImage::ImageType::SHAPEDIMAGE && x > 0 && y > 0 && x<Area->getWidthOfActive() && y<Area->getHeightOfActive()) {
|
||||
if(Area->getPolygonDataOfRealLayer().size()>2) {
|
||||
std::vector<Triangle> Triangles = IntelliTriangulation::calculateTriangles(Area->getPolygonDataOfRealLayer());
|
||||
QPoint Point(x,y);
|
||||
@@ -53,7 +53,7 @@ void IntelliToolPolygon::onMouseLeftPressed(int x, int y){
|
||||
this->Canvas->image->calculateVisiblity();
|
||||
}
|
||||
}
|
||||
else if(drawingOfPolygon && QPointList.size() > 0 && isNearStart(x,y,QPointList.front())) {
|
||||
else if(drawingOfPolygon && QPointList.size() > 0 && isNearStart(x,y,QPointList.front())) {
|
||||
if(QPointList.size() > 2) {
|
||||
isPointNearStart = true;
|
||||
this->Canvas->image->drawLine(QPointList.back(), QPointList.front(), colorPicker->getFirstColor(), Toolsettings->getLineWidth());
|
||||
@@ -81,7 +81,7 @@ void IntelliToolPolygon::onMouseLeftPressed(int x, int y){
|
||||
}
|
||||
|
||||
void IntelliToolPolygon::onMouseRightPressed(int x, int y){
|
||||
drawingOfPolygon = false;
|
||||
drawingOfPolygon = false;
|
||||
isInside = false;
|
||||
isPointNearStart = false;
|
||||
QPointList.clear();
|
||||
@@ -92,7 +92,7 @@ void IntelliToolPolygon::onMouseLeftReleased(int x, int y){
|
||||
if(isPointNearStart) {
|
||||
isInside = false;
|
||||
isPointNearStart = false;
|
||||
drawingOfPolygon = false;
|
||||
drawingOfPolygon = false;
|
||||
if(!isSettingPolygon) {
|
||||
std::vector<Triangle> Triangles = IntelliTriangulation::calculateTriangles(QPointList);
|
||||
QPoint Point;
|
||||
@@ -145,7 +145,7 @@ bool IntelliToolPolygon::isNearStart(int x, int y, QPoint Startpoint){
|
||||
int StartY = Startpoint.y();
|
||||
int valueToNear = 5;
|
||||
|
||||
float euklid = sqrt(pow(static_cast<float>(StartX-x),2.f)+pow(static_cast<float>(StartY-y),2.f));
|
||||
float euklid = sqrt(pow(static_cast<float>(StartX - x),2.f) + pow(static_cast<float>(StartY - y),2.f));
|
||||
|
||||
return static_cast<int>(euklid)<valueToNear;
|
||||
return static_cast<int>(euklid)<valueToNear;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class UnitTest;
|
||||
*/
|
||||
class IntelliToolPolygon : public IntelliTool
|
||||
{
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
/*!
|
||||
* \brief Checks if the given Point lies near the starting Point.
|
||||
* \param x - x coordinate of a point.
|
||||
|
||||
@@ -13,7 +13,7 @@ class UnitTest;
|
||||
* \brief The IntelliToolRectangle class represents a tool to draw a rectangle.
|
||||
*/
|
||||
class IntelliToolRectangle : public IntelliTool {
|
||||
friend UnitTest;
|
||||
friend UnitTest;
|
||||
/*!
|
||||
* \brief A function that implements a rectagle drawing algorithm.
|
||||
* \param othercorner - The second corner point of the rectangle.
|
||||
|
||||
@@ -1,108 +1,108 @@
|
||||
#include <QtTest>
|
||||
#include <QtTest>
|
||||
// add necessary includes here
|
||||
#include<string>
|
||||
#include <string>
|
||||
|
||||
#include "GUI/IntelliPhotoGui.h"
|
||||
|
||||
|
||||
class UnitTest : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
private:
|
||||
IntelliPhotoGui* gui;
|
||||
PaintingArea* area;
|
||||
QApplication* app;
|
||||
IntelliPhotoGui* gui;
|
||||
PaintingArea* area;
|
||||
QApplication* app;
|
||||
|
||||
public:
|
||||
UnitTest();
|
||||
~UnitTest();
|
||||
UnitTest();
|
||||
~UnitTest();
|
||||
|
||||
private slots:
|
||||
void initTestCase();
|
||||
void cleanupTestCase();
|
||||
//void test_case1();
|
||||
void initTestCase();
|
||||
void cleanupTestCase();
|
||||
//void test_case1();
|
||||
|
||||
//test painting area
|
||||
void test_addLayer();
|
||||
void test_deleteLayer();
|
||||
void test_setActive();
|
||||
void test_setAlpha();
|
||||
void test_floodFill();
|
||||
void test_moveActive();
|
||||
void test_setPolygon();
|
||||
void test_setLayerUp();
|
||||
void test_setLayerDown();
|
||||
//test painting area
|
||||
void test_addLayer();
|
||||
void test_deleteLayer();
|
||||
void test_setActive();
|
||||
void test_setAlpha();
|
||||
void test_floodFill();
|
||||
void test_moveActive();
|
||||
void test_setPolygon();
|
||||
void test_setLayerUp();
|
||||
void test_setLayerDown();
|
||||
|
||||
void test_createTools();
|
||||
void test_createTools();
|
||||
|
||||
//test Raster-Image operations
|
||||
void test_RasterImage_drawPixel();
|
||||
void test_RasterImage_drawLine();
|
||||
void test_RasterImage_drawPoint();
|
||||
void test_RasterImage_getDisplayable();
|
||||
void test_RasterImage_setPolygon();
|
||||
void test_RasterImage_loadImage();
|
||||
void test_RasterImage_getPixelColor();
|
||||
void test_RasterImage_getImageData();
|
||||
void test_RasterImage_setImageData();
|
||||
//test Raster-Image operations
|
||||
void test_RasterImage_drawPixel();
|
||||
void test_RasterImage_drawLine();
|
||||
void test_RasterImage_drawPoint();
|
||||
void test_RasterImage_getDisplayable();
|
||||
void test_RasterImage_setPolygon();
|
||||
void test_RasterImage_loadImage();
|
||||
void test_RasterImage_getPixelColor();
|
||||
void test_RasterImage_getImageData();
|
||||
void test_RasterImage_setImageData();
|
||||
|
||||
//test Shaped-Image operations
|
||||
void test_ShapedImage_drawPixel();
|
||||
void test_ShapedImage_drawLine();
|
||||
void test_ShapedImage_drawPoint();
|
||||
void test_ShapedImage_getDisplayable();
|
||||
void test_ShapedImage_setPolygon();
|
||||
void test_ShapedImage_loadImage();
|
||||
void test_ShapedImage_getPixelColor();
|
||||
void test_ShapedImage_getImageData();
|
||||
void test_ShapedImage_setImageData();
|
||||
//test Shaped-Image operations
|
||||
void test_ShapedImage_drawPixel();
|
||||
void test_ShapedImage_drawLine();
|
||||
void test_ShapedImage_drawPoint();
|
||||
void test_ShapedImage_getDisplayable();
|
||||
void test_ShapedImage_setPolygon();
|
||||
void test_ShapedImage_loadImage();
|
||||
void test_ShapedImage_getPixelColor();
|
||||
void test_ShapedImage_getImageData();
|
||||
void test_ShapedImage_setImageData();
|
||||
|
||||
//test painting-area tools
|
||||
void test_createTool_Circle();
|
||||
void test_createTool_FloodFill();
|
||||
void test_createTool_Line();
|
||||
void test_createTool_Pen();
|
||||
void test_createTool_Plain();
|
||||
void test_createTool_Polygon();
|
||||
void test_createTool_Rectangle();
|
||||
//test painting-area tools
|
||||
void test_createTool_Circle();
|
||||
void test_createTool_FloodFill();
|
||||
void test_createTool_Line();
|
||||
void test_createTool_Pen();
|
||||
void test_createTool_Plain();
|
||||
void test_createTool_Polygon();
|
||||
void test_createTool_Rectangle();
|
||||
|
||||
//test tools
|
||||
void test_Circle_fullDraw();
|
||||
void test_Circle_interruptedDraw();
|
||||
//test tools
|
||||
void test_Circle_fullDraw();
|
||||
void test_Circle_interruptedDraw();
|
||||
|
||||
void test_FloodFill_fullDraw();
|
||||
void test_FloodFill_interruptedDraw();
|
||||
void test_FloodFill_fullDraw();
|
||||
void test_FloodFill_interruptedDraw();
|
||||
|
||||
void test_Line_fullDraw();
|
||||
void test_Line_interruptedDraw();
|
||||
void test_Line_fullDraw();
|
||||
void test_Line_interruptedDraw();
|
||||
|
||||
void test_Pen_fullDraw();
|
||||
void test_Pen_interruptedDraw();
|
||||
void test_Pen_fullDraw();
|
||||
void test_Pen_interruptedDraw();
|
||||
|
||||
void test_Plain_fullDraw();
|
||||
void test_Plain_interruptedDraw();
|
||||
void test_Plain_fullDraw();
|
||||
void test_Plain_interruptedDraw();
|
||||
|
||||
void test_Polygon_fullDraw();
|
||||
void test_Polygon_interruptedDraw();
|
||||
void test_Polygon_fullDraw();
|
||||
void test_Polygon_interruptedDraw();
|
||||
|
||||
void test_Rectangle_fullDraw();
|
||||
void test_Rectangle_interruptedDraw();
|
||||
void test_Rectangle_fullDraw();
|
||||
void test_Rectangle_interruptedDraw();
|
||||
|
||||
//test Triangulation
|
||||
void test_Triangulation_Coverage();
|
||||
//test Triangulation
|
||||
void test_Triangulation_Coverage();
|
||||
};
|
||||
|
||||
UnitTest::UnitTest()
|
||||
{
|
||||
char arg0[] = "programName";
|
||||
char arg1[] = "arg1";
|
||||
char arg2[] = "arg2";
|
||||
char *argv[] = {arg0, arg1, arg2, nullptr};
|
||||
int argc = sizeof(argv) / sizeof(char*) - 1;
|
||||
char arg0[] = "programName";
|
||||
char arg1[] = "arg1";
|
||||
char arg2[] = "arg2";
|
||||
char*argv[] = {arg0, arg1, arg2, nullptr};
|
||||
int argc = sizeof(argv) / sizeof(char*) - 1;
|
||||
|
||||
app = new QApplication(argc,argv);
|
||||
gui = new IntelliPhotoGui();
|
||||
area = gui->paintingArea;
|
||||
app = new QApplication(argc,argv);
|
||||
gui = new IntelliPhotoGui();
|
||||
area = gui->paintingArea;
|
||||
}
|
||||
|
||||
UnitTest::~UnitTest()
|
||||
@@ -117,8 +117,8 @@ void UnitTest::initTestCase()
|
||||
|
||||
void UnitTest::cleanupTestCase()
|
||||
{
|
||||
delete gui;
|
||||
delete app;
|
||||
delete gui;
|
||||
delete app;
|
||||
}
|
||||
|
||||
//void UnitTest::test_case1()
|
||||
@@ -129,73 +129,123 @@ void UnitTest::cleanupTestCase()
|
||||
//}
|
||||
|
||||
//test painting area
|
||||
void UnitTest::test_addLayer(){}
|
||||
void UnitTest::test_deleteLayer(){}
|
||||
void UnitTest::test_setActive(){}
|
||||
void UnitTest::test_setAlpha(){}
|
||||
void UnitTest::test_floodFill(){}
|
||||
void UnitTest::test_moveActive(){}
|
||||
void UnitTest::test_setPolygon(){}
|
||||
void UnitTest::test_setLayerUp(){}
|
||||
void UnitTest::test_setLayerDown(){}
|
||||
void UnitTest::test_addLayer(){
|
||||
}
|
||||
void UnitTest::test_deleteLayer(){
|
||||
}
|
||||
void UnitTest::test_setActive(){
|
||||
}
|
||||
void UnitTest::test_setAlpha(){
|
||||
}
|
||||
void UnitTest::test_floodFill(){
|
||||
}
|
||||
void UnitTest::test_moveActive(){
|
||||
}
|
||||
void UnitTest::test_setPolygon(){
|
||||
}
|
||||
void UnitTest::test_setLayerUp(){
|
||||
}
|
||||
void UnitTest::test_setLayerDown(){
|
||||
}
|
||||
|
||||
void UnitTest::test_createTools(){}
|
||||
void UnitTest::test_createTools(){
|
||||
}
|
||||
|
||||
//test Raster-Image operations
|
||||
void UnitTest::test_RasterImage_drawPixel(){}
|
||||
void UnitTest::test_RasterImage_drawLine(){}
|
||||
void UnitTest::test_RasterImage_drawPoint(){}
|
||||
void UnitTest::test_RasterImage_getDisplayable(){}
|
||||
void UnitTest::test_RasterImage_setPolygon(){}
|
||||
void UnitTest::test_RasterImage_loadImage(){}
|
||||
void UnitTest::test_RasterImage_getPixelColor(){}
|
||||
void UnitTest::test_RasterImage_getImageData(){}
|
||||
void UnitTest::test_RasterImage_setImageData(){}
|
||||
void UnitTest::test_RasterImage_drawPixel(){
|
||||
}
|
||||
void UnitTest::test_RasterImage_drawLine(){
|
||||
}
|
||||
void UnitTest::test_RasterImage_drawPoint(){
|
||||
}
|
||||
void UnitTest::test_RasterImage_getDisplayable(){
|
||||
}
|
||||
void UnitTest::test_RasterImage_setPolygon(){
|
||||
}
|
||||
void UnitTest::test_RasterImage_loadImage(){
|
||||
}
|
||||
void UnitTest::test_RasterImage_getPixelColor(){
|
||||
}
|
||||
void UnitTest::test_RasterImage_getImageData(){
|
||||
}
|
||||
void UnitTest::test_RasterImage_setImageData(){
|
||||
}
|
||||
|
||||
//test Shaped-Image operations
|
||||
void UnitTest::test_ShapedImage_drawPixel(){}
|
||||
void UnitTest::test_ShapedImage_drawLine(){}
|
||||
void UnitTest::test_ShapedImage_drawPoint(){}
|
||||
void UnitTest::test_ShapedImage_getDisplayable(){}
|
||||
void UnitTest::test_ShapedImage_setPolygon(){}
|
||||
void UnitTest::test_ShapedImage_loadImage(){}
|
||||
void UnitTest::test_ShapedImage_getPixelColor(){}
|
||||
void UnitTest::test_ShapedImage_getImageData(){}
|
||||
void UnitTest::test_ShapedImage_setImageData(){}
|
||||
void UnitTest::test_ShapedImage_drawPixel(){
|
||||
}
|
||||
void UnitTest::test_ShapedImage_drawLine(){
|
||||
}
|
||||
void UnitTest::test_ShapedImage_drawPoint(){
|
||||
}
|
||||
void UnitTest::test_ShapedImage_getDisplayable(){
|
||||
}
|
||||
void UnitTest::test_ShapedImage_setPolygon(){
|
||||
}
|
||||
void UnitTest::test_ShapedImage_loadImage(){
|
||||
}
|
||||
void UnitTest::test_ShapedImage_getPixelColor(){
|
||||
}
|
||||
void UnitTest::test_ShapedImage_getImageData(){
|
||||
}
|
||||
void UnitTest::test_ShapedImage_setImageData(){
|
||||
}
|
||||
|
||||
//test painting-area tools
|
||||
void UnitTest::test_createTool_Circle(){}
|
||||
void UnitTest::test_createTool_FloodFill(){}
|
||||
void UnitTest::test_createTool_Line(){}
|
||||
void UnitTest::test_createTool_Pen(){}
|
||||
void UnitTest::test_createTool_Plain(){}
|
||||
void UnitTest::test_createTool_Polygon(){}
|
||||
void UnitTest::test_createTool_Rectangle(){}
|
||||
void UnitTest::test_createTool_Circle(){
|
||||
}
|
||||
void UnitTest::test_createTool_FloodFill(){
|
||||
}
|
||||
void UnitTest::test_createTool_Line(){
|
||||
}
|
||||
void UnitTest::test_createTool_Pen(){
|
||||
}
|
||||
void UnitTest::test_createTool_Plain(){
|
||||
}
|
||||
void UnitTest::test_createTool_Polygon(){
|
||||
}
|
||||
void UnitTest::test_createTool_Rectangle(){
|
||||
}
|
||||
|
||||
//test tools
|
||||
void UnitTest::test_Circle_fullDraw(){}
|
||||
void UnitTest::test_Circle_interruptedDraw(){}
|
||||
void UnitTest::test_Circle_fullDraw(){
|
||||
}
|
||||
void UnitTest::test_Circle_interruptedDraw(){
|
||||
}
|
||||
|
||||
void UnitTest::test_FloodFill_fullDraw(){}
|
||||
void UnitTest::test_FloodFill_interruptedDraw(){}
|
||||
void UnitTest::test_FloodFill_fullDraw(){
|
||||
}
|
||||
void UnitTest::test_FloodFill_interruptedDraw(){
|
||||
}
|
||||
|
||||
void UnitTest::test_Line_fullDraw(){}
|
||||
void UnitTest::test_Line_interruptedDraw(){}
|
||||
void UnitTest::test_Line_fullDraw(){
|
||||
}
|
||||
void UnitTest::test_Line_interruptedDraw(){
|
||||
}
|
||||
|
||||
void UnitTest::test_Pen_fullDraw(){}
|
||||
void UnitTest::test_Pen_interruptedDraw(){}
|
||||
void UnitTest::test_Pen_fullDraw(){
|
||||
}
|
||||
void UnitTest::test_Pen_interruptedDraw(){
|
||||
}
|
||||
|
||||
void UnitTest::test_Plain_fullDraw(){}
|
||||
void UnitTest::test_Plain_interruptedDraw(){}
|
||||
void UnitTest::test_Plain_fullDraw(){
|
||||
}
|
||||
void UnitTest::test_Plain_interruptedDraw(){
|
||||
}
|
||||
|
||||
void UnitTest::test_Polygon_fullDraw(){}
|
||||
void UnitTest::test_Polygon_interruptedDraw(){}
|
||||
void UnitTest::test_Polygon_fullDraw(){
|
||||
}
|
||||
void UnitTest::test_Polygon_interruptedDraw(){
|
||||
}
|
||||
|
||||
void UnitTest::test_Rectangle_fullDraw(){}
|
||||
void UnitTest::test_Rectangle_interruptedDraw(){}
|
||||
void UnitTest::test_Rectangle_fullDraw(){
|
||||
}
|
||||
void UnitTest::test_Rectangle_interruptedDraw(){
|
||||
}
|
||||
|
||||
//test Triangulation
|
||||
void UnitTest::test_Triangulation_Coverage(){}
|
||||
void UnitTest::test_Triangulation_Coverage(){
|
||||
}
|
||||
|
||||
QTEST_APPLESS_MAIN(UnitTest)
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@ void UnitTest::test_moveActive(){
|
||||
area->addLayer(200,200,10,20,IntelliImage::ImageType::SHAPEDIMAGE);
|
||||
area->addLayer(200,200,10,20,IntelliImage::ImageType::SHAPEDIMAGE);
|
||||
|
||||
area->layerBundle[1].image->drawPlain(QColor(0, 0, 0, 255));
|
||||
area->layerBundle[1].image->drawPlain(QColor(0, 0, 0, 255));
|
||||
QPoint point(0,0);
|
||||
|
||||
area->moveActiveLayer(-1);
|
||||
@@ -449,9 +449,9 @@ void UnitTest::test_RasterImage_getDisplayable(){
|
||||
area->layerBundle[0].image->drawPlain(QColor(255, 255, 255, 255));
|
||||
QImage img = area->layerBundle[0].image->getDisplayable(QSize(200,200),255);
|
||||
QPoint point;
|
||||
for(size_t i=0; i<200; i++) {
|
||||
for(size_t i = 0; i<200; i++) {
|
||||
point.setX(static_cast<int>(i));
|
||||
for(size_t j=0; j<200; j++) {
|
||||
for(size_t j = 0; j<200; j++) {
|
||||
point.setY(static_cast<int>(j));
|
||||
QVERIFY(img.pixelColor(point) == QColor(255,255,255,255));
|
||||
}
|
||||
@@ -1136,20 +1136,20 @@ void UnitTest::bench_moveActive(){
|
||||
}
|
||||
|
||||
void UnitTest::bench_setPolygon(){
|
||||
area->addLayer(200,200,10,20,IntelliImage::ImageType::SHAPEDIMAGE);
|
||||
area->addLayer(200,200,10,20,IntelliImage::ImageType::SHAPEDIMAGE);
|
||||
|
||||
std::vector<QPoint> polygon{
|
||||
QPoint(10,00),
|
||||
QPoint(00,10),
|
||||
QPoint(10,10),
|
||||
QPoint(00,10)
|
||||
};
|
||||
std::vector<QPoint> polygon{
|
||||
QPoint(10,00),
|
||||
QPoint(00,10),
|
||||
QPoint(10,10),
|
||||
QPoint(00,10)
|
||||
};
|
||||
|
||||
QBENCHMARK{
|
||||
area->layerBundle[0].image->setPolygon(polygon);
|
||||
}
|
||||
QBENCHMARK{
|
||||
area->layerBundle[0].image->setPolygon(polygon);
|
||||
}
|
||||
|
||||
area->deleteLayer(0);
|
||||
area->deleteLayer(0);
|
||||
}
|
||||
|
||||
void UnitTest::bench_setLayerUp(){
|
||||
@@ -1561,65 +1561,65 @@ void UnitTest::bench_Plain_interruptedDraw(){
|
||||
}
|
||||
|
||||
void UnitTest::bench_Polygon_fullDraw(){
|
||||
area->addLayer(21,21,10,20,IntelliImage::ImageType::RASTERIMAGE);
|
||||
std::vector<QPoint> points{
|
||||
QPoint(10,00),
|
||||
QPoint(00,10),
|
||||
QPoint(10,20),
|
||||
QPoint(20,10)
|
||||
};
|
||||
area->addLayer(21,21,10,20,IntelliImage::ImageType::RASTERIMAGE);
|
||||
std::vector<QPoint> points{
|
||||
QPoint(10,00),
|
||||
QPoint(00,10),
|
||||
QPoint(10,20),
|
||||
QPoint(20,10)
|
||||
};
|
||||
|
||||
area->colorPicker.setFirstColor(QColor(255,255,255,255));
|
||||
area->colorPicker.setSecondColor(QColor(0,0,0,255));
|
||||
area->createPolygonTool();
|
||||
area->layerBundle[0].image->drawPlain(QColor(255, 0, 0, 255));
|
||||
area->colorPicker.setFirstColor(QColor(255,255,255,255));
|
||||
area->colorPicker.setSecondColor(QColor(0,0,0,255));
|
||||
area->createPolygonTool();
|
||||
area->layerBundle[0].image->drawPlain(QColor(255, 0, 0, 255));
|
||||
|
||||
QBENCHMARK{
|
||||
area->Tool->onMouseLeftPressed(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseLeftReleased(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseMoved(points[1].x(), points[1].y());
|
||||
QBENCHMARK{
|
||||
area->Tool->onMouseLeftPressed(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseLeftReleased(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseMoved(points[1].x(), points[1].y());
|
||||
|
||||
area->Tool->onMouseLeftPressed(points[1].x(), points[1].y());
|
||||
area->Tool->onMouseLeftReleased(points[1].x(), points[1].y());
|
||||
area->Tool->onMouseMoved(points[2].x(), points[2].y());
|
||||
area->Tool->onMouseLeftPressed(points[1].x(), points[1].y());
|
||||
area->Tool->onMouseLeftReleased(points[1].x(), points[1].y());
|
||||
area->Tool->onMouseMoved(points[2].x(), points[2].y());
|
||||
|
||||
area->Tool->onMouseLeftPressed(points[2].x(), points[2].y());
|
||||
area->Tool->onMouseLeftReleased(points[2].x(), points[2].y());
|
||||
area->Tool->onMouseMoved(points[3].x(), points[3].y());
|
||||
area->Tool->onMouseLeftPressed(points[2].x(), points[2].y());
|
||||
area->Tool->onMouseLeftReleased(points[2].x(), points[2].y());
|
||||
area->Tool->onMouseMoved(points[3].x(), points[3].y());
|
||||
|
||||
area->Tool->onMouseLeftPressed(points[3].x(), points[3].y());
|
||||
area->Tool->onMouseLeftReleased(points[3].x(), points[3].y());
|
||||
area->Tool->onMouseMoved(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseLeftPressed(points[3].x(), points[3].y());
|
||||
area->Tool->onMouseLeftReleased(points[3].x(), points[3].y());
|
||||
area->Tool->onMouseMoved(points[0].x(), points[0].y());
|
||||
|
||||
area->Tool->onMouseLeftPressed(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseLeftReleased(points[0].x(), points[0].y());
|
||||
}
|
||||
area->Tool->onMouseLeftPressed(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseLeftReleased(points[0].x(), points[0].y());
|
||||
}
|
||||
|
||||
area->deleteLayer(0);
|
||||
area->deleteLayer(0);
|
||||
}
|
||||
|
||||
|
||||
void UnitTest::bench_Polygon_interruptedDraw(){
|
||||
area->addLayer(201,201,10,20,IntelliImage::ImageType::RASTERIMAGE);
|
||||
std::vector<QPoint> points{
|
||||
QPoint(100,000)
|
||||
};
|
||||
area->addLayer(201,201,10,20,IntelliImage::ImageType::RASTERIMAGE);
|
||||
std::vector<QPoint> points{
|
||||
QPoint(100,000)
|
||||
};
|
||||
|
||||
|
||||
area->colorPicker.setFirstColor(QColor(255,255,255,255));
|
||||
area->colorPicker.setSecondColor(QColor(0,0,0,255));
|
||||
area->createPolygonTool();
|
||||
area->layerBundle[0].image->drawPlain(QColor(255, 0, 0, 255));
|
||||
area->colorPicker.setFirstColor(QColor(255,255,255,255));
|
||||
area->colorPicker.setSecondColor(QColor(0,0,0,255));
|
||||
area->createPolygonTool();
|
||||
area->layerBundle[0].image->drawPlain(QColor(255, 0, 0, 255));
|
||||
|
||||
QBENCHMARK{
|
||||
area->Tool->onMouseLeftPressed(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseLeftReleased(points[0].x(), points[0].y());
|
||||
QBENCHMARK{
|
||||
area->Tool->onMouseLeftPressed(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseLeftReleased(points[0].x(), points[0].y());
|
||||
|
||||
area->Tool->onMouseRightPressed(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseRightReleased(points[0].x(), points[0].y());
|
||||
}
|
||||
area->Tool->onMouseRightPressed(points[0].x(), points[0].y());
|
||||
area->Tool->onMouseRightReleased(points[0].x(), points[0].y());
|
||||
}
|
||||
|
||||
area->deleteLayer(0);
|
||||
area->deleteLayer(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -1681,9 +1681,9 @@ void UnitTest::bench_Triangulation_Coverage(){
|
||||
QBENCHMARK{
|
||||
std::vector<Triangle> tria = IntelliTriangulation::calculateTriangles(points);
|
||||
QPoint point;
|
||||
for(int i=0; i<200; i++) {
|
||||
for(int i = 0; i<200; i++) {
|
||||
point.setX(i);
|
||||
for(int j=0; j<200; j++) {
|
||||
for(int j = 0; j<200; j++) {
|
||||
point.setY(j);
|
||||
IntelliTriangulation::isInPolygon(tria, point);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user