From fb65be47f91e6820a760ef0da1b123a81e4b4644 Mon Sep 17 00:00:00 2001 From: Conrad Date: Thu, 9 Jan 2020 11:54:53 +0100 Subject: [PATCH] Updated docs --- docs/html/_intelli_color_picker_8h.html | 10 - .../html/_intelli_color_picker_8h_source.html | 4 +- ...li_helper_2_intelli_color_picker_8cpp.html | 5 - ...er_2_intelli_color_picker_8cpp_source.html | 4 +- docs/html/_intelli_image_8cpp.html | 5 - docs/html/_intelli_image_8cpp__incl.dot | 10 +- docs/html/_intelli_image_8cpp_source.html | 215 ++-- docs/html/_intelli_image_8h.html | 54 +- docs/html/_intelli_image_8h__incl.dot | 6 + docs/html/_intelli_image_8h_source.html | 146 ++- docs/html/_intelli_photo_gui_8cpp.html | 9 +- docs/html/_intelli_photo_gui_8cpp__incl.dot | 65 +- docs/html/_intelli_photo_gui_8cpp_source.html | 1103 ++++++++++------- docs/html/_intelli_photo_gui_8h.html | 14 +- .../html/_intelli_photo_gui_8h__dep__incl.dot | 23 +- docs/html/_intelli_photo_gui_8h__incl.dot | 18 +- docs/html/_intelli_photo_gui_8h_source.html | 296 +++-- docs/html/_intelli_raster_image_8cpp.html | 5 - .../html/_intelli_raster_image_8cpp__incl.dot | 16 +- .../_intelli_raster_image_8cpp_source.html | 107 +- docs/html/_intelli_raster_image_8h.html | 12 +- docs/html/_intelli_raster_image_8h__incl.dot | 6 + .../html/_intelli_raster_image_8h_source.html | 46 +- docs/html/_intelli_render_settings_8cpp.html | 108 ++ .../_intelli_render_settings_8cpp__incl.dot | 9 + .../_intelli_render_settings_8cpp_source.html | 118 ++ docs/html/_intelli_render_settings_8h.html | 115 ++ ..._intelli_render_settings_8h__dep__incl.dot | 47 + .../_intelli_render_settings_8h_source.html | 124 ++ docs/html/_intelli_shaped_image_8cpp.html | 7 +- .../html/_intelli_shaped_image_8cpp__incl.dot | 16 +- .../_intelli_shaped_image_8cpp_source.html | 190 +-- docs/html/_intelli_shaped_image_8h.html | 11 - docs/html/_intelli_shaped_image_8h__incl.dot | 8 +- .../html/_intelli_shaped_image_8h_source.html | 46 +- docs/html/_intelli_tool_8cpp.html | 5 - docs/html/_intelli_tool_8cpp__incl.dot | 89 +- docs/html/_intelli_tool_8cpp_source.html | 205 +-- docs/html/_intelli_tool_8h.html | 11 +- docs/html/_intelli_tool_8h__incl.dot | 4 +- docs/html/_intelli_tool_8h_source.html | 148 ++- docs/html/_intelli_tool_circle_8cpp.html | 5 - docs/html/_intelli_tool_circle_8cpp__incl.dot | 97 +- .../_intelli_tool_circle_8cpp_source.html | 213 ++-- docs/html/_intelli_tool_circle_8h.html | 10 - docs/html/_intelli_tool_circle_8h__incl.dot | 4 +- docs/html/_intelli_tool_circle_8h_source.html | 71 +- docs/html/_intelli_tool_flood_fill_8cpp.html | 5 - .../_intelli_tool_flood_fill_8cpp__incl.dot | 101 +- .../_intelli_tool_flood_fill_8cpp_source.html | 196 +-- docs/html/_intelli_tool_flood_fill_8h.html | 10 - .../_intelli_tool_flood_fill_8h__incl.dot | 4 +- .../_intelli_tool_flood_fill_8h_source.html | 28 +- docs/html/_intelli_tool_line_8cpp.html | 5 - docs/html/_intelli_tool_line_8cpp__incl.dot | 93 +- docs/html/_intelli_tool_line_8cpp_source.html | 164 +-- docs/html/_intelli_tool_line_8h.html | 52 +- docs/html/_intelli_tool_line_8h__incl.dot | 4 +- docs/html/_intelli_tool_line_8h_source.html | 85 +- docs/html/_intelli_tool_pen_8cpp.html | 5 - docs/html/_intelli_tool_pen_8cpp__incl.dot | 97 +- docs/html/_intelli_tool_pen_8cpp_source.html | 61 +- docs/html/_intelli_tool_pen_8h.html | 10 - docs/html/_intelli_tool_pen_8h__incl.dot | 4 +- docs/html/_intelli_tool_pen_8h_source.html | 56 +- docs/html/_intelli_tool_plain_8cpp.html | 5 - docs/html/_intelli_tool_plain_8cpp__incl.dot | 89 +- .../html/_intelli_tool_plain_8cpp_source.html | 110 +- docs/html/_intelli_tool_plain_8h.html | 10 - docs/html/_intelli_tool_plain_8h__incl.dot | 4 +- docs/html/_intelli_tool_plain_8h_source.html | 28 +- docs/html/_intelli_tool_polygon_8cpp.html | 7 +- .../html/_intelli_tool_polygon_8cpp__incl.dot | 105 +- .../_intelli_tool_polygon_8cpp_source.html | 279 +++-- docs/html/_intelli_tool_polygon_8h.html | 12 +- docs/html/_intelli_tool_polygon_8h__incl.dot | 12 +- .../html/_intelli_tool_polygon_8h_source.html | 78 +- docs/html/_intelli_tool_rectangle_8cpp.html | 5 - .../_intelli_tool_rectangle_8cpp__incl.dot | 93 +- .../_intelli_tool_rectangle_8cpp_source.html | 173 +-- docs/html/_intelli_tool_rectangle_8h.html | 10 - .../html/_intelli_tool_rectangle_8h__incl.dot | 4 +- .../_intelli_tool_rectangle_8h_source.html | 66 +- docs/html/_intelli_toolsettings_8cpp.html | 109 ++ .../html/_intelli_toolsettings_8cpp__incl.dot | 11 + .../_intelli_toolsettings_8cpp_source.html | 168 +++ docs/html/_intelli_toolsettings_8h.html | 115 ++ .../_intelli_toolsettings_8h__dep__incl.dot | 62 + .../html/_intelli_toolsettings_8h_source.html | 142 +++ docs/html/_intelli_triangulation_8cpp.html | 136 ++ docs/html/_intelli_triangulation_8cpp.js | 4 + .../_intelli_triangulation_8cpp__incl.dot | 19 + .../_intelli_triangulation_8cpp_source.html | 237 ++++ docs/html/_intelli_triangulation_8h.html | 140 +++ docs/html/_intelli_triangulation_8h.js | 8 + .../_intelli_triangulation_8h__dep__incl.dot | 52 + docs/html/_intelli_triangulation_8h__incl.dot | 11 + .../_intelli_triangulation_8h_source.html | 150 +++ docs/html/_painting_area_8cpp.html | 5 - docs/html/_painting_area_8cpp__incl.dot | 142 ++- docs/html/_painting_area_8cpp_source.html | 758 ++++++----- docs/html/_painting_area_8h.html | 11 +- docs/html/_painting_area_8h__incl.dot | 79 +- docs/html/_painting_area_8h_source.html | 298 +++-- .../_tool_2_intelli_color_picker_8cpp.html | 5 - ...ol_2_intelli_color_picker_8cpp_source.html | 4 +- docs/html/annotated.html | 28 +- docs/html/annotated_dup.js | 2 + .../class_intelli_color_picker-members.html | 2 +- docs/html/class_intelli_color_picker.html | 37 +- docs/html/class_intelli_color_picker.js | 2 +- ...568fbf5dc783f06284b7031ffe9415_icgraph.dot | 2 + ...2eb27b928fe9388b9398b0556303b7_icgraph.dot | 6 +- ...499265ae28ce1b54be88222e74292e_icgraph.dot | 10 + docs/html/class_intelli_image-members.html | 18 +- docs/html/class_intelli_image.html | 305 ++++- docs/html/class_intelli_image.js | 15 +- docs/html/class_intelli_image.png | Bin 0 -> 754 bytes .../class_intelli_image__inherit__graph.dot | 2 +- ...787f1b333b59401643936ebb3dcfe1_icgraph.dot | 4 +- ...e622810dc2bc756054bb5769becb06_icgraph.dot | 6 +- ...6fbe380ffe0e073a8cd760f8285fe3_icgraph.dot | 10 + ...31800aba38c96074bbe9bb6e341d4e_icgraph.dot | 10 + ...bced93f4744fad81b7f141b21f4ab2_icgraph.dot | 24 +- ...c859f5c409e37051edfd9e9fbca056_icgraph.dot | 4 +- .../html/class_intelli_photo_gui-members.html | 1 + docs/html/class_intelli_photo_gui.html | 37 +- docs/html/class_intelli_photo_gui.js | 3 +- docs/html/class_intelli_photo_gui.png | Bin 0 -> 471 bytes ...dbef8d4688227aa9455aea52db00bf4_cgraph.dot | 18 + .../class_intelli_raster_image-members.html | 20 +- docs/html/class_intelli_raster_image.html | 111 +- docs/html/class_intelli_raster_image.js | 2 +- docs/html/class_intelli_raster_image.png | Bin 0 -> 747 bytes ...lass_intelli_raster_image__coll__graph.dot | 2 +- ...s_intelli_raster_image__inherit__graph.dot | 2 +- ...f901301b106504de3c27308ade897dc_cgraph.dot | 2 +- ...79b571372296f1922af818ba003413_icgraph.dot | 10 + ...class_intelli_render_settings-members.html | 109 ++ docs/html/class_intelli_render_settings.html | 169 +++ docs/html/class_intelli_render_settings.js | 5 + ...74e7d7ed3a2e944883dddbe8bbf5e8_icgraph.dot | 12 + .../class_intelli_shaped_image-members.html | 22 +- docs/html/class_intelli_shaped_image.html | 119 +- docs/html/class_intelli_shaped_image.js | 2 +- docs/html/class_intelli_shaped_image.png | Bin 0 -> 742 bytes ...lass_intelli_shaped_image__coll__graph.dot | 2 +- ...s_intelli_shaped_image__inherit__graph.dot | 2 +- ...b69d75de7a3b85032482982f249458e_cgraph.dot | 2 +- ...e612a1fa52d7f878b34a7a7022d8e9_icgraph.dot | 10 + ...d0b31e0fa771104399d1f5ff39a0337_cgraph.dot | 4 +- docs/html/class_intelli_tool-members.html | 31 +- docs/html/class_intelli_tool.html | 288 +++-- docs/html/class_intelli_tool.js | 19 +- docs/html/class_intelli_tool.png | Bin 0 -> 1396 bytes docs/html/class_intelli_tool__coll__graph.dot | 14 +- ...20fad2e26315d5c4d96dbc95d1dceb_icgraph.dot | 14 + ...189b00307c6d7e89f28198f54404b0_icgraph.dot | 6 +- ...6aa68ac5f3c2ca02319e5ef3f0c966_icgraph.dot | 30 +- ...b7ef1dde96b94a0ce450a25ae1778c_icgraph.dot | 8 +- ...ccfd4460255ccb866f336406a33574_icgraph.dot | 6 +- ...6a2575c16c8a33cb2a5197f8d8cc5b_icgraph.dot | 8 +- ...0e20414cd8855a2f9b103fb6408639_icgraph.dot | 6 +- .../class_intelli_tool_circle-members.html | 35 +- docs/html/class_intelli_tool_circle.html | 114 +- docs/html/class_intelli_tool_circle.js | 2 +- docs/html/class_intelli_tool_circle.png | Bin 0 -> 425 bytes ...class_intelli_tool_circle__coll__graph.dot | 14 +- ...a03b65b95d7b5d72e6a92c95f068954_cgraph.dot | 10 + ...2d9b0fb6695c184c4cb507a5fb75506_cgraph.dot | 6 +- ...class_intelli_tool_flood_fill-members.html | 35 +- docs/html/class_intelli_tool_flood_fill.html | 114 +- docs/html/class_intelli_tool_flood_fill.js | 2 +- docs/html/class_intelli_tool_flood_fill.png | Bin 0 -> 418 bytes ...s_intelli_tool_flood_fill__coll__graph.dot | 14 +- ...3b1bd8be0cbb32cdf61a9597ec849ba_cgraph.dot | 10 + .../html/class_intelli_tool_line-members.html | 35 +- docs/html/class_intelli_tool_line.html | 116 +- docs/html/class_intelli_tool_line.js | 2 +- docs/html/class_intelli_tool_line.png | Bin 0 -> 386 bytes .../class_intelli_tool_line__coll__graph.dot | 14 +- ...55d676a5f98311217eb095be4759846_cgraph.dot | 6 +- ...f1d686e1ec43f41b5186ccfd806b125_cgraph.dot | 6 +- ...c6324ef0778823fe7e35aef8ae37f9b_cgraph.dot | 10 +- ...b600b0f4e9225ebce2937c2b7abb4c2_cgraph.dot | 10 + docs/html/class_intelli_tool_pen-members.html | 35 +- docs/html/class_intelli_tool_pen.html | 102 +- docs/html/class_intelli_tool_pen.js | 2 +- docs/html/class_intelli_tool_pen.png | Bin 0 -> 376 bytes .../class_intelli_tool_pen__coll__graph.dot | 14 +- ...8d1d636497b630647ce0c4d652737c2_cgraph.dot | 8 +- ...ff40aef6d38eb55af31a19322429205_cgraph.dot | 8 +- ...77a025515d0fed6954556fe2b444818_cgraph.dot | 10 + ...e3626ddff440ab125f4a2465c45427a_cgraph.dot | 6 +- ...class_intelli_tool_plain_tool-members.html | 35 +- docs/html/class_intelli_tool_plain_tool.html | 114 +- docs/html/class_intelli_tool_plain_tool.js | 2 +- docs/html/class_intelli_tool_plain_tool.png | Bin 0 -> 435 bytes ...s_intelli_tool_plain_tool__coll__graph.dot | 14 +- ...1fe568be05c075814d67440472bb658_cgraph.dot | 10 + .../class_intelli_tool_polygon-members.html | 18 +- docs/html/class_intelli_tool_polygon.html | 112 +- docs/html/class_intelli_tool_polygon.js | 2 +- docs/html/class_intelli_tool_polygon.png | Bin 0 -> 456 bytes ...lass_intelli_tool_polygon__coll__graph.dot | 14 +- ...87cbf2254010989df6106a357471499_cgraph.dot | 10 + ...e1473ff408ae2e11cf6a43f6f575f21_cgraph.dot | 24 +- ...13103300c9f023d64d9eec5ac05dd17_cgraph.dot | 6 +- ...5d3b741be6d0647a9cdc9da2cb8bc3d_cgraph.dot | 32 +- .../class_intelli_tool_rectangle-members.html | 35 +- docs/html/class_intelli_tool_rectangle.html | 114 +- docs/html/class_intelli_tool_rectangle.js | 2 +- docs/html/class_intelli_tool_rectangle.png | Bin 0 -> 469 bytes ...ss_intelli_tool_rectangle__coll__graph.dot | 14 +- ...45c53a56e859f970e59f5036e221e0c_cgraph.dot | 6 +- ...dc1463e726a21255e6297241dc71fb1_cgraph.dot | 10 + .../class_intelli_toolsettings-members.html | 117 ++ docs/html/class_intelli_toolsettings.html | 362 ++++++ docs/html/class_intelli_toolsettings.js | 16 + ...eb193b25e0665516244c61c5e65aa6_icgraph.dot | 10 + ...528dd3bad8f39ba19fa6b12a4e415a_icgraph.dot | 30 + ...6ce2054ec4bcba7629dc2b514b6b5c_icgraph.dot | 10 + ...6d37de6ee94b433d53fe3e598cc9fa_icgraph.dot | 18 + docs/html/class_painting_area-members.html | 66 +- docs/html/class_painting_area.html | 418 ++++--- docs/html/class_painting_area.js | 24 +- docs/html/class_painting_area.png | Bin 0 -> 448 bytes .../html/class_painting_area__coll__graph.dot | 4 + ...280454ebb80db7feba2fd621513353_icgraph.dot | 10 + ...fa0ec23e78cc59f28c823584c721460_cgraph.dot | 4 +- ...5ee91b26b1c58be6d833f279d81597_icgraph.dot | 10 + ...e9207612cef104d39013564696fe989_cgraph.dot | 10 + ...9207612cef104d39013564696fe989_icgraph.dot | 10 + ...1ac281e0de263208d4a3b9de74258ec_cgraph.dot | 4 +- ...eb059829f27e8cdb3a54c5cd3d12c9_icgraph.dot | 10 + ...e21fd031ee1c04f92e042e86be0a90_icgraph.dot | 10 + ...8c7e759aa8375a56129791645f46ea5_cgraph.dot | 12 + ...76f58aad03b4dcd47611b6a4b9abb4_icgraph.dot | 10 + ...6d089f4357b22d9a9906fd4771de3e7_cgraph.dot | 10 + ...b11ad35d07e9081203d8217d2c0855_icgraph.dot | 10 + ...ff4563d006fda491469bd41778d07eb_cgraph.dot | 10 + ...05f6893fb44bfcb34018573a609cd1a_cgraph.dot | 10 + ...2b27dfd09573c224d2ae1958d3bead_icgraph.dot | 10 + docs/html/classes.html | 38 +- docs/html/dir_000003_000004.html | 2 +- docs/html/dir_000005_000004.html | 2 +- docs/html/dir_000006_000002.html | 101 ++ .../dir_544f9dcb748f922e4bb3be2540380bf2.html | 5 - .../dir_544f9dcb748f922e4bb3be2540380bf2.js | 4 +- ...r_544f9dcb748f922e4bb3be2540380bf2_dep.dot | 2 +- .../dir_5dabb14988a75c922e285f444641a133.html | 5 - ...r_5dabb14988a75c922e285f444641a133_dep.dot | 1 + .../dir_83a4347d11f2ba6343d546ab133722d2.html | 5 - ...r_83a4347d11f2ba6343d546ab133722d2_dep.dot | 6 +- .../dir_8db5f55022e7670536cbc9a6a1d6f01c.html | 5 - .../dir_941490de56ac122cf77df9922cbcc750.html | 5 - .../dir_941490de56ac122cf77df9922cbcc750.js | 4 +- ...r_941490de56ac122cf77df9922cbcc750_dep.dot | 2 +- .../dir_e6d96184223881d115efa44ca0dfa844.html | 5 - ...r_e6d96184223881d115efa44ca0dfa844_dep.dot | 7 +- .../dir_f50aa5156fe016a259583c412dbf440c.html | 12 +- .../dir_f50aa5156fe016a259583c412dbf440c.js | 12 +- docs/html/files.html | 8 +- docs/html/functions.html | 150 ++- docs/html/functions_enum.html | 111 ++ docs/html/functions_func.html | 113 +- docs/html/functions_vars.html | 22 +- docs/html/globals.html | 9 +- docs/html/globals_defs.html | 105 ++ docs/html/hierarchy.html | 36 +- docs/html/hierarchy.js | 2 + docs/html/inherit_graph_1.dot | 2 +- docs/html/inherit_graph_3.dot | 16 +- docs/html/inherit_graph_4.dot | 16 +- docs/html/inherit_graph_5.dot | 4 +- docs/html/inherit_graph_6.dot | 2 +- docs/html/inherit_graph_7.dot | 10 + docs/html/inherit_graph_8.dot | 8 + docs/html/inherits.html | 12 +- docs/html/main_8cpp.html | 8 +- docs/html/main_8cpp__incl.dot | 31 +- docs/html/main_8cpp_source.html | 30 +- docs/html/menudata.js | 10 +- .../html/namespace_intelli_triangulation.html | 296 +++++ ...0621e2d8708fe2e8966d7d79b64e186_cgraph.dot | 12 + ...621e2d8708fe2e8966d7d79b64e186_icgraph.dot | 12 + ...150fee67fd41a451bd2592f10e00197_cgraph.dot | 10 + ...50fee67fd41a451bd2592f10e00197_icgraph.dot | 14 + ...af1ed598e868b25e9e06d580da32e5_icgraph.dot | 16 + ...af549a7faff35a74c1265b290ea0ca_icgraph.dot | 16 + docs/html/namespacemembers.html | 8 +- docs/html/namespacemembers_func.html | 8 +- docs/html/namespaces.html | 2 +- docs/html/namespaces_dup.js | 2 +- docs/html/navtreedata.js | 7 +- docs/html/navtreeindex0.js | 346 +++--- docs/html/navtreeindex1.js | 69 +- docs/html/search/all_0.js | 11 +- docs/html/search/all_1.js | 2 +- docs/html/search/all_10.js | 16 +- docs/html/search/all_11.html | 30 + docs/html/search/all_11.js | 17 + docs/html/search/all_2.js | 33 +- docs/html/search/all_3.js | 13 +- docs/html/search/all_4.js | 3 +- docs/html/search/all_5.js | 28 +- docs/html/search/all_6.js | 4 +- docs/html/search/all_7.js | 101 +- docs/html/search/all_8.js | 7 +- docs/html/search/all_9.js | 14 +- docs/html/search/all_a.js | 14 +- docs/html/search/all_b.js | 14 +- docs/html/search/all_c.js | 7 +- docs/html/search/all_d.js | 26 +- docs/html/search/all_e.js | 5 +- docs/html/search/all_f.js | 5 +- docs/html/search/classes_0.js | 28 +- docs/html/search/classes_1.js | 2 +- docs/html/search/classes_2.js | 2 +- docs/html/search/classes_3.js | 2 +- docs/html/search/defines_0.html | 30 + docs/html/search/defines_0.js | 4 + docs/html/search/enums_0.js | 2 +- docs/html/search/enums_1.js | 2 +- docs/html/search/enums_2.html | 30 + docs/html/search/enums_2.js | 4 + docs/html/search/enumvalues_0.js | 2 +- docs/html/search/enumvalues_1.js | 2 +- docs/html/search/enumvalues_2.js | 3 +- docs/html/search/enumvalues_3.html | 30 + docs/html/search/enumvalues_3.js | 4 + docs/html/search/enumvalues_4.html | 30 + docs/html/search/enumvalues_4.js | 6 + docs/html/search/enumvalues_5.html | 30 + docs/html/search/enumvalues_5.js | 5 + docs/html/search/enumvalues_6.html | 30 + docs/html/search/enumvalues_6.js | 5 + docs/html/search/files_0.js | 60 +- docs/html/search/files_1.js | 2 +- docs/html/search/files_2.js | 4 +- docs/html/search/functions_0.js | 4 +- docs/html/search/functions_1.js | 26 +- docs/html/search/functions_2.js | 10 +- docs/html/search/functions_3.js | 2 +- docs/html/search/functions_4.js | 28 +- docs/html/search/functions_5.js | 32 +- docs/html/search/functions_6.js | 2 +- docs/html/search/functions_7.js | 12 +- docs/html/search/functions_8.js | 14 +- docs/html/search/functions_9.js | 4 +- docs/html/search/functions_a.js | 4 +- docs/html/search/functions_b.js | 22 +- docs/html/search/functions_c.js | 3 +- docs/html/search/functions_d.js | 14 +- docs/html/search/functions_e.html | 30 + docs/html/search/functions_e.js | 17 + docs/html/search/namespaces_0.js | 2 +- docs/html/search/searchdata.js | 17 +- docs/html/search/variables_0.js | 9 +- docs/html/search/variables_1.js | 2 +- docs/html/search/variables_2.js | 6 +- docs/html/search/variables_3.js | 2 +- docs/html/search/variables_4.js | 4 +- docs/html/search/variables_5.js | 5 +- docs/html/search/variables_6.js | 2 +- docs/html/search/variables_7.js | 4 +- docs/html/search/variables_8.html | 30 + docs/html/search/variables_8.js | 5 + docs/html/struct_layer_object.html | 19 +- docs/html/struct_triangle.html | 12 +- 370 files changed, 10420 insertions(+), 5026 deletions(-) create mode 100644 docs/html/_intelli_render_settings_8cpp.html create mode 100644 docs/html/_intelli_render_settings_8cpp__incl.dot create mode 100644 docs/html/_intelli_render_settings_8cpp_source.html create mode 100644 docs/html/_intelli_render_settings_8h.html create mode 100644 docs/html/_intelli_render_settings_8h__dep__incl.dot create mode 100644 docs/html/_intelli_render_settings_8h_source.html create mode 100644 docs/html/_intelli_toolsettings_8cpp.html create mode 100644 docs/html/_intelli_toolsettings_8cpp__incl.dot create mode 100644 docs/html/_intelli_toolsettings_8cpp_source.html create mode 100644 docs/html/_intelli_toolsettings_8h.html create mode 100644 docs/html/_intelli_toolsettings_8h__dep__incl.dot create mode 100644 docs/html/_intelli_toolsettings_8h_source.html create mode 100644 docs/html/_intelli_triangulation_8cpp.html create mode 100644 docs/html/_intelli_triangulation_8cpp.js create mode 100644 docs/html/_intelli_triangulation_8cpp__incl.dot create mode 100644 docs/html/_intelli_triangulation_8cpp_source.html create mode 100644 docs/html/_intelli_triangulation_8h.html create mode 100644 docs/html/_intelli_triangulation_8h.js create mode 100644 docs/html/_intelli_triangulation_8h__dep__incl.dot create mode 100644 docs/html/_intelli_triangulation_8h__incl.dot create mode 100644 docs/html/_intelli_triangulation_8h_source.html create mode 100644 docs/html/class_intelli_color_picker_aec499265ae28ce1b54be88222e74292e_icgraph.dot create mode 100644 docs/html/class_intelli_image.png create mode 100644 docs/html/class_intelli_image_ad66fbe380ffe0e073a8cd760f8285fe3_icgraph.dot create mode 100644 docs/html/class_intelli_image_ae231800aba38c96074bbe9bb6e341d4e_icgraph.dot create mode 100644 docs/html/class_intelli_photo_gui.png create mode 100644 docs/html/class_intelli_photo_gui_a1dbef8d4688227aa9455aea52db00bf4_cgraph.dot create mode 100644 docs/html/class_intelli_raster_image.png create mode 100644 docs/html/class_intelli_raster_image_ae779b571372296f1922af818ba003413_icgraph.dot create mode 100644 docs/html/class_intelli_render_settings-members.html create mode 100644 docs/html/class_intelli_render_settings.html create mode 100644 docs/html/class_intelli_render_settings.js create mode 100644 docs/html/class_intelli_render_settings_a5a74e7d7ed3a2e944883dddbe8bbf5e8_icgraph.dot create mode 100644 docs/html/class_intelli_shaped_image.png create mode 100644 docs/html/class_intelli_shaped_image_ae2e612a1fa52d7f878b34a7a7022d8e9_icgraph.dot create mode 100644 docs/html/class_intelli_tool.png create mode 100644 docs/html/class_intelli_tool_a0020fad2e26315d5c4d96dbc95d1dceb_icgraph.dot create mode 100644 docs/html/class_intelli_tool_circle.png create mode 100644 docs/html/class_intelli_tool_circle_a7a03b65b95d7b5d72e6a92c95f068954_cgraph.dot create mode 100644 docs/html/class_intelli_tool_flood_fill.png create mode 100644 docs/html/class_intelli_tool_flood_fill_a83b1bd8be0cbb32cdf61a9597ec849ba_cgraph.dot create mode 100644 docs/html/class_intelli_tool_line.png create mode 100644 docs/html/class_intelli_tool_line_acb600b0f4e9225ebce2937c2b7abb4c2_cgraph.dot create mode 100644 docs/html/class_intelli_tool_pen.png create mode 100644 docs/html/class_intelli_tool_pen_ac77a025515d0fed6954556fe2b444818_cgraph.dot create mode 100644 docs/html/class_intelli_tool_plain_tool.png create mode 100644 docs/html/class_intelli_tool_plain_tool_a91fe568be05c075814d67440472bb658_cgraph.dot create mode 100644 docs/html/class_intelli_tool_polygon.png create mode 100644 docs/html/class_intelli_tool_polygon_a087cbf2254010989df6106a357471499_cgraph.dot create mode 100644 docs/html/class_intelli_tool_rectangle.png create mode 100644 docs/html/class_intelli_tool_rectangle_a7dc1463e726a21255e6297241dc71fb1_cgraph.dot create mode 100644 docs/html/class_intelli_toolsettings-members.html create mode 100644 docs/html/class_intelli_toolsettings.html create mode 100644 docs/html/class_intelli_toolsettings.js create mode 100644 docs/html/class_intelli_toolsettings_a5beb193b25e0665516244c61c5e65aa6_icgraph.dot create mode 100644 docs/html/class_intelli_toolsettings_a68528dd3bad8f39ba19fa6b12a4e415a_icgraph.dot create mode 100644 docs/html/class_intelli_toolsettings_a7d6ce2054ec4bcba7629dc2b514b6b5c_icgraph.dot create mode 100644 docs/html/class_intelli_toolsettings_a906d37de6ee94b433d53fe3e598cc9fa_icgraph.dot create mode 100644 docs/html/class_painting_area.png create mode 100644 docs/html/class_painting_area_a24280454ebb80db7feba2fd621513353_icgraph.dot create mode 100644 docs/html/class_painting_area_a675ee91b26b1c58be6d833f279d81597_icgraph.dot create mode 100644 docs/html/class_painting_area_a6e9207612cef104d39013564696fe989_cgraph.dot create mode 100644 docs/html/class_painting_area_a6e9207612cef104d39013564696fe989_icgraph.dot create mode 100644 docs/html/class_painting_area_a79eb059829f27e8cdb3a54c5cd3d12c9_icgraph.dot create mode 100644 docs/html/class_painting_area_a7ae21fd031ee1c04f92e042e86be0a90_icgraph.dot create mode 100644 docs/html/class_painting_area_a88c7e759aa8375a56129791645f46ea5_cgraph.dot create mode 100644 docs/html/class_painting_area_ac576f58aad03b4dcd47611b6a4b9abb4_icgraph.dot create mode 100644 docs/html/class_painting_area_ac6d089f4357b22d9a9906fd4771de3e7_cgraph.dot create mode 100644 docs/html/class_painting_area_acab11ad35d07e9081203d8217d2c0855_icgraph.dot create mode 100644 docs/html/class_painting_area_acff4563d006fda491469bd41778d07eb_cgraph.dot create mode 100644 docs/html/class_painting_area_ae05f6893fb44bfcb34018573a609cd1a_cgraph.dot create mode 100644 docs/html/class_painting_area_ae92b27dfd09573c224d2ae1958d3bead_icgraph.dot create mode 100644 docs/html/dir_000006_000002.html create mode 100644 docs/html/functions_enum.html create mode 100644 docs/html/globals_defs.html create mode 100644 docs/html/inherit_graph_7.dot create mode 100644 docs/html/inherit_graph_8.dot create mode 100644 docs/html/namespace_intelli_triangulation.html create mode 100644 docs/html/namespace_intelli_triangulation_a00621e2d8708fe2e8966d7d79b64e186_cgraph.dot create mode 100644 docs/html/namespace_intelli_triangulation_a00621e2d8708fe2e8966d7d79b64e186_icgraph.dot create mode 100644 docs/html/namespace_intelli_triangulation_ac150fee67fd41a451bd2592f10e00197_cgraph.dot create mode 100644 docs/html/namespace_intelli_triangulation_ac150fee67fd41a451bd2592f10e00197_icgraph.dot create mode 100644 docs/html/namespace_intelli_triangulation_acdaf1ed598e868b25e9e06d580da32e5_icgraph.dot create mode 100644 docs/html/namespace_intelli_triangulation_af9af549a7faff35a74c1265b290ea0ca_icgraph.dot create mode 100644 docs/html/search/all_11.html create mode 100644 docs/html/search/all_11.js create mode 100644 docs/html/search/defines_0.html create mode 100644 docs/html/search/defines_0.js create mode 100644 docs/html/search/enums_2.html create mode 100644 docs/html/search/enums_2.js create mode 100644 docs/html/search/enumvalues_3.html create mode 100644 docs/html/search/enumvalues_3.js create mode 100644 docs/html/search/enumvalues_4.html create mode 100644 docs/html/search/enumvalues_4.js create mode 100644 docs/html/search/enumvalues_5.html create mode 100644 docs/html/search/enumvalues_5.js create mode 100644 docs/html/search/enumvalues_6.html create mode 100644 docs/html/search/enumvalues_6.js create mode 100644 docs/html/search/functions_e.html create mode 100644 docs/html/search/functions_e.js create mode 100644 docs/html/search/variables_8.html create mode 100644 docs/html/search/variables_8.js diff --git a/docs/html/_intelli_color_picker_8h.html b/docs/html/_intelli_color_picker_8h.html index b04a431..47b8e92 100644 --- a/docs/html/_intelli_color_picker_8h.html +++ b/docs/html/_intelli_color_picker_8h.html @@ -95,16 +95,6 @@ $(document).ready(function(){initNavTree('_intelli_color_picker_8h.html','');});
#include "QColor"
#include "QPoint"
#include "QColorDialog"
-
-Include dependency graph for IntelliColorPicker.h:
-
-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
-

Go to the source code of this file.

diff --git a/docs/html/_intelli_color_picker_8h_source.html b/docs/html/_intelli_color_picker_8h_source.html index c7df48e..5efb6e4 100644 --- a/docs/html/_intelli_color_picker_8h_source.html +++ b/docs/html/_intelli_color_picker_8h_source.html @@ -103,7 +103,7 @@ $(document).ready(function(){initNavTree('_intelli_color_picker_8h_source.html',
17 
21 virtual ~IntelliColorPicker();
22 
-
26 void switchColors();
+
26 void swapColors();
27 
32 QColor getFirstColor();
33 
@@ -125,10 +125,10 @@ $(document).ready(function(){initNavTree('_intelli_color_picker_8h_source.html',
virtual ~IntelliColorPicker()
IntelliColorPicker destructor clears up his used memory, if there is some.
void setSecondColor(QColor Color)
A function to set the secondary color.
QColor getSecondColor()
A function to read the secondary selected color.
-
void switchColors()
A function switching primary and secondary color.
void setFirstColor(QColor Color)
A function to set the primary color.
QColor getFirstColor()
A function to read the primary selected color.
The IntelliColorPicker manages the selected colors for one whole project.
+
void swapColors()
A function switching primary and secondary color.
IntelliColorPicker()
IntelliColorPicker constructor, setting 2 preset colors, be careful, theese color may change in produ...
-Include dependency graph for IntelliColorPicker.cpp:
-
-
-

Go to the source code of this file.

diff --git a/docs/html/_intelli_helper_2_intelli_color_picker_8cpp_source.html b/docs/html/_intelli_helper_2_intelli_color_picker_8cpp_source.html index 0476d7b..3625595 100644 --- a/docs/html/_intelli_helper_2_intelli_color_picker_8cpp_source.html +++ b/docs/html/_intelli_helper_2_intelli_color_picker_8cpp_source.html @@ -101,7 +101,7 @@ $(document).ready(function(){initNavTree('_intelli_helper_2_intelli_color_picker
9 
10 }
11 
-
12 void IntelliColorPicker::switchColors(){
+
12 void IntelliColorPicker::swapColors(){
13  std::swap(firstColor, secondColor);
14 }
15 
@@ -125,10 +125,10 @@ $(document).ready(function(){initNavTree('_intelli_helper_2_intelli_color_picker
virtual ~IntelliColorPicker()
IntelliColorPicker destructor clears up his used memory, if there is some.
void setSecondColor(QColor Color)
A function to set the secondary color.
QColor getSecondColor()
A function to read the secondary selected color.
-
void switchColors()
A function switching primary and secondary color.
void setFirstColor(QColor Color)
A function to set the primary color.
QColor getFirstColor()
A function to read the primary selected color.
+
void swapColors()
A function switching primary and secondary color.
IntelliColorPicker()
IntelliColorPicker constructor, setting 2 preset colors, be careful, theese color may change in produ...
diff --git a/docs/html/_intelli_image_8cpp__incl.dot b/docs/html/_intelli_image_8cpp__incl.dot index d9789c3..e551c27 100644 --- a/docs/html/_intelli_image_8cpp__incl.dot +++ b/docs/html/_intelli_image_8cpp__incl.dot @@ -18,7 +18,13 @@ digraph "intelliphoto/src/Image/IntelliImage.cpp" Node7 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node8 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node2 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="IntelliHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; + Node9 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="IntelliHelper/IntelliRender\lSettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_render_settings_8h.html",tooltip=" "]; Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 [label="QPainter",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="QPainter",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; } diff --git a/docs/html/_intelli_image_8cpp_source.html b/docs/html/_intelli_image_8cpp_source.html index b12334b..abbb094 100644 --- a/docs/html/_intelli_image_8cpp_source.html +++ b/docs/html/_intelli_image_8cpp_source.html @@ -94,97 +94,148 @@ $(document).ready(function(){initNavTree('_intelli_image_8cpp_source.html','');}
2 #include <QSize>
3 #include <QPainter>
4 
-
5 IntelliImage::IntelliImage(int weight, int height)
-
6  : imageData(QSize(weight, height), QImage::Format_ARGB32){
-
7  imageData.fill(QColor(255,255,255,255));
-
8 }
-
9 
-
10 IntelliImage::~IntelliImage(){
-
11 
-
12 }
-
13 
-
14 bool IntelliImage::loadImage(const QString &fileName){
-
15  // Holds the image
-
16  QImage loadedImage;
+
5 IntelliImage::IntelliImage(int width, int height, bool fastRendererOn)
+
6  : imageData(QSize(width, height), fastRendererOn ? QImage::Format_Indexed8 : QImage::Format_ARGB32){
+
7  if(fastRendererOn) {
+
8  imageData = imageData.convertToFormat(QImage::Format_ARGB32);
+
9  }
+
10  imageData.fill(QColor(255,255,255,255));
+
11  if(fastRendererOn) {
+
12  imageData = imageData.convertToFormat(QImage::Format_Indexed8);
+
13  }
+
14  this->fastRenderer = fastRendererOn;
+
15 
+
16 }
17 
-
18  // If the image wasn't loaded leave this function
-
19  if (!loadedImage.load(fileName))
-
20  return false;
+
18 IntelliImage::~IntelliImage(){
+
19 
+
20 }
21 
-
22  // scaled Image to size of Layer
-
23  loadedImage = loadedImage.scaled(imageData.size(),Qt::IgnoreAspectRatio);
-
24 
-
25  imageData = loadedImage.convertToFormat(QImage::Format_ARGB32);
-
26  return true;
-
27 }
-
28 
-
29 void IntelliImage::resizeImage(QImage*image, const QSize &newSize){
-
30  // Check if we need to redraw the image
-
31  if (image->size() == newSize)
-
32  return;
-
33 
-
34  // Create a new image to display and fill it with white
-
35  QImage newImage(newSize, QImage::Format_ARGB32);
-
36  newImage.fill(qRgb(255, 255, 255));
-
37 
-
38  // Draw the image
-
39  QPainter painter(&newImage);
-
40  painter.drawImage(QPoint(0, 0), *image);
-
41  *image = newImage;
-
42 }
-
43 
-
44 void IntelliImage::drawPixel(const QPoint &p1, const QColor& color){
-
45  // Used to draw on the widget
-
46  QPainter painter(&imageData);
-
47 
-
48  // Set the current settings for the pen
-
49  painter.setPen(QPen(color, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
-
50 
-
51  // Draw a line from the last registered point to the current
-
52  painter.drawPoint(p1);
+
22 bool IntelliImage::loadImage(const QString &filePath){
+
23  // Holds the image
+
24  QImage loadedImage;
+
25 
+
26  // If the image wasn't loaded leave this function
+
27  if (!loadedImage.load(filePath))
+
28  return false;
+
29 
+
30  // scaled Image to size of Layer
+
31  loadedImage = loadedImage.scaled(imageData.size(),Qt::IgnoreAspectRatio);
+
32 
+
33  imageData = loadedImage.convertToFormat(fastRenderer ? QImage::Format_Indexed8 : QImage::Format_ARGB32);
+
34  return true;
+
35 }
+
36 
+
37 void IntelliImage::resizeImage(QImage*image, const QSize &newSize){
+
38  // Check if we need to redraw the image
+
39  if (image->size() == newSize)
+
40  return;
+
41 
+
42  // Create a new image to display and fill it with white
+
43  QImage newImage(newSize, QImage::Format_ARGB32);
+
44  newImage.fill(qRgb(255, 255, 255));
+
45 
+
46  // Draw the image
+
47  QPainter painter(&newImage);
+
48  painter.drawImage(QPoint(0, 0), *image);
+
49  *image = newImage;
+
50  if(fastRenderer) {
+
51  this->imageData = this->imageData.convertToFormat(QImage::Format_Indexed8);
+
52  }
53 }
54 
-
55 void IntelliImage::drawPoint(const QPoint &p1, const QColor& color, const int& penWidth){
-
56  // Used to draw on the widget
-
57  QPainter painter(&imageData);
-
58 
-
59  // Set the current settings for the pen
-
60  painter.setPen(QPen(color, penWidth, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
-
61  // Draw a line from the last registered point to the current
-
62  painter.drawPoint(p1);
-
63 }
+
55 void IntelliImage::drawPixel(const QPoint &p1, const QColor& color){
+
56  if(fastRenderer) {
+
57  this->imageData = this->imageData.convertToFormat(QImage::Format_ARGB32);
+
58  }
+
59  // Used to draw on the widget
+
60  QPainter painter(&imageData);
+
61 
+
62  // Set the current settings for the pen
+
63  painter.setPen(QPen(color, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
64 
-
65 void IntelliImage::drawLine(const QPoint &p1, const QPoint& p2, const QColor& color, const int& penWidth){
-
66  // Used to draw on the widget
-
67  QPainter painter(&imageData);
-
68 
-
69  // Set the current settings for the pen
-
70  painter.setPen(QPen(color, penWidth, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
+
65  // Draw a line from the last registered point to the current
+
66  painter.drawPoint(p1);
+
67  if(fastRenderer) {
+
68  this->imageData = this->imageData.convertToFormat(QImage::Format_Indexed8);
+
69  }
+
70 }
71 
-
72  // Draw a line from the last registered point to the current
-
73  painter.drawLine(p1, p2);
-
74 }
-
75 
-
76 void IntelliImage::drawPlain(const QColor& color){
-
77  imageData.fill(color);
-
78 }
-
79 
-
80 QColor IntelliImage::getPixelColor(QPoint& point){
-
81  return imageData.pixelColor(point);
-
82 }
+
72 void IntelliImage::drawPoint(const QPoint &p1, const QColor& color, const int& penWidth){
+
73  if(fastRenderer) {
+
74  this->imageData = this->imageData.convertToFormat(QImage::Format_ARGB32);
+
75  }
+
76  // Used to draw on the widget
+
77  QPainter painter(&imageData);
+
78 
+
79  // Set the current settings for the pen
+
80  painter.setPen(QPen(color, penWidth, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
+
81  // Draw a line from the last registered point to the current
+
82  painter.drawPoint(p1);
+
83  if(fastRenderer) {
+
84  this->imageData = this->imageData.convertToFormat(QImage::Format_Indexed8);
+
85  }
+
86 }
+
87 
+
88 void IntelliImage::drawLine(const QPoint &p1, const QPoint& p2, const QColor& color, const int& penWidth){
+
89  if(fastRenderer) {
+
90  this->imageData = this->imageData.convertToFormat(QImage::Format_ARGB32);
+
91  }
+
92  // Used to draw on the widget
+
93  QPainter painter(&imageData);
+
94 
+
95  // Set the current settings for the pen
+
96  painter.setPen(QPen(color, penWidth, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
+
97 
+
98  // Draw a line from the last registered point to the current
+
99  painter.drawLine(p1, p2);
+
100  if(fastRenderer) {
+
101  this->imageData = this->imageData.convertToFormat(QImage::Format_Indexed8);
+
102  }
+
103 }
+
104 
+
105 void IntelliImage::drawPlain(const QColor& color){
+
106  if(fastRenderer) {
+
107  this->imageData = this->imageData.convertToFormat(QImage::Format_ARGB32);
+
108  }
+
109  imageData.fill(color);
+
110  if(fastRenderer) {
+
111  this->imageData = this->imageData.convertToFormat(QImage::Format_Indexed8);
+
112  }
+
113 }
+
114 
+
115 QColor IntelliImage::getPixelColor(QPoint& point){
+
116  if(fastRenderer) {
+
117  QImage copy = this->imageData.convertToFormat(QImage::Format_ARGB32);
+
118  return copy.pixelColor(point);
+
119  }
+
120  return imageData.pixelColor(point);
+
121 }
+
122 
+
123 QImage IntelliImage::getImageData(){
+
124  return this->imageData;
+
125 }
+
126 
+
127 void IntelliImage::updateRendererSetting(bool fastRendererOn){
+
128  this->fastRenderer = fastRendererOn;
+
129  this->imageData = this->imageData.convertToFormat(fastRenderer ? QImage::Format_Indexed8 : QImage::Format_ARGB32);
+
130 }
-
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws A Line between two given Points in a given color.
+
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws A Line between two given Points in a given color.
-
virtual ~IntelliImage()=0
An Abstract Destructor.
-
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
-
virtual bool loadImage(const QString &fileName)
A function that loads and sclaes an image to the fitting dimensions.
-
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
-
IntelliImage(int weight, int height)
The Construcor of the IntelliImage. Given the Image dimensions.
Definition: IntelliImage.cpp:5
-
void resizeImage(QImage *image, const QSize &newSize)
-
virtual QColor getPixelColor(QPoint &point)
A function that returns the pixelcolor at a certain point.
-
QImage imageData
The underlying image data.
Definition: IntelliImage.h:32
-
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
+
virtual ~IntelliImage()=0
An Abstract Destructor.
+
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
+
IntelliImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliImage. Given the Image dimensions.
Definition: IntelliImage.cpp:5
+
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
+
virtual void updateRendererSetting(bool fastRendererOn)
updateRendererSetting updates the existing image format to the new format.
+
virtual QImage getImageData()
getImageData returns the data of the current image.
+
void resizeImage(QImage *image, const QSize &newSize)
+
virtual QColor getPixelColor(QPoint &point)
A function that returns the pixelcolor at a certain point.
+
bool fastRenderer
fastRenderer is the flag that represents the usage of 8bit pictures.
Definition: IntelliImage.h:47
+
QImage imageData
The underlying image data.
Definition: IntelliImage.h:37
+
virtual bool loadImage(const QString &filePath)
A function that loads and sclaes an image to the fitting dimensions.
+
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
@@ -99,16 +98,8 @@ $(document).ready(function(){initNavTree('_intelli_image_8h.html','');}); #include <QSize>
#include <QWidget>
#include <vector>
-
-Include dependency graph for IntelliImage.h:
-
-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
-
+#include "IntelliHelper/IntelliTriangulation.h"
+#include "IntelliHelper/IntelliRenderSettings.h"

Go to the source code of this file.

@@ -117,46 +108,7 @@ Classes -
class  IntelliImage
 An abstract class which manages the basic IntelliImage operations. More...
 
- - - -

-Enumerations

enum  ImageType { ImageType::Raster_Image, -ImageType::Shaped_Image - }
 The Types, which an Image can be. More...
 
-

Enumeration Type Documentation

- -

◆ ImageType

- -
-
- - - - - -
- - - - -
enum ImageType
-
-strong
-
- -

The Types, which an Image can be.

- - - -
Enumerator
Raster_Image 
Shaped_Image 
- -

Definition at line 14 of file IntelliImage.h.

- -
-
diff --git a/docs/html/_intelli_image_8h__incl.dot b/docs/html/_intelli_image_8h__incl.dot index df22951..39d5fcc 100644 --- a/docs/html/_intelli_image_8h__incl.dot +++ b/docs/html/_intelli_image_8h__incl.dot @@ -16,4 +16,10 @@ digraph "intelliphoto/src/Image/IntelliImage.h" Node6 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node7 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="IntelliHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; + Node8 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="IntelliHelper/IntelliRender\lSettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_render_settings_8h.html",tooltip=" "]; } diff --git a/docs/html/_intelli_image_8h_source.html b/docs/html/_intelli_image_8h_source.html index 45206cb..ebcec11 100644 --- a/docs/html/_intelli_image_8h_source.html +++ b/docs/html/_intelli_image_8h_source.html @@ -100,74 +100,100 @@ $(document).ready(function(){initNavTree('_intelli_image_8h_source.html','');});
8 #include <QWidget>
9 #include <vector>
10 
-
14 enum class ImageType {
-
15  Raster_Image,
-
16  Shaped_Image
-
17 };
-
18 
-
19 class IntelliTool;
-
20 
-
24 class IntelliImage {
-
25 friend IntelliTool;
-
26 protected:
-
27 void resizeImage(QImage*image, const QSize &newSize);
-
28 
-
32 QImage imageData;
-
33 public:
-
39 IntelliImage(int weight, int height);
-
40 
-
44 virtual ~IntelliImage() = 0;
-
45 
-
46 
-
52 virtual void drawPixel(const QPoint &p1, const QColor& color);
-
53 
-
61 virtual void drawLine(const QPoint &p1, const QPoint& p2, const QColor& color, const int& penWidth);
+
11 #include "IntelliHelper/IntelliTriangulation.h"
+
12 #include "IntelliHelper/IntelliRenderSettings.h"
+
13 
+
14 class IntelliTool;
+
15 
+
19 class IntelliImage {
+
20 friend IntelliTool;
+
21 public:
+
22 
+
26 enum class ImageType {
+
27  RASTERIMAGE,
+
28  SHAPEDIMAGE
+
29 };
+
30 
+
31 protected:
+
32 void resizeImage(QImage*image, const QSize &newSize);
+
33 
+
37 QImage imageData;
+
38 
+
42 ImageType TypeOfImage;
+
43 
+
47 bool fastRenderer;
+
48 
+
49 public:
+
56 IntelliImage(int width, int height, bool fastRendererOn);
+
57 
+
61 virtual ~IntelliImage() = 0;
62 
-
69 virtual void drawPoint(const QPoint &p1, const QColor& color, const int& penWidth);
+
63 
+
69 virtual void drawPixel(const QPoint &p1, const QColor& color);
70 
-
75 virtual void drawPlain(const QColor& color);
-
76 
-
83 virtual QImage getDisplayable(const QSize& displaySize, int alpha) = 0;
-
84 
-
90 virtual QImage getDisplayable(int alpha=255) = 0;
-
91 
-
96 virtual IntelliImage* getDeepCopy() = 0;
-
97 
-
101 virtual void calculateVisiblity() = 0;
-
102 
-
107 virtual void setPolygon(const std::vector<QPoint>& polygonData) = 0;
+
78 virtual void drawLine(const QPoint &p1, const QPoint& p2, const QColor& color, const int& penWidth);
+
79 
+
86 virtual void drawPoint(const QPoint &p1, const QColor& color, const int& penWidth);
+
87 
+
92 virtual void drawPlain(const QColor& color);
+
93 
+
100 virtual QImage getDisplayable(const QSize& displaySize, int alpha) = 0;
+
101 
+
107 virtual QImage getDisplayable(int alpha=255) = 0;
108 
-
113 virtual std::vector<QPoint> getPolygonData(){
-
114  return std::vector<QPoint>();
-
115 }
-
116 
-
122 virtual bool loadImage(const QString &fileName);
-
123 
-
129 virtual QColor getPixelColor(QPoint& point);
-
130 };
-
131 
-
132 #endif
+
113 virtual IntelliImage* getDeepCopy() = 0;
+
114 
+
118 virtual void calculateVisiblity() = 0;
+
119 
+
124 virtual void setPolygon(const std::vector<QPoint>& polygonData) = 0;
+
125 
+
130 virtual std::vector<QPoint> getPolygonData(){
+
131  return std::vector<QPoint>();
+
132 }
+
133 
+
134 virtual ImageType getTypeOfImage(){
+
135  return TypeOfImage;
+
136 }
+
137 
+
143 virtual bool loadImage(const QString &filePath);
+
144 
+
150 virtual QColor getPixelColor(QPoint& point);
+
151 
+
156 virtual void updateRendererSetting(bool fastRendererOn);
+
157 
+
161 virtual QImage getImageData();
+
162 
+
163 };
+
164 
+
165 #endif
-
ImageType
The Types, which an Image can be.
Definition: IntelliImage.h:14
-
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws A Line between two given Points in a given color.
-
virtual ~IntelliImage()=0
An Abstract Destructor.
-
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
-
virtual bool loadImage(const QString &fileName)
A function that loads and sclaes an image to the fitting dimensions.
+
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws A Line between two given Points in a given color.
+
virtual ~IntelliImage()=0
An Abstract Destructor.
+
+
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
virtual QImage getDisplayable(const QSize &displaySize, int alpha)=0
A function returning the displayable ImageData in a requested transparence and size.
-
-
virtual std::vector< QPoint > getPolygonData()
A function that returns the Polygondata if existent.
Definition: IntelliImage.h:113
-
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
-
IntelliImage(int weight, int height)
The Construcor of the IntelliImage. Given the Image dimensions.
Definition: IntelliImage.cpp:5
-
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
-
-
void resizeImage(QImage *image, const QSize &newSize)
-
virtual QColor getPixelColor(QPoint &point)
A function that returns the pixelcolor at a certain point.
-
QImage imageData
The underlying image data.
Definition: IntelliImage.h:32
-
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:24
+
virtual ImageType getTypeOfImage()
Definition: IntelliImage.h:134
+
virtual std::vector< QPoint > getPolygonData()
A function that returns the Polygondata if existent.
Definition: IntelliImage.h:130
+
IntelliImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliImage. Given the Image dimensions.
Definition: IntelliImage.cpp:5
+
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
+
virtual void updateRendererSetting(bool fastRendererOn)
updateRendererSetting updates the existing image format to the new format.
+
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:14
+
+
virtual QImage getImageData()
getImageData returns the data of the current image.
+
void resizeImage(QImage *image, const QSize &newSize)
+
ImageType TypeOfImage
The Type, an Image is.
Definition: IntelliImage.h:42
+
virtual QColor getPixelColor(QPoint &point)
A function that returns the pixelcolor at a certain point.
+
bool fastRenderer
fastRenderer is the flag that represents the usage of 8bit pictures.
Definition: IntelliImage.h:47
+
+
QImage imageData
The underlying image data.
Definition: IntelliImage.h:37
+
virtual bool loadImage(const QString &filePath)
A function that loads and sclaes an image to the fitting dimensions.
+
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:19
virtual IntelliImage * getDeepCopy()=0
A function that copys all that returns a [allocated] Image.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
+
+
ImageType
The Types, which an Image can be.
Definition: IntelliImage.h:26
+
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
virtual void setPolygon(const std::vector< QPoint > &polygonData)=0
An abstract function that sets the data of the visible Polygon, if needed.
-
#include <QtWidgets>
-#include <QPixmap>
-#include "IntelliPhotoGui.h"
+
#include "IntelliPhotoGui.h"
#include "Layer/PaintingArea.h"
-
-Include dependency graph for IntelliPhotoGui.cpp:
-
-
-

Go to the source code of this file.

diff --git a/docs/html/_intelli_photo_gui_8cpp__incl.dot b/docs/html/_intelli_photo_gui_8cpp__incl.dot index 872329a..8c50d72 100644 --- a/docs/html/_intelli_photo_gui_8cpp__incl.dot +++ b/docs/html/_intelli_photo_gui_8cpp__incl.dot @@ -5,24 +5,24 @@ digraph "intelliphoto/src/GUI/IntelliPhotoGui.cpp" node [fontname="Helvetica",fontsize="10",shape=record]; Node1 [label="intelliphoto/src/GUI\l/IntelliPhotoGui.cpp",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="QtWidgets",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node3 [label="QPixmap",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="IntelliPhotoGui.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_photo_gui_8h.html",tooltip=" "]; - Node4 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliPhotoGui.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_photo_gui_8h.html",tooltip=" "]; + Node2 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="QtWidgets",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node2 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="QPixmap",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node2 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node5 [label="QList",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node4 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node6 [label="QMainWindow",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node4 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node7 [label="QGridLayout",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node4 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node8 [label="QPushButton",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node4 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 [label="QTextEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node4 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node10 [label="QLabel",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node4 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node11 [label="QLineEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node12 [label="Layer/PaintingArea.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_painting_area_8h.html",tooltip=" "]; @@ -35,6 +35,7 @@ digraph "intelliphoto/src/GUI/IntelliPhotoGui.cpp" Node12 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node16 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node12 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node12 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node17 [label="Image/IntelliImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_image_8h.html",tooltip=" "]; Node17 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; @@ -45,25 +46,29 @@ digraph "intelliphoto/src/GUI/IntelliPhotoGui.cpp" Node17 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node17 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node19 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node12 -> Node20 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node20 [label="Image/IntelliRasterImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8h.html",tooltip=" "]; - Node20 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 -> Node21 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node21 [label="Image/IntelliShapedImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8h.html",tooltip=" "]; - Node21 -> Node20 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node21 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node21 -> Node22 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node22 [label="IntelliHelper/IntelliHelper.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_helper_8h.html",tooltip=" "]; - Node22 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node22 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node17 -> Node20 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 [label="IntelliHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; + Node20 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node17 -> Node21 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node21 [label="IntelliHelper/IntelliRender\lSettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_render_settings_8h.html",tooltip=" "]; + Node12 -> Node22 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node22 [label="Image/IntelliRasterImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8h.html",tooltip=" "]; + Node22 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node12 -> Node23 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node23 [label="Tool/IntelliTool.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8h.html",tooltip=" "]; - Node23 -> Node24 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node24 [label="IntelliHelper/IntelliColor\lPicker.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_color_picker_8h.html",tooltip=" "]; - Node24 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node24 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node24 -> Node25 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node25 [label="QColorDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node23 [label="Image/IntelliShapedImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8h.html",tooltip=" "]; + Node23 -> Node22 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node23 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node12 -> Node24 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node24 [label="Tool/IntelliTool.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8h.html",tooltip=" "]; + Node24 -> Node25 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node25 [label="IntelliHelper/IntelliColor\lPicker.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_color_picker_8h.html",tooltip=" "]; + Node25 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node25 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node25 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node26 [label="QColorDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node24 -> Node27 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node27 [label="IntelliHelper/IntelliToolsettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_toolsettings_8h.html",tooltip=" "]; + Node24 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 -> Node25 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; } diff --git a/docs/html/_intelli_photo_gui_8cpp_source.html b/docs/html/_intelli_photo_gui_8cpp_source.html index cd9f204..fab2947 100644 --- a/docs/html/_intelli_photo_gui_8cpp_source.html +++ b/docs/html/_intelli_photo_gui_8cpp_source.html @@ -92,127 +92,127 @@ $(document).ready(function(){initNavTree('_intelli_photo_gui_8cpp_source.html','
Go to the documentation of this file.
1 // ---------- IntelliPhotoGui.cpp ----------
2 
-
3 #include <QtWidgets>
-
4 #include <QPixmap>
+
3 #include "IntelliPhotoGui.h"
+
4 #include "Layer/PaintingArea.h"
5 
-
6 #include "IntelliPhotoGui.h"
-
7 #include "Layer/PaintingArea.h"
-
8 
-
9 // IntelliPhotoGui constructor
- -
11  // create Gui elements and lay them out
-
12  createGui();
-
13  // Create actions
-
14  createActions();
-
15  // create Menus
-
16  createMenus();
-
17  // set style of the gui
-
18  setIntelliStyle();
-
19  // Size the app
-
20  resize(600,600);
-
21  showMaximized();
-
22 
-
23 }
-
24 
-
25 // User tried to close the app
-
26 void IntelliPhotoGui::closeEvent(QCloseEvent*event){
-
27  // If they try to close maybeSave() returns true
-
28  // if no changes have been made and the app closes
-
29  if (maybeSave()) {
-
30  event->accept();
-
31  } else {
-
32  // If there have been changes ignore the event
-
33  event->ignore();
-
34  }
-
35 }
-
36 
-
37 // Check if the current image has been changed and then
-
38 // open a dialog to open a file
-
39 void IntelliPhotoGui::slotOpen(){
-
40  // Check if changes have been made since last save
-
41  // maybeSave() returns true if no changes have been made
-
42  if (maybeSave()) {
-
43 
-
44  // Get the file to open from a dialog
-
45  // tr sets the window title to Open File
-
46  // QDir opens the current dirctory
-
47  QString fileName = QFileDialog::getOpenFileName(this,
-
48  tr("Open File"), QDir::currentPath(), nullptr, nullptr, QFileDialog::DontUseNativeDialog);
-
49 
-
50  // If we have a file name load the image and place
-
51  // it in the paintingArea
-
52  if (!fileName.isEmpty())
-
53  paintingArea->open(fileName);
-
54  }
-
55 }
-
56 
-
57 // Called when the user clicks Save As in the menu
-
58 void IntelliPhotoGui::slotSave(){
-
59  // A QAction represents the action of the user clicking
-
60  QAction*action = qobject_cast<QAction*>(sender());
+
6 // IntelliPhotoGui constructor
+ +
8  // create Gui elements and lay them out
+
9  createGui();
+
10  // Create actions
+
11  createActions();
+
12  // create Menus
+
13  createMenus();
+
14  // set style of the gui
+
15  setIntelliStyle();
+
16  // Size the app
+
17  resize(600,600);
+
18  showMaximized();
+
19  setDefaultToolValue();
+
20 }
+
21 
+
22 // User tried to close the app
+
23 void IntelliPhotoGui::closeEvent(QCloseEvent*event){
+
24  // If they try to close maybeSave() returns true
+
25  // if no changes have been made and the app closes
+
26  if (maybeSave()) {
+
27  event->accept();
+
28  } else {
+
29  // If there have been changes ignore the event
+
30  event->ignore();
+
31  }
+
32 }
+
33 
+
34 // Check if the current image has been changed and then
+
35 // open a dialog to open a file
+
36 void IntelliPhotoGui::slotOpen(){
+
37  // Check if changes have been made since last save
+
38  // maybeSave() returns true if no changes have been made
+
39  if (maybeSave()) {
+
40 
+
41  // Get the file to open from a dialog
+
42  // tr sets the window title to Open File
+
43  // QDir opens the current dirctory
+
44  QString fileName = QFileDialog::getOpenFileName(this,
+
45  tr("Open File"), QDir::currentPath(), nullptr, nullptr, QFileDialog::DontUseNativeDialog);
+
46 
+
47  // If we have a file name load the image and place
+
48  // it in the paintingArea
+
49  if (!fileName.isEmpty())
+
50  paintingArea->open(fileName);
+
51  }
+
52 }
+
53 
+
54 // Called when the user clicks Save As in the menu
+
55 void IntelliPhotoGui::slotSave(){
+
56  // A QAction represents the action of the user clicking
+
57  QAction*action = qobject_cast<QAction*>(sender());
+
58 
+
59  // Stores the array of bytes of the users data
+
60  QByteArray fileFormat = action->data().toByteArray();
61 
-
62  // Stores the array of bytes of the users data
-
63  QByteArray fileFormat = action->data().toByteArray();
-
64 
-
65  // Pass it to be saved
-
66  saveFile(fileFormat);
-
67 }
-
68 
-
69 // Opens a dialog that allows the user to create a New Layer
-
70 void IntelliPhotoGui::slotCreateNewLayer(){
-
71  // Stores button value
-
72  bool ok1, ok2;
-
73 
-
74  // "New Layer" is the title of the window
-
75  // the next tr is the text to display
-
76  // Define the standard Value, min, max, step and ok button
-
77  int width = QInputDialog::getInt(this, tr("New Layer"),
-
78  tr("Width:"),
-
79  200,1, 500, 1, &ok1);
-
80  int height = QInputDialog::getInt(this, tr("New Layer"),
-
81  tr("Height:"),
-
82  200,1, 500, 1, &ok2);
-
83  // Create New Layer
-
84  if (ok1&&ok2)
-
85  {
-
86  int layer = paintingArea->addLayer(width,height,0,0);
-
87  paintingArea->slotActivateLayer(layer);
-
88  }
-
89 }
-
90 
-
91 // Opens a dialog that allows the user to delete a Layer
-
92 void IntelliPhotoGui::slotDeleteLayer(){
-
93  // Stores button value
-
94  bool ok;
-
95 
-
96  // "delete Layer" is the title of the window
-
97  // the next tr is the text to display
-
98  // Define the standard Value, min, max, step and ok button
-
99  int layerNumber = QInputDialog::getInt(this, tr("delete Layer"),
-
100  tr("Number:"),
-
101  1,0, 500, 1, &ok);
-
102  // Create New Layer
-
103  if (ok)
-
104  paintingArea->deleteLayer(layerNumber);
-
105 }
-
106 
-
107 void IntelliPhotoGui::slotSetActiveAlpha(){
-
108  // Stores button value
-
109  bool ok1, ok2;
-
110 
-
111  // "Layer to set on" is the title of the window
-
112  // the next tr is the text to display
-
113  // Define the standard Value, min, max, step and ok button
-
114  int layer = QInputDialog::getInt(this, tr("Layer to set on"),
-
115  tr("Layer:"),
-
116  -1,-1,100,1, &ok1);
-
117  // "New Alpha" is the title of the window
-
118  int alpha = QInputDialog::getInt(this, tr("New Alpha"),
-
119  tr("Alpha:"),
-
120  255,0, 255, 1, &ok2);
-
121  if (ok1&&ok2)
-
122  {
-
123  paintingArea->setAlphaOfLayer(layer,alpha);
+
62  // Pass it to be saved
+
63  saveFile(fileFormat);
+
64 }
+
65 
+
66 // Opens a dialog that allows the user to create a New Layer
+
67 void IntelliPhotoGui::slotCreateNewLayer(){
+
68  // Stores button value
+
69  bool ok1, ok2;
+
70 
+
71  // "New Layer" is the title of the window
+
72  // the next tr is the text to display
+
73  // Define the standard Value, min, max, step and ok button
+
74  int width = QInputDialog::getInt(this, tr("New Layer"),
+
75  tr("Width:"),
+
76  200,1, 500, 1, &ok1);
+
77  int height = QInputDialog::getInt(this, tr("New Layer"),
+
78  tr("Height:"),
+
79  200,1, 500, 1, &ok2);
+
80  // Create New Layer
+
81  if (ok1&&ok2)
+
82  {
+
83  int layer = paintingArea->addLayer(width,height,0,0);
+
84  UpdateGui();
+
85  }
+
86 }
+
87 
+
88 // Opens a dialog that allows the user to delete a Layer
+
89 void IntelliPhotoGui::slotDeleteLayer(){
+
90  // Stores button value
+
91  bool ok;
+
92 
+
93  // "delete Layer" is the title of the window
+
94  // the next tr is the text to display
+
95  // Define the standard Value, min, max, step and ok button
+
96  int layerNumber = QInputDialog::getInt(this, tr("delete Layer"),
+
97  tr("Number:"),
+
98  paintingArea->getNumberOfActiveLayer(),0, 500, 1, &ok);
+
99  // Create New Layer
+
100  if (ok) {
+
101  paintingArea->deleteLayer(layerNumber);
+
102  UpdateGui();
+
103  }
+
104 }
+
105 
+
106 void IntelliPhotoGui::slotSetActiveAlpha(){
+
107  // Stores button value
+
108  bool ok1, ok2;
+
109 
+
110  // "Layer to set on" is the title of the window
+
111  // the next tr is the text to display
+
112  // Define the standard Value, min, max, step and ok button
+
113  int layer = QInputDialog::getInt(this, tr("Layer to set on"),
+
114  tr("Layer:"),
+
115  -1,-1,100,1, &ok1);
+
116  // "New Alpha" is the title of the window
+
117  int alpha = QInputDialog::getInt(this, tr("New Alpha"),
+
118  tr("Alpha:"),
+
119  255,0, 255, 1, &ok2);
+
120  if (ok1&&ok2)
+
121  {
+
122  paintingArea->setLayerAlpha(layer,alpha);
+
123  UpdateGui();
124  }
125 }
126 
@@ -271,351 +271,566 @@ $(document).ready(function(){initNavTree('_intelli_photo_gui_8cpp_source.html','
179  if (ok1&&ok2&&ok3&&ok4)
180  {
181  paintingArea->floodFill(red, green, blue, alpha);
-
182  }
-
183 }
-
184 
-
185 void IntelliPhotoGui::slotSetActiveLayer(){
-
186  // Stores button value
-
187  bool ok1;
-
188 
-
189  // "Layer to set on" is the title of the window
-
190  // the next tr is the text to display
-
191  // Define the standard Value, min, max, step and ok button
-
192  int layer = QInputDialog::getInt(this, tr("Layer to set on"),
-
193  tr("Layer:"),
-
194  -1,0,255,1, &ok1);
-
195  if (ok1)
-
196  {
-
197  paintingArea->setLayerToActive(layer);
-
198  }
-
199 }
-
200 
-
201 void IntelliPhotoGui::slotSetFirstColor(){
-
202  paintingArea->colorPickerSetFirstColor();
-
203 }
-
204 
-
205 void IntelliPhotoGui::slotSetSecondColor(){
-
206  paintingArea->colorPickerSetSecondColor();
-
207 }
-
208 
-
209 void IntelliPhotoGui::slotSwitchColor(){
-
210  paintingArea->colorPickerSwitchColor();
+
182  UpdateGui();
+
183  }
+
184 }
+
185 
+
186 void IntelliPhotoGui::slotSetActiveLayer(){
+
187  // Stores button value
+
188  bool ok1;
+
189 
+
190  // "Layer to set on" is the title of the window
+
191  // the next tr is the text to display
+
192  // Define the standard Value, min, max, step and ok button
+
193  int layer = QInputDialog::getInt(this, tr("Layer to set on"),
+
194  tr("Layer:"),
+
195  -1,0,255,1, &ok1);
+
196  if (ok1)
+
197  {
+
198  paintingArea->setLayerActive(layer);
+
199  UpdateGui();
+
200  }
+
201 }
+
202 
+
203 void IntelliPhotoGui::slotSetFirstColor(){
+
204  paintingArea->colorPickerSetFirstColor();
+
205  UpdateGui();
+
206 }
+
207 
+
208 void IntelliPhotoGui::slotSetSecondColor(){
+
209  paintingArea->colorPickerSetSecondColor();
+
210  UpdateGui();
211 }
212 
-
213 void IntelliPhotoGui::slotCreatePenTool(){
-
214  paintingArea->createPenTool();
-
215 }
-
216 
-
217 void IntelliPhotoGui::slotCreatePlainTool(){
-
218  paintingArea->createPlainTool();
-
219 }
-
220 
-
221 void IntelliPhotoGui::slotCreateLineTool(){
-
222  paintingArea->createLineTool();
-
223 }
-
224 
-
225 void IntelliPhotoGui::slotCreateRectangleTool(){
-
226  paintingArea->createRectangleTool();
-
227 }
-
228 
-
229 void IntelliPhotoGui::slotCreateCircleTool(){
-
230  paintingArea->createCircleTool();
+
213 void IntelliPhotoGui::slotSwapColor(){
+
214  paintingArea->colorPickerSwapColors();
+
215  UpdateGui();
+
216 }
+
217 
+
218 void IntelliPhotoGui::slotCreatePenTool(){
+
219  PenButton->setChecked(true);
+
220  paintingArea->createPenTool();
+
221 }
+
222 
+
223 void IntelliPhotoGui::slotCreatePlainTool(){
+
224  PlainButton->setChecked(true);
+
225  paintingArea->createPlainTool();
+
226 }
+
227 
+
228 void IntelliPhotoGui::slotCreateLineTool(){
+
229  LineButton->setChecked(true);
+
230  paintingArea->createLineTool();
231 }
232 
-
233 void IntelliPhotoGui::slotCreatePolygonTool(){
-
234  paintingArea->createPolygonTool();
-
235 }
-
236 
-
237 void IntelliPhotoGui::slotCreateFloodFillTool(){
-
238  paintingArea->createFloodFillTool();
-
239 }
-
240 
-
241 // Open an about dialog
-
242 void IntelliPhotoGui::slotAboutDialog(){
-
243  // Window title and text to display
-
244  QMessageBox::about(this, tr("About Painting"),
-
245  tr("<p><b>IntelliPhoto</b>Pretty basic editor.</p>"));
+
233 void IntelliPhotoGui::slotCreateRectangleTool(){
+
234  RectangleButton->setChecked(true);
+
235  paintingArea->createRectangleTool();
+
236 }
+
237 
+
238 void IntelliPhotoGui::slotCreateCircleTool(){
+
239  CircleButton->setChecked(true);
+
240  paintingArea->createCircleTool();
+
241 }
+
242 
+
243 void IntelliPhotoGui::slotCreatePolygonTool(){
+
244  PolygonButton->setChecked(true);
+
245  paintingArea->createPolygonTool();
246 }
247 
-
248 // Define menu actions that call functions
-
249 void IntelliPhotoGui::createActions(){
-
250  // Get a list of the supported file formats
-
251  // QImageWriter is used to write images to files
-
252  foreach (QByteArray format, QImageWriter::supportedImageFormats()) {
-
253  QString text = tr("%1...").arg(QString(format).toUpper());
-
254 
-
255  // Create an action for each file format
-
256  QAction*action = new QAction(text, this);
-
257 
-
258  // Set an action for each file format
-
259  action->setData(format);
-
260 
-
261  // When clicked call IntelliPhotoGui::save()
-
262  connect(action, SIGNAL(triggered()), this, SLOT(slotSave()));
-
263 
-
264  // Attach each file format option menu item to Save As
-
265  actionSaveAs.append(action);
-
266  }
-
267 
-
268  //set exporter to actions
-
269  QAction*pngSaveAction = new QAction("PNG-8", this);
-
270  pngSaveAction->setData("PNG");
-
271  // When clicked call IntelliPhotoGui::save()
-
272  connect(pngSaveAction, SIGNAL(triggered()), this, SLOT(slotSave()));
-
273  // Attach each PNG in save Menu
-
274  actionSaveAs.append(pngSaveAction);
-
275 
-
276  // Create exit action and tie to IntelliPhotoGui::close()
-
277  actionExit = new QAction(tr("&Exit"), this);
-
278  actionExit->setShortcuts(QKeySequence::Quit);
-
279  connect(actionExit, SIGNAL(triggered()), this, SLOT(close()));
-
280 
-
281  actionOpen = new QAction(tr("&Open"), this);
-
282  actionOpen->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_O));
-
283  connect(actionOpen, SIGNAL(triggered()), this, SLOT(slotOpen()));
-
284 
-
285  // Create New Layer action and tie to IntelliPhotoGui::newLayer()
-
286  actionCreateNewLayer = new QAction(tr("&New Layer..."), this);
-
287  actionCreateNewLayer->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_N));
-
288  connect(actionCreateNewLayer, SIGNAL(triggered()), this, SLOT(slotCreateNewLayer()));
+
248 void IntelliPhotoGui::slotCreateFloodFillTool(){
+
249  FloodFillButton->setChecked(true);
+
250  paintingArea->createFloodFillTool();
+
251 }
+
252 
+
253 // Open an about dialog
+
254 void IntelliPhotoGui::slotAboutDialog(){
+
255  // Window title and text to display
+
256  QMessageBox::about(this, tr("About Painting"),
+
257  tr("<p><b>IntelliPhoto</b>Pretty basic editor.</p>"));
+
258 }
+
259 
+
260 void IntelliPhotoGui::slotEnterPressed(){
+
261  QString string = EditLineWidth->text();
+
262  if(string.toInt() > 50) {
+
263  EditLineWidth->setText("50");
+
264  }
+
265  paintingArea->Toolsettings.setLineWidth(string.toInt());
+
266  string = EditLineInnerAlpha->text();
+
267  if(string.toInt() > 255) {
+
268  EditLineInnerAlpha->setText("255");
+
269  }
+
270  paintingArea->Toolsettings.setInnerAlpha(string.toInt());
+
271 }
+
272 
+
273 void IntelliPhotoGui::slotResetTools(){
+
274  CircleButton->setChecked(false);
+
275  FloodFillButton->setChecked(false);
+
276  LineButton->setChecked(false);
+
277  PenButton->setChecked(false);
+
278  PlainButton->setChecked(false);
+
279  PolygonButton->setChecked(false);
+
280  RectangleButton->setChecked(false);
+
281 }
+
282 
+
283 // Define menu actions that call functions
+
284 void IntelliPhotoGui::createActions(){
+
285  // Get a list of the supported file formats
+
286  // QImageWriter is used to write images to files
+
287  foreach (QByteArray format, QImageWriter::supportedImageFormats()) {
+
288  QString text = tr("%1...").arg(QString(format).toUpper());
289 
-
290  // Delete New Layer action and tie to IntelliPhotoGui::deleteLayer()
-
291  actionDeleteLayer = new QAction(tr("&Delete Layer..."), this);
-
292  connect(actionDeleteLayer, SIGNAL(triggered()), this, SLOT(slotDeleteLayer()));
-
293 
-
294  actionSetActiveLayer = new QAction(tr("&set Active"), this);
-
295  connect(actionSetActiveLayer, SIGNAL(triggered()), this, SLOT(slotSetActiveLayer()));
-
296 
-
297  actionSetActiveAlpha = new QAction(tr("&set Alpha"), this);
-
298  connect(actionSetActiveAlpha, SIGNAL(triggered()), this, SLOT(slotSetActiveAlpha()));
-
299 
-
300  actionMovePositionUp = new QAction(tr("&move Up"), this);
-
301  actionMovePositionUp->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Up));
-
302  connect(actionMovePositionUp, SIGNAL(triggered()), this, SLOT(slotPositionMoveUp()));
-
303 
-
304  actionMovePositionDown = new QAction(tr("&move Down"), this);
-
305  actionMovePositionDown->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Down));
-
306  connect(actionMovePositionDown, SIGNAL(triggered()), this, SLOT(slotPositionMoveDown()));
-
307 
-
308  actionMovePositionLeft = new QAction(tr("&move Left"), this);
-
309  actionMovePositionLeft->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Left));
-
310  connect(actionMovePositionLeft, SIGNAL(triggered()), this, SLOT(slotPositionMoveLeft()));
-
311 
-
312  actionMovePositionRight = new QAction(tr("&move Right"), this);
-
313  actionMovePositionRight->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Right));
-
314  connect(actionMovePositionRight, SIGNAL(triggered()), this, SLOT(slotPositionMoveRight()));
+
290  // Create an action for each file format
+
291  QAction*action = new QAction(text, this);
+
292 
+
293  // Set an action for each file format
+
294  action->setData(format);
+
295 
+
296  // When clicked call IntelliPhotoGui::save()
+
297  connect(action, SIGNAL(triggered()), this, SLOT(slotSave()));
+
298 
+
299  // Attach each file format option menu item to Save As
+
300  actionSaveAs.append(action);
+
301  }
+
302 
+
303  //set exporter to actions
+
304  QAction*pngSaveAction = new QAction("PNG-8", this);
+
305  pngSaveAction->setData("PNG");
+
306  // When clicked call IntelliPhotoGui::save()
+
307  connect(pngSaveAction, SIGNAL(triggered()), this, SLOT(slotSave()));
+
308  // Attach each PNG in save Menu
+
309  actionSaveAs.append(pngSaveAction);
+
310 
+
311  // Create exit action and tie to IntelliPhotoGui::close()
+
312  actionExit = new QAction(tr("&Exit"), this);
+
313  actionExit->setShortcuts(QKeySequence::Quit);
+
314  connect(actionExit, SIGNAL(triggered()), this, SLOT(close()));
315 
-
316  actionMoveLayerUp = new QAction(tr("&move Layer Up"), this);
-
317  actionMoveLayerUp->setShortcut(QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_Up));
-
318  connect(actionMoveLayerUp, SIGNAL(triggered()), this, SLOT(slotMoveLayerUp()));
+
316  actionOpen = new QAction(tr("&Open"), this);
+
317  actionOpen->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_O));
+
318  connect(actionOpen, SIGNAL(triggered()), this, SLOT(slotOpen()));
319 
-
320  actionMoveLayerDown= new QAction(tr("&move Layer Down"), this);
-
321  actionMoveLayerDown->setShortcut(QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_Down));
-
322  connect(actionMoveLayerDown, SIGNAL(triggered()), this, SLOT(slotMoveLayerDown()));
-
323 
-
324  //Create Color Actions here
-
325  actionColorPickerFirstColor = new QAction(tr("&Main"), this);
-
326  connect(actionColorPickerFirstColor, SIGNAL(triggered()), this, SLOT(slotSetFirstColor()));
-
327 
-
328  actionColorPickerSecondColor = new QAction(tr("&Secondary"), this);
-
329  connect(actionColorPickerSecondColor, SIGNAL(triggered()), this, SLOT(slotSetSecondColor()));
-
330 
-
331  actionColorSwitch = new QAction(tr("&Switch"), this);
-
332  actionColorSwitch->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_S));
-
333  connect(actionColorSwitch, SIGNAL(triggered()), this, SLOT(slotSwitchColor()));
+
320  // Create New Layer action and tie to IntelliPhotoGui::newLayer()
+
321  actionCreateNewLayer = new QAction(tr("&New Layer..."), this);
+
322  actionCreateNewLayer->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_N));
+
323  connect(actionCreateNewLayer, SIGNAL(triggered()), this, SLOT(slotCreateNewLayer()));
+
324 
+
325  // Delete New Layer action and tie to IntelliPhotoGui::deleteLayer()
+
326  actionDeleteLayer = new QAction(tr("&Delete Layer..."), this);
+
327  connect(actionDeleteLayer, SIGNAL(triggered()), this, SLOT(slotDeleteLayer()));
+
328 
+
329  actionSetActiveLayer = new QAction(tr("&set Active"), this);
+
330  connect(actionSetActiveLayer, SIGNAL(triggered()), this, SLOT(slotSetActiveLayer()));
+
331 
+
332  actionSetActiveAlpha = new QAction(tr("&set Alpha"), this);
+
333  connect(actionSetActiveAlpha, SIGNAL(triggered()), this, SLOT(slotSetActiveAlpha()));
334 
-
335  //Create Tool actions down here
-
336  actionCreatePlainTool = new QAction(tr("&Plain"), this);
-
337  connect(actionCreatePlainTool, SIGNAL(triggered()), this, SLOT(slotCreatePlainTool()));
+
335  actionMovePositionUp = new QAction(tr("&move Up"), this);
+
336  actionMovePositionUp->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Up));
+
337  connect(actionMovePositionUp, SIGNAL(triggered()), this, SLOT(slotPositionMoveUp()));
338 
-
339  actionCreatePenTool = new QAction(tr("&Pen"),this);
-
340  connect(actionCreatePenTool, SIGNAL(triggered()), this, SLOT(slotCreatePenTool()));
-
341 
-
342  actionCreateLineTool = new QAction(tr("&Line"), this);
-
343  connect(actionCreateLineTool, SIGNAL(triggered()), this, SLOT(slotCreateLineTool()));
-
344 
-
345  actionCreateCircleTool = new QAction(tr("&Circle"), this);
-
346  connect(actionCreateCircleTool, SIGNAL(triggered()), this, SLOT(slotCreateCircleTool()));
-
347 
-
348  actionCreateRectangleTool = new QAction(tr("&Rectangle"), this);
-
349  connect(actionCreateRectangleTool, SIGNAL(triggered()), this, SLOT(slotCreateRectangleTool()));
+
339  actionMovePositionDown = new QAction(tr("&move Down"), this);
+
340  actionMovePositionDown->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Down));
+
341  connect(actionMovePositionDown, SIGNAL(triggered()), this, SLOT(slotPositionMoveDown()));
+
342 
+
343  actionMovePositionLeft = new QAction(tr("&move Left"), this);
+
344  actionMovePositionLeft->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Left));
+
345  connect(actionMovePositionLeft, SIGNAL(triggered()), this, SLOT(slotPositionMoveLeft()));
+
346 
+
347  actionMovePositionRight = new QAction(tr("&move Right"), this);
+
348  actionMovePositionRight->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Right));
+
349  connect(actionMovePositionRight, SIGNAL(triggered()), this, SLOT(slotPositionMoveRight()));
350 
-
351  actionCreatePolygonTool = new QAction(tr("&Polygon"), this);
-
352  connect(actionCreatePolygonTool, SIGNAL(triggered()), this, SLOT(slotCreatePolygonTool()));
-
353 
-
354  actionCreateFloodFillTool = new QAction(tr("&FloodFill"), this);
-
355  connect(actionCreateFloodFillTool, SIGNAL(triggered()), this, SLOT(slotCreateFloodFillTool()));
-
356 
-
357  // Create about action and tie to IntelliPhotoGui::about()
-
358  actionAboutDialog = new QAction(tr("&About"), this);
-
359  connect(actionAboutDialog, SIGNAL(triggered()), this, SLOT(slotAboutDialog()));
-
360 
-
361  // Create about Qt action and tie to IntelliPhotoGui::aboutQt()
-
362  actionAboutQtDialog = new QAction(tr("About &Qt"), this);
-
363  connect(actionAboutQtDialog, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
-
364 }
-
365 
-
366 // Create the menubar
-
367 void IntelliPhotoGui::createMenus(){
-
368  // Create Save As option and the list of file types
-
369  saveAsMenu = new QMenu(tr("&Save As"), this);
-
370  foreach (QAction *action, actionSaveAs)
-
371  saveAsMenu->addAction(action);
+
351  actionMoveLayerUp = new QAction(tr("&move Layer Up"), this);
+
352  actionMoveLayerUp->setShortcut(QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_Up));
+
353  connect(actionMoveLayerUp, SIGNAL(triggered()), this, SLOT(slotMoveLayerUp()));
+
354 
+
355  actionMoveLayerDown= new QAction(tr("&move Layer Down"), this);
+
356  actionMoveLayerDown->setShortcut(QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_Down));
+
357  connect(actionMoveLayerDown, SIGNAL(triggered()), this, SLOT(slotMoveLayerDown()));
+
358 
+
359  //Create Color Actions here
+
360  actionColorPickerFirstColor = new QAction(tr("&Main"), this);
+
361  connect(actionColorPickerFirstColor, SIGNAL(triggered()), this, SLOT(slotSetFirstColor()));
+
362  connect(FirstColorButton, SIGNAL(clicked()), this, SLOT(slotSetFirstColor()));
+
363 
+
364  actionColorPickerSecondColor = new QAction(tr("&Secondary"), this);
+
365  connect(actionColorPickerSecondColor, SIGNAL(triggered()), this, SLOT(slotSetSecondColor()));
+
366  connect(SecondColorButton, SIGNAL(clicked()), this, SLOT(slotSetSecondColor()));
+
367 
+
368  actionColorSwap = new QAction(tr("&Switch"), this);
+
369  actionColorSwap->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_S));
+
370  connect(actionColorSwap, SIGNAL(triggered()), this, SLOT(slotSwapColor()));
+
371  connect(SwitchColorButton, SIGNAL(clicked()), this, SLOT(slotSwapColor()));
372 
-
373 
-
374  // Attach all actions to File
-
375  fileMenu = new QMenu(tr("&File"), this);
-
376  fileMenu->addAction(actionOpen);
-
377  fileMenu->addMenu(saveAsMenu);
-
378  fileMenu->addSeparator();
-
379  fileMenu->addAction(actionExit);
-
380 
-
381  // Attach all actions to Options
-
382  optionMenu = new QMenu(tr("&Options"), this);
-
383  optionMenu->addAction(actionSetActiveLayer);
-
384  optionMenu->addAction(actionSetActiveAlpha);
-
385  optionMenu->addAction(actionMovePositionUp);
-
386  optionMenu->addAction(actionMovePositionDown);
-
387  optionMenu->addAction(actionMovePositionLeft);
-
388  optionMenu->addAction(actionMovePositionRight);
-
389  optionMenu->addAction(actionMoveLayerUp);
-
390  optionMenu->addAction(actionMoveLayerDown);
-
391 
-
392  // Attach all actions to Layer
-
393  layerMenu = new QMenu(tr("&Layer"), this);
-
394  layerMenu->addAction(actionCreateNewLayer);
-
395  layerMenu->addAction(actionDeleteLayer);
-
396 
-
397  //Attach all Color Options
-
398  colorMenu = new QMenu(tr("&Color"), this);
-
399  colorMenu->addAction(actionColorPickerFirstColor);
-
400  colorMenu->addAction(actionColorPickerSecondColor);
-
401  colorMenu->addAction(actionColorSwitch);
+
373  //Create Tool actions down here
+
374  actionCreatePlainTool = new QAction(tr("&Plain"), this);
+
375  connect(actionCreatePlainTool, SIGNAL(triggered()), this, SLOT(slotResetTools()));
+
376  connect(actionCreatePlainTool, SIGNAL(triggered()), this, SLOT(slotCreatePlainTool()));
+
377 
+
378 
+
379  actionCreatePenTool = new QAction(tr("&Pen"),this);
+
380  connect(actionCreatePenTool, SIGNAL(triggered()), this, SLOT(slotResetTools()));
+
381  connect(actionCreatePenTool, SIGNAL(triggered()), this, SLOT(slotCreatePenTool()));
+
382 
+
383  actionCreateLineTool = new QAction(tr("&Line"), this);
+
384  connect(actionCreateLineTool, SIGNAL(triggered()), this, SLOT(slotResetTools()));
+
385  connect(actionCreateLineTool, SIGNAL(triggered()), this, SLOT(slotCreateLineTool()));
+
386 
+
387  actionCreateCircleTool = new QAction(tr("&Circle"), this);
+
388  connect(actionCreateCircleTool, SIGNAL(triggered()), this, SLOT(slotResetTools()));
+
389  connect(actionCreateCircleTool, SIGNAL(triggered()), this, SLOT(slotCreateCircleTool()));
+
390 
+
391  actionCreateRectangleTool = new QAction(tr("&Rectangle"), this);
+
392  connect(actionCreateRectangleTool, SIGNAL(triggered()), this, SLOT(slotResetTools()));
+
393  connect(actionCreateRectangleTool, SIGNAL(triggered()), this, SLOT(slotCreateRectangleTool()));
+
394 
+
395  actionCreatePolygonTool = new QAction(tr("&Polygon"), this);
+
396  connect(actionCreatePolygonTool, SIGNAL(triggered()), this, SLOT(slotResetTools()));
+
397  connect(actionCreatePolygonTool, SIGNAL(triggered()), this, SLOT(slotCreatePolygonTool()));
+
398 
+
399  actionCreateFloodFillTool = new QAction(tr("&FloodFill"), this);
+
400  connect(actionCreateFloodFillTool, SIGNAL(triggered()), this, SLOT(slotResetTools()));
+
401  connect(actionCreateFloodFillTool, SIGNAL(triggered()), this, SLOT(slotCreateFloodFillTool()));
402 
-
403  //Attach all Tool Options
-
404  toolMenu = new QMenu(tr("&Tools"), this);
-
405  toolMenu->addAction(actionCreatePenTool);
-
406  toolMenu->addAction(actionCreatePlainTool);
-
407  toolMenu->addAction(actionCreateLineTool);
-
408  toolMenu->addAction(actionCreateRectangleTool);
-
409  toolMenu->addAction(actionCreateCircleTool);
-
410  toolMenu->addAction(actionCreatePolygonTool);
-
411  toolMenu->addAction(actionCreateFloodFillTool);
-
412  toolMenu->addSeparator();
-
413  toolMenu->addMenu(colorMenu);
-
414 
-
415  // Attach all actions to Help
-
416  helpMenu = new QMenu(tr("&Help"), this);
-
417  helpMenu->addAction(actionAboutDialog);
-
418  helpMenu->addAction(actionAboutQtDialog);
+
403  // Create about action and tie to IntelliPhotoGui::about()
+
404  actionAboutDialog = new QAction(tr("&About"), this);
+
405  connect(actionAboutDialog, SIGNAL(triggered()), this, SLOT(slotAboutDialog()));
+
406 
+
407  // Create about Qt action and tie to IntelliPhotoGui::aboutQt()
+
408  actionAboutQtDialog = new QAction(tr("About &Qt"), this);
+
409  connect(actionAboutQtDialog, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
+
410 
+
411  connect(EditLineWidth, SIGNAL(returnPressed()), this, SLOT(slotEnterPressed()));
+
412  connect(EditLineInnerAlpha, SIGNAL(returnPressed()), this, SLOT(slotEnterPressed()));
+
413 
+
414  connect(CircleButton,SIGNAL(pressed()), this, SLOT(slotResetTools()));
+
415  connect(CircleButton, SIGNAL(clicked()), this, SLOT(slotCreateCircleTool()));
+
416 
+
417  connect(FloodFillButton,SIGNAL(pressed()), this, SLOT(slotResetTools()));
+
418  connect(FloodFillButton, SIGNAL(clicked()), this, SLOT(slotCreateFloodFillTool()));
419 
-
420  // Add menu items to the menubar
-
421  menuBar()->addMenu(fileMenu);
-
422  menuBar()->addMenu(optionMenu);
-
423  menuBar()->addMenu(layerMenu);
-
424  menuBar()->addMenu(toolMenu);
-
425  menuBar()->addMenu(helpMenu);
-
426 }
-
427 
-
428 void IntelliPhotoGui::createGui(){
-
429  // create a central widget to work on
-
430  centralGuiWidget = new QWidget(this);
-
431  setCentralWidget(centralGuiWidget);
-
432 
-
433  // create the grid for the layout
-
434  mainLayout = new QGridLayout(centralGuiWidget);
-
435  centralGuiWidget->setLayout(mainLayout);
-
436 
-
437  // create Gui elements
-
438  paintingArea = new PaintingArea();
-
439 
-
440  // set gui elements
-
441  mainLayout->addWidget(paintingArea);
-
442 }
+
420  connect(LineButton,SIGNAL(pressed()), this, SLOT(slotResetTools()));
+
421  connect(LineButton, SIGNAL(clicked()), this, SLOT(slotCreateLineTool()));
+
422 
+
423  connect(PenButton,SIGNAL(pressed()), this, SLOT(slotResetTools()));
+
424  connect(PenButton, SIGNAL(clicked()), this, SLOT(slotCreatePenTool()));
+
425 
+
426  connect(PlainButton,SIGNAL(pressed()), this, SLOT(slotResetTools()));
+
427  connect(PlainButton, SIGNAL(clicked()), this, SLOT(slotCreatePlainTool()));
+
428 
+
429  connect(PolygonButton,SIGNAL(pressed()), this, SLOT(slotResetTools()));
+
430  connect(PolygonButton, SIGNAL(clicked()), this, SLOT(slotCreatePolygonTool()));
+
431 
+
432  connect(RectangleButton,SIGNAL(pressed()), this, SLOT(slotResetTools()));
+
433  connect(RectangleButton, SIGNAL(clicked()), this, SLOT(slotCreateRectangleTool()));
+
434 }
+
435 
+
436 // Create the menubar
+
437 void IntelliPhotoGui::createMenus(){
+
438  // Create Save As option and the list of file types
+
439  saveAsMenu = new QMenu(tr("&Save As"), this);
+
440  foreach (QAction *action, actionSaveAs)
+
441  saveAsMenu->addAction(action);
+
442 
443 
-
444 void IntelliPhotoGui::setIntelliStyle(){
-
445  // Set the title
-
446  setWindowTitle("IntelliPhoto Prototype");
-
447  // Set style sheet
-
448  this->setStyleSheet("background-color:rgb(64,64,64)");
-
449  this->centralGuiWidget->setStyleSheet("color:rgb(255,255,255)");
-
450  this->menuBar()->setStyleSheet("color:rgb(255,255,255)");
-
451 }
-
452 
-
453 bool IntelliPhotoGui::maybeSave(){
-
454  // Check for changes since last save
-
455 
-
456  // TODO insert variable for modified status here to make an save exit message
-
457  if (false) {
-
458  QMessageBox::StandardButton ret;
-
459 
-
460  // Painting is the title of the window
-
461  // Add text and the buttons
-
462  ret = QMessageBox::warning(this, tr("Painting"),
-
463  tr("The image has been modified.\n"
-
464  "Do you want to save your changes?"),
-
465  QMessageBox::Save | QMessageBox::Discard
-
466  | QMessageBox::Cancel);
-
467 
-
468  // If save button clicked call for file to be saved
-
469  if (ret == QMessageBox::Save) {
-
470  return saveFile("png");
-
471 
-
472  // If cancel do nothing
-
473  } else if (ret == QMessageBox::Cancel) {
-
474  return false;
-
475  }
-
476  }
-
477  return true;
-
478 }
-
479 
-
480 bool IntelliPhotoGui::saveFile(const QByteArray &fileFormat){
-
481  // Define path, name and default file type
-
482  QString initialPath = QDir::currentPath() + "/untitled." + fileFormat;
-
483 
-
484  // Get selected file from dialog
-
485  // Add the proper file formats and extensions
-
486  QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"),
-
487  initialPath,
-
488  tr("%1 Files (*.%2);;All Files (*)")
-
489  .arg(QString::fromLatin1(fileFormat.toUpper()))
-
490  .arg(QString::fromLatin1(fileFormat)), nullptr, QFileDialog::DontUseNativeDialog);
-
491 
-
492  // If no file do nothing
-
493  if (fileName.isEmpty()) {
-
494  return false;
-
495  } else {
-
496  // Call for the file to be saved
-
497  return paintingArea->save(fileName, fileFormat.constData());
-
498  }
-
499 }
+
444  // Attach all actions to File
+
445  fileMenu = new QMenu(tr("&File"), this);
+
446  fileMenu->addAction(actionOpen);
+
447  fileMenu->addMenu(saveAsMenu);
+
448  fileMenu->addSeparator();
+
449  fileMenu->addAction(actionExit);
+
450 
+
451  // Attach all actions to Options
+
452  optionMenu = new QMenu(tr("&Options"), this);
+
453  optionMenu->addAction(actionSetActiveLayer);
+
454  optionMenu->addAction(actionSetActiveAlpha);
+
455  optionMenu->addAction(actionMovePositionUp);
+
456  optionMenu->addAction(actionMovePositionDown);
+
457  optionMenu->addAction(actionMovePositionLeft);
+
458  optionMenu->addAction(actionMovePositionRight);
+
459  optionMenu->addAction(actionMoveLayerUp);
+
460  optionMenu->addAction(actionMoveLayerDown);
+
461 
+
462  // Attach all actions to Layer
+
463  layerMenu = new QMenu(tr("&Layer"), this);
+
464  layerMenu->addAction(actionCreateNewLayer);
+
465  layerMenu->addAction(actionDeleteLayer);
+
466 
+
467  //Attach all Color Options
+
468  colorMenu = new QMenu(tr("&Color"), this);
+
469  colorMenu->addAction(actionColorPickerFirstColor);
+
470  colorMenu->addAction(actionColorPickerSecondColor);
+
471  colorMenu->addAction(actionColorSwap);
+
472 
+
473  //Attach all Tool Options
+
474  toolMenu = new QMenu(tr("&Tools"), this);
+
475  toolMenu->addAction(actionCreateCircleTool);
+
476  toolMenu->addAction(actionCreateFloodFillTool);
+
477  toolMenu->addAction(actionCreateLineTool);
+
478  toolMenu->addAction(actionCreatePenTool);
+
479  toolMenu->addAction(actionCreatePlainTool);
+
480  toolMenu->addAction(actionCreatePolygonTool);
+
481  toolMenu->addAction(actionCreateRectangleTool);
+
482  toolMenu->addSeparator();
+
483  toolMenu->addMenu(colorMenu);
+
484 
+
485  // Attach all actions to Help
+
486  helpMenu = new QMenu(tr("&Help"), this);
+
487  helpMenu->addAction(actionAboutDialog);
+
488  helpMenu->addAction(actionAboutQtDialog);
+
489 
+
490  // Add menu items to the menubar
+
491  menuBar()->addMenu(fileMenu);
+
492  menuBar()->addMenu(optionMenu);
+
493  menuBar()->addMenu(layerMenu);
+
494  menuBar()->addMenu(toolMenu);
+
495  menuBar()->addMenu(helpMenu);
+
496 }
+
497 
+
498 void IntelliPhotoGui::createGui(){
+
499  // create a central widget to work on
+
500  centralGuiWidget = new QWidget(this);
+
501  setCentralWidget(centralGuiWidget);
+
502 
+
503  // create the grid for the layout
+
504  mainLayout = new QGridLayout(centralGuiWidget);
+
505  centralGuiWidget->setLayout(mainLayout);
+
506 
+
507  // create Gui elements
+
508  paintingArea = new PaintingArea();
+
509  paintingArea->DumpyGui = this;
+
510 
+
511  p = QPixmap(":/Icons/Buttons/icons/circle-tool.svg");
+
512  CircleButton = new QPushButton();
+
513  CircleButton->setFixedSize(Buttonsize);
+
514  CircleButton->setIcon(p);
+
515  CircleButton->setIconSize(Buttonsize);
+
516  CircleButton->setCheckable(true);
+
517 
+
518  p = QPixmap(":/Icons/Buttons/icons/flood-fill-tool.svg");
+
519  FloodFillButton = new QPushButton();
+
520  FloodFillButton->setFixedSize(Buttonsize);
+
521  FloodFillButton->setIcon(p);
+
522  FloodFillButton->setIconSize(Buttonsize);
+
523  FloodFillButton->setCheckable(true);
+
524 
+
525  p = QPixmap(":/Icons/Buttons/icons/icon.png");
+
526  LineButton = new QPushButton();
+
527  LineButton->setFixedSize(Buttonsize);
+
528  LineButton->setIcon(p);
+
529  LineButton->setIconSize(Buttonsize);
+
530  LineButton->setCheckable(true);
+
531 
+
532  p = QPixmap(":/Icons/Buttons/icons/pen-tool.svg");
+
533  PenButton = new QPushButton();
+
534  PenButton->setFixedSize(Buttonsize);
+
535  PenButton->setIcon(p);
+
536  PenButton->setIconSize(Buttonsize);
+
537  PenButton->setCheckable(true);
+
538 
+
539  p = QPixmap(":/Icons/Buttons/icons/icon.png");
+
540  PlainButton = new QPushButton();
+
541  PlainButton->setFixedSize(Buttonsize);
+
542  PlainButton->setIcon(p);
+
543  PlainButton->setIconSize(Buttonsize);
+
544  PlainButton->setCheckable(true);
+
545 
+
546  p = QPixmap(":/Icons/Buttons/icons/polygon-tool.svg");
+
547  PolygonButton = new QPushButton();
+
548  PolygonButton->setFixedSize(Buttonsize);
+
549  PolygonButton->setIcon(p);
+
550  PolygonButton->setIconSize(Buttonsize);
+
551  PolygonButton->setCheckable(true);
+
552 
+
553  p = QPixmap(":/Icons/Buttons/icons/rectangle-tool.svg");
+
554  RectangleButton = new QPushButton();
+
555  RectangleButton->setFixedSize(Buttonsize);
+
556  RectangleButton->setIcon(p);
+
557  RectangleButton->setIconSize(Buttonsize);
+
558  RectangleButton->setCheckable(true);
+
559 
+
560  WidthLine = new QLabel();
+
561  WidthLine->setText("Width");
+
562  WidthLine->setFixedSize(Buttonsize.width(),Buttonsize.height()/3);
+
563 
+
564  EditLineWidth = new QLineEdit();
+
565  EditLineWidth->setFixedSize(Buttonsize.width(),Buttonsize.height()/3);
+
566  EditLineWidth->setText("5");
+
567  ValidatorLineWidth = new QIntValidator();
+
568  ValidatorLineWidth->setTop(99);
+
569  ValidatorLineWidth->setBottom(1);
+
570  EditLineWidth->setValidator(ValidatorLineWidth);
+
571 
+
572  innerAlphaLine = new QLabel();
+
573  innerAlphaLine->setText("Inner Alpha");
+
574  innerAlphaLine->setFixedSize(Buttonsize.width(),Buttonsize.height()/3);
+
575 
+
576  EditLineInnerAlpha = new QLineEdit();
+
577  EditLineInnerAlpha->setFixedSize(Buttonsize.width(),Buttonsize.height()/3);
+
578  EditLineInnerAlpha->setText("255");
+
579  ValidatorInnerAlpha = new QIntValidator();
+
580  ValidatorInnerAlpha->setTop(999);
+
581  ValidatorInnerAlpha->setBottom(0);
+
582  EditLineInnerAlpha->setValidator(ValidatorInnerAlpha);
+
583 
+
584  FirstColorButton = new QPushButton();
+
585  FirstColorButton->setFixedSize(Buttonsize/2);
+
586 
+
587  SecondColorButton = new QPushButton();
+
588  SecondColorButton->setFixedSize(Buttonsize/2);
+
589 
+
590  p = QPixmap(":/Icons/Buttons/icons/Wechselpfeile.png");
+
591  SwitchColorButton = new QPushButton();
+
592  SwitchColorButton->setFixedSize(Buttonsize.width(),Buttonsize.height()/2);
+
593  SwitchColorButton->setIcon(p);
+
594  SwitchColorButton->setIconSize(QSize(Buttonsize.width(),Buttonsize.height()/2));
+
595 
+
596  ActiveLayerLine = new QLabel();
+
597  QString string = QString("Active Layer: %1").arg(paintingArea->getNumberOfActiveLayer());
+
598  ActiveLayerLine->setText(string);
+
599  ActiveLayerLine->setFixedSize(Buttonsize.width()+10,Buttonsize.height()/3);
+
600 
+
601  p = p.fromImage(paintingArea->getImageOfActiveLayer()->getImageData());
+
602 
+
603  ActiveLayerImageButton = new QPushButton();
+
604  ActiveLayerImageButton->setFixedSize(Buttonsize);
+
605  ActiveLayerImageButton->setIcon(p);
+
606  ActiveLayerImageButton->setIconSize(Buttonsize);
+
607 
+
608  // set gui elements
+
609 
+
610  mainLayout->addWidget(paintingArea,1,1,20,1);
+
611  mainLayout->addWidget(CircleButton,1,2,1,2);
+
612  mainLayout->addWidget(FloodFillButton,2,2,1,2);
+
613  mainLayout->addWidget(LineButton,3,2,1,2);
+
614  mainLayout->addWidget(PenButton,4,2,1,2);
+
615  mainLayout->addWidget(PlainButton,5,2,1,2);
+
616  mainLayout->addWidget(PolygonButton,6,2,1,2);
+
617  mainLayout->addWidget(RectangleButton,7,2,1,2);
+
618  mainLayout->addWidget(WidthLine,8,2,1,2);
+
619  mainLayout->addWidget(EditLineWidth,9,2,1,2);
+
620  mainLayout->addWidget(innerAlphaLine,10,2,1,2);
+
621  mainLayout->addWidget(EditLineInnerAlpha,11,2,1,2);
+
622  mainLayout->addWidget(FirstColorButton,12,2,1,1);
+
623  mainLayout->addWidget(SecondColorButton,12,3,1,1);
+
624  mainLayout->addWidget(SwitchColorButton,13,2,1,2);
+
625  mainLayout->addWidget(ActiveLayerLine,14,2,1,2);
+
626  mainLayout->addWidget(ActiveLayerImageButton,15,2,1,2);
+
627 }
+
628 
+
629 void IntelliPhotoGui::setIntelliStyle(){
+
630  // Set the title
+
631  setWindowTitle("IntelliPhoto Prototype");
+
632  // Set style sheet
+
633  this->setStyleSheet("background-color:rgb(64,64,64)");
+
634  this->centralGuiWidget->setStyleSheet("color:rgb(255,255,255)");
+
635  this->menuBar()->setStyleSheet("color:rgb(255,255,255)");
+
636  QString string = QString("background-color: %1").arg(paintingArea->colorPicker.getFirstColor().name());
+
637  FirstColorButton->setStyleSheet(string);
+
638  string = QString("background-color: %1").arg(paintingArea->colorPicker.getSecondColor().name());
+
639  SecondColorButton->setStyleSheet(string);
+
640 }
+
641 
+
642 bool IntelliPhotoGui::maybeSave(){
+
643  // Check for changes since last save
+
644 
+
645  // TODO insert variable for modified status here to make an save exit message
+
646  if (false) {
+
647  QMessageBox::StandardButton ret;
+
648 
+
649  // Painting is the title of the window
+
650  // Add text and the buttons
+
651  ret = QMessageBox::warning(this, tr("Painting"),
+
652  tr("The image has been modified.\n"
+
653  "Do you want to save your changes?"),
+
654  QMessageBox::Save | QMessageBox::Discard
+
655  | QMessageBox::Cancel);
+
656 
+
657  // If save button clicked call for file to be saved
+
658  if (ret == QMessageBox::Save) {
+
659  return saveFile("png");
+
660 
+
661  // If cancel do nothing
+
662  } else if (ret == QMessageBox::Cancel) {
+
663  return false;
+
664  }
+
665  }
+
666  return true;
+
667 }
+
668 
+
669 bool IntelliPhotoGui::saveFile(const QByteArray &fileFormat){
+
670  // Define path, name and default file type
+
671  QString initialPath = QDir::currentPath() + "/untitled." + fileFormat;
+
672 
+
673  // Get selected file from dialog
+
674  // Add the proper file formats and extensions
+
675  QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"),
+
676  initialPath,
+
677  tr("%1 Files (*.%2);;All Files (*)")
+
678  .arg(QString::fromLatin1(fileFormat.toUpper()))
+
679  .arg(QString::fromLatin1(fileFormat)), nullptr, QFileDialog::DontUseNativeDialog);
+
680 
+
681  // If no file do nothing
+
682  if (fileName.isEmpty()) {
+
683  return false;
+
684  } else {
+
685  // Call for the file to be saved
+
686  return paintingArea->save(fileName, fileFormat.constData());
+
687  }
+
688 }
+
689 
+
690 void IntelliPhotoGui::setDefaultToolValue(){
+
691  slotEnterPressed();
+
692 }
+
693 
+ +
695  QString string = QString("Active Layer: %1").arg(paintingArea->getNumberOfActiveLayer());
+
696  ActiveLayerLine->setText(string);
+
697  p = p.fromImage(paintingArea->getImageOfActiveLayer()->getImageData());
+
698  ActiveLayerImageButton->setIcon(p);
+
699  ActiveLayerImageButton->setIconSize(Buttonsize);
+
700 
+
701  string = QString("background-color: %1").arg(paintingArea->colorPicker.getFirstColor().name());
+
702  FirstColorButton->setStyleSheet(string);
+
703  string = QString("background-color: %1").arg(paintingArea->colorPicker.getSecondColor().name());
+
704  SecondColorButton->setStyleSheet(string);
+
705 }
-
void createCircleTool()
-
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
The addLayer adds a layer to the current project/ painting area.
-
void createRectangleTool()
-
bool open(const QString &fileName)
The open method is used for loading a picture into the current layer.
-
void setLayerToActive(int index)
The setLayerToActive method marks a specific layer as active.
-
void floodFill(int r, int g, int b, int a)
The floodFill method fills a the active layer with a given color.
-
bool save(const QString &fileName, const char *fileFormat)
The save method is used for exporting the current project as one picture.
-
void createPlainTool()
-
IntelliPhotoGui()
The IntelliPhotoGui method is the constructor and is used to create a new instance of the main progra...
-
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:36
-
void deleteLayer(int index)
The deleteLayer method removes a layer at a given index.
-
void createPenTool()
-
void createLineTool()
-
void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
-
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
-
void colorPickerSwitchColor()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
+
void createCircleTool()
+
IntelliImage * getImageOfActiveLayer()
+
void createRectangleTool()
+
void setLineWidth()
+
bool save(const QString &filePath, const char *fileFormat)
The save method is used for exporting the current project as one picture.
+
void setLayerAlpha(int idx, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
+
void setLayerActive(int idx)
The setLayerToActive method marks a specific layer as active.
+
void floodFill(int r, int g, int b, int a)
The floodFill method fills a the active layer with a given color.
+
QColor getSecondColor()
A function to read the secondary selected color.
+
void deleteLayer(int idx)
The deleteLayer method removes a layer at a given idx.
+
void createPlainTool()
+
IntelliPhotoGui()
The IntelliPhotoGui method is the constructor and is used to create a new instance of the main progra...
+
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:37
+
void createPenTool()
+
void createLineTool()
+
void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
+
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
-
void closeEvent(QCloseEvent *event) override
-
void createPolygonTool()
-
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
+
int getNumberOfActiveLayer()
+
void closeEvent(QCloseEvent *event) override
+
virtual QImage getImageData()
getImageData returns the data of the current image.
+
bool open(const QString &filePath)
The open method is used for loading a picture into the current layer.
+
void createPolygonTool()
+
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
+
IntelliColorPicker colorPicker
Definition: PaintingArea.h:175
-
void createFloodFillTool()
-
void slotActivateLayer(int a)
The slotActivateLayer method handles the event of selecting one layer as active.
-
void setAlphaOfLayer(int index, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
-
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
+
QColor getFirstColor()
A function to read the primary selected color.
+
void createFloodFillTool()
+
void UpdateGui()
+
IntelliToolsettings Toolsettings
Definition: PaintingArea.h:174
+
void colorPickerSwapColors()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
+
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
+
void setInnerAlpha()
+
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)
The addLayer adds a layer to the current project/ painting area.
-
#include <QList>
+
#include <QtWidgets>
+#include <QPixmap>
+#include <QList>
#include <QMainWindow>
#include <QGridLayout>
#include <QPushButton>
#include <QTextEdit>
#include <QLabel>
#include <QLineEdit>
-
-Include dependency graph for IntelliPhotoGui.h:
-
-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
-

Go to the source code of this file.

diff --git a/docs/html/_intelli_photo_gui_8h__dep__incl.dot b/docs/html/_intelli_photo_gui_8h__dep__incl.dot index 981de5d..2dae499 100644 --- a/docs/html/_intelli_photo_gui_8h__dep__incl.dot +++ b/docs/html/_intelli_photo_gui_8h__dep__incl.dot @@ -7,5 +7,26 @@ digraph "intelliphoto/src/GUI/IntelliPhotoGui.h" Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 [label="intelliphoto/src/GUI\l/IntelliPhotoGui.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_photo_gui_8cpp.html",tooltip=" "]; Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node3 [label="intelliphoto/src/main.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$main_8cpp.html",tooltip=" "]; + Node3 [label="intelliphoto/src/Layer\l/PaintingArea.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_painting_area_8h.html",tooltip=" "]; + Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="intelliphoto/src/Layer\l/PaintingArea.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_painting_area_8cpp.html",tooltip=" "]; + Node3 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="intelliphoto/src/Tool\l/IntelliTool.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8cpp.html",tooltip=" "]; + Node3 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="intelliphoto/src/Tool\l/IntelliToolCircle.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_circle_8cpp.html",tooltip=" "]; + Node3 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 [label="intelliphoto/src/Tool\l/IntelliToolFloodFill.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_flood_fill_8cpp.html",tooltip=" "]; + Node3 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="intelliphoto/src/Tool\l/IntelliToolLine.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_line_8cpp.html",tooltip=" "]; + Node3 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="intelliphoto/src/Tool\l/IntelliToolPen.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_pen_8cpp.html",tooltip=" "]; + Node3 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="intelliphoto/src/Tool\l/IntelliToolPlain.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_plain_8cpp.html",tooltip=" "]; + Node3 -> Node11 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="intelliphoto/src/Tool\l/IntelliToolPolygon.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_polygon_8cpp.html",tooltip=" "]; + Node3 -> Node12 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="intelliphoto/src/Tool\l/IntelliToolRectangle.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_rectangle_8cpp.html",tooltip=" "]; + Node1 -> Node13 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="intelliphoto/src/main.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$main_8cpp.html",tooltip=" "]; } diff --git a/docs/html/_intelli_photo_gui_8h__incl.dot b/docs/html/_intelli_photo_gui_8h__incl.dot index 12ec3a9..127439f 100644 --- a/docs/html/_intelli_photo_gui_8h__incl.dot +++ b/docs/html/_intelli_photo_gui_8h__incl.dot @@ -5,17 +5,21 @@ digraph "intelliphoto/src/GUI/IntelliPhotoGui.h" node [fontname="Helvetica",fontsize="10",shape=record]; Node1 [label="intelliphoto/src/GUI\l/IntelliPhotoGui.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="QList",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node2 [label="QtWidgets",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node3 [label="QMainWindow",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node3 [label="QPixmap",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="QGridLayout",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node4 [label="QList",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="QPushButton",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node5 [label="QMainWindow",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="QTextEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node6 [label="QGridLayout",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="QLabel",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 [label="QPushButton",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="QLineEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node8 [label="QTextEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="QLabel",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="QLineEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; } diff --git a/docs/html/_intelli_photo_gui_8h_source.html b/docs/html/_intelli_photo_gui_8h_source.html index 73cc16d..2646100 100644 --- a/docs/html/_intelli_photo_gui_8h_source.html +++ b/docs/html/_intelli_photo_gui_8h_source.html @@ -93,146 +93,180 @@ $(document).ready(function(){initNavTree('_intelli_photo_gui_8h_source.html','') Go to the documentation of this file.
1 #ifndef IntelliPhotoGui_H
2 #define IntelliPhotoGui_H
3 
-
4 #include <QList>
-
5 #include <QMainWindow>
-
6 #include <QGridLayout>
-
7 #include <QPushButton>
-
8 #include <QTextEdit>
-
9 #include <QLabel>
-
10 #include <QLineEdit>
-
11 
-
12 // PaintingArea used to paint the image
-
13 class PaintingArea;
-
14 
-
15 class IntelliTool;
+
4 #include <QtWidgets>
+
5 #include <QPixmap>
+
6 #include <QList>
+
7 #include <QMainWindow>
+
8 #include <QGridLayout>
+
9 #include <QPushButton>
+
10 #include <QTextEdit>
+
11 #include <QLabel>
+
12 #include <QLineEdit>
+
13 
+
14 // PaintingArea used to paint the image
+
15 class PaintingArea;
16 
-
17 class IntelliColorPicker;
+
17 class IntelliTool;
18 
-
22 class IntelliPhotoGui : public QMainWindow {
-
23 // Declares our class as a QObject which is the base class
-
24 // for all Qt objects
-
25 // QObjects handle events
-
26 Q_OBJECT
-
27 public:
- -
32 
-
33 protected:
-
34 // Function used to close an event
-
35 void closeEvent(QCloseEvent*event) override;
+
19 class IntelliColorPicker;
+
20 
+
24 class IntelliPhotoGui : public QMainWindow {
+
25 // Declares our class as a QObject which is the base class
+
26 // for all Qt objects
+
27 // QObjects handle events
+
28 Q_OBJECT
+
29 public:
+ +
34 
+
35 void UpdateGui();
36 
-
37 private slots:
-
38 // meta slots here (need further )
-
39 void slotOpen();
-
40 void slotSave();
-
41 
-
42 // layer slots here
-
43 void slotCreateNewLayer();
-
44 void slotDeleteLayer();
-
45 void slotClearActiveLayer();
-
46 void slotSetActiveLayer();
-
47 void slotSetActiveAlpha();
-
48 void slotPositionMoveUp();
-
49 void slotPositionMoveDown();
-
50 void slotPositionMoveLeft();
-
51 void slotPositionMoveRight();
-
52 void slotMoveLayerUp();
-
53 void slotMoveLayerDown();
-
54 
-
55 // color Picker slots here
-
56 void slotSetFirstColor();
-
57 void slotSetSecondColor();
-
58 void slotSwitchColor();
-
59 
-
60 // tool slots here
-
61 void slotCreatePenTool();
-
62 void slotCreatePlainTool();
-
63 void slotCreateLineTool();
-
64 void slotCreateRectangleTool();
-
65 void slotCreateCircleTool();
-
66 void slotCreatePolygonTool();
-
67 void slotCreateFloodFillTool();
-
68 
-
69 // slots for dialogs
-
70 void slotAboutDialog();
-
71 
-
72 private:
-
73 // Will tie user actions to functions
-
74 void createActions();
-
75 void createMenus();
-
76 // setup GUI elements
-
77 void createGui();
-
78 // set style of the GUI
-
79 void setIntelliStyle();
-
80 
-
81 // Will check if changes have occurred since last save
-
82 bool maybeSave();
-
83 // Opens the Save dialog and saves
-
84 bool saveFile(const QByteArray &fileFormat);
-
85 
-
86 // What we'll draw on
-
87 PaintingArea* paintingArea;
+
37 protected:
+
38 // Function used to close an event
+
39 void closeEvent(QCloseEvent*event) override;
+
40 
+
41 private slots:
+
42 // meta slots here (need further )
+
43 void slotOpen();
+
44 void slotSave();
+
45 
+
46 // layer slots here
+
47 void slotCreateNewLayer();
+
48 void slotDeleteLayer();
+
49 void slotClearActiveLayer();
+
50 void slotSetActiveLayer();
+
51 void slotSetActiveAlpha();
+
52 void slotPositionMoveUp();
+
53 void slotPositionMoveDown();
+
54 void slotPositionMoveLeft();
+
55 void slotPositionMoveRight();
+
56 void slotMoveLayerUp();
+
57 void slotMoveLayerDown();
+
58 
+
59 // color Picker slots here
+
60 void slotSetFirstColor();
+
61 void slotSetSecondColor();
+
62 void slotSwapColor();
+
63 
+
64 // tool slots here
+
65 void slotCreatePenTool();
+
66 void slotCreatePlainTool();
+
67 void slotCreateLineTool();
+
68 void slotCreateRectangleTool();
+
69 void slotCreateCircleTool();
+
70 void slotCreatePolygonTool();
+
71 void slotCreateFloodFillTool();
+
72 
+
73 // slots for dialogs
+
74 void slotAboutDialog();
+
75 
+
76 void slotEnterPressed();
+
77 
+
78 void slotResetTools();
+
79 
+
80 private:
+
81 // Will tie user actions to functions
+
82 void createActions();
+
83 void createMenus();
+
84 // setup GUI elements
+
85 void createGui();
+
86 // set style of the GUI
+
87 void setIntelliStyle();
88 
-
89 // The menu widgets
-
90 QMenu*saveAsMenu;
-
91 QMenu*fileMenu;
-
92 QMenu*optionMenu;
-
93 QMenu*layerMenu;
-
94 QMenu*colorMenu;
-
95 QMenu*toolMenu;
-
96 QMenu*helpMenu;
-
97 
-
98 // All the actions that can occur
-
99 // meta image actions (need further modularisation)
-
100 QAction*actionOpen;
-
101 QAction*actionExit;
-
102 
-
103 // color Picker actions
-
104 QAction*actionColorPickerFirstColor;
-
105 QAction*actionColorPickerSecondColor;
-
106 QAction*actionColorSwitch;
-
107 
-
108 // tool actions
-
109 QAction*actionCreatePenTool;
-
110 QAction*actionCreatePlainTool;
-
111 QAction*actionCreateLineTool;
-
112 QAction*actionCreateRectangleTool;
-
113 QAction*actionCreateCircleTool;
-
114 QAction*actionCreatePolygonTool;
-
115 QAction*actionCreateFloodFillTool;
-
116 
-
117 // dialog actions
-
118 QAction*actionAboutDialog;
-
119 QAction*actionAboutQtDialog;
-
120 
-
121 // layer change actions
-
122 QAction*actionCreateNewLayer;
-
123 QAction*actionDeleteLayer;
-
124 QAction* actionSetActiveLayer;
-
125 QAction* actionSetActiveAlpha;
-
126 QAction* actionMovePositionUp;
-
127 QAction* actionMovePositionDown;
-
128 QAction* actionMovePositionLeft;
-
129 QAction* actionMovePositionRight;
-
130 QAction* actionMoveLayerUp;
-
131 QAction* actionMoveLayerDown;
-
132 
-
133 // Actions tied to specific file formats
-
134 QList<QAction*> actionSaveAs;
+
89 // Will check if changes have occurred since last save
+
90 bool maybeSave();
+
91 // Opens the Save dialog and saves
+
92 bool saveFile(const QByteArray &fileFormat);
+
93 
+
94 void setDefaultToolValue();
+
95 
+
96 // What we'll draw on
+
97 PaintingArea* paintingArea;
+
98 
+
99 const QSize Buttonsize = QSize(70,70);
+
100 QPixmap p;
+
101 QPushButton* CircleButton;
+
102 QPushButton* FloodFillButton;
+
103 QPushButton* LineButton;
+
104 QPushButton* PenButton;
+
105 QPushButton* PlainButton;
+
106 QPushButton* PolygonButton;
+
107 QPushButton* RectangleButton;
+
108 QLabel* WidthLine;
+
109 QLabel* innerAlphaLine;
+
110 QLineEdit* EditLineWidth;
+
111 QLineEdit* EditLineInnerAlpha;
+
112 QIntValidator* ValidatorLineWidth;
+
113 QIntValidator* ValidatorInnerAlpha;
+
114 
+
115 QPushButton* FirstColorButton;
+
116 QPushButton* SecondColorButton;
+
117 QPushButton* SwitchColorButton;
+
118 
+
119 QLabel* ActiveLayerLine;
+
120 QPushButton* ActiveLayerImageButton;
+
121 
+
122 // The menu widgets
+
123 QMenu*saveAsMenu;
+
124 QMenu*fileMenu;
+
125 QMenu*optionMenu;
+
126 QMenu*layerMenu;
+
127 QMenu*colorMenu;
+
128 QMenu*toolMenu;
+
129 QMenu*helpMenu;
+
130 
+
131 // All the actions that can occur
+
132 // meta image actions (need further modularisation)
+
133 QAction*actionOpen;
+
134 QAction*actionExit;
135 
-
136 // main GUI elements
-
137 QWidget* centralGuiWidget;
-
138 QGridLayout*mainLayout;
-
139 };
+
136 // color Picker actions
+
137 QAction*actionColorPickerFirstColor;
+
138 QAction*actionColorPickerSecondColor;
+
139 QAction*actionColorSwap;
140 
-
141 #endif
+
141 // tool actions
+
142 QAction*actionCreatePenTool;
+
143 QAction*actionCreatePlainTool;
+
144 QAction*actionCreateLineTool;
+
145 QAction*actionCreateRectangleTool;
+
146 QAction*actionCreateCircleTool;
+
147 QAction*actionCreatePolygonTool;
+
148 QAction*actionCreateFloodFillTool;
+
149 
+
150 // dialog actions
+
151 QAction*actionAboutDialog;
+
152 QAction*actionAboutQtDialog;
+
153 
+
154 // layer change actions
+
155 QAction*actionCreateNewLayer;
+
156 QAction*actionDeleteLayer;
+
157 QAction* actionSetActiveLayer;
+
158 QAction* actionSetActiveAlpha;
+
159 QAction* actionMovePositionUp;
+
160 QAction* actionMovePositionDown;
+
161 QAction* actionMovePositionLeft;
+
162 QAction* actionMovePositionRight;
+
163 QAction* actionMoveLayerUp;
+
164 QAction* actionMoveLayerDown;
+
165 
+
166 // Actions tied to specific file formats
+
167 QList<QAction*> actionSaveAs;
+
168 
+
169 // main GUI elements
+
170 QWidget* centralGuiWidget;
+
171 QGridLayout* mainLayout;
+
172 };
+
173 
+
174 #endif
-
The IntelliPhotoGui class handles the graphical user interface for the intelliPhoto program.
-
IntelliPhotoGui()
The IntelliPhotoGui method is the constructor and is used to create a new instance of the main progra...
-
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:36
-
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
-
void closeEvent(QCloseEvent *event) override
+
The IntelliPhotoGui class handles the graphical user interface for the intelliPhoto program.
+
IntelliPhotoGui()
The IntelliPhotoGui method is the constructor and is used to create a new instance of the main progra...
+
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:37
+
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:14
+
void closeEvent(QCloseEvent *event) override
The IntelliColorPicker manages the selected colors for one whole project.
+
-Include dependency graph for IntelliRasterImage.cpp:
-
-
-

Go to the source code of this file.

diff --git a/docs/html/_intelli_raster_image_8cpp__incl.dot b/docs/html/_intelli_raster_image_8cpp__incl.dot index c093728..ca2ddaa 100644 --- a/docs/html/_intelli_raster_image_8cpp__incl.dot +++ b/docs/html/_intelli_raster_image_8cpp__incl.dot @@ -20,10 +20,16 @@ digraph "intelliphoto/src/Image/IntelliRasterImage.cpp" Node8 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node3 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node10 [label="QPainter",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node1 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node11 [label="QRect",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node3 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="IntelliHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; + Node10 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="IntelliHelper/IntelliRender\lSettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_render_settings_8h.html",tooltip=" "]; Node1 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 [label="QDebug",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node12 [label="QPainter",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="QRect",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 [label="QDebug",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; } diff --git a/docs/html/_intelli_raster_image_8cpp_source.html b/docs/html/_intelli_raster_image_8cpp_source.html index 44473a2..0ce5b69 100644 --- a/docs/html/_intelli_raster_image_8cpp_source.html +++ b/docs/html/_intelli_raster_image_8cpp_source.html @@ -95,57 +95,68 @@ $(document).ready(function(){initNavTree('_intelli_raster_image_8cpp_source.html
3 #include <QRect>
4 #include <QDebug>
5 
- -
7  : IntelliImage(weight, height){
-
8 
-
9 }
-
10 
- -
12 
-
13 }
-
14 
- -
16  IntelliRasterImage* raster = new IntelliRasterImage(imageData.width(), imageData.height());
-
17  raster->imageData.fill(Qt::transparent);
-
18  return raster;
-
19 }
-
20 
- -
22  // not used in raster image
-
23 }
-
24 
- -
26  return getDisplayable(imageData.size(), alpha);
-
27 }
-
28 
-
29 QImage IntelliRasterImage::getDisplayable(const QSize& displaySize, int alpha){
-
30  QImage copy = imageData;
-
31  for(int y = 0; y<copy.height(); y++) {
-
32  for(int x = 0; x<copy.width(); x++) {
-
33  QColor clr = copy.pixelColor(x,y);
-
34  clr.setAlpha(std::min(alpha, clr.alpha()));
-
35  copy.setPixelColor(x,y, clr);
-
36  }
-
37  }
-
38  return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
-
39 }
-
40 
-
41 void IntelliRasterImage::setPolygon(const std::vector<QPoint>& polygonData){
-
42  qDebug() << "Raster Image has no polygon data " << polygonData.size() <<"\n";
-
43  return;
-
44 }
+
6 IntelliRasterImage::IntelliRasterImage(int width, int height, bool fastRendererOn)
+
7  : IntelliImage(width, height, fastRendererOn){
+ +
9  this->fastRenderer = fastRendererOn;
+
10 }
+
11 
+ +
13 
+
14 }
+
15 
+ +
17  IntelliRasterImage* raster = new IntelliRasterImage(imageData.width(), imageData.height(), false);
+
18  raster->imageData.fill(Qt::transparent);
+ +
20  return raster;
+
21 }
+
22 
+ +
24  // not used in raster image
+
25 }
+
26 
+ +
28  return getDisplayable(imageData.size(), alpha);
+
29 }
+
30 
+
31 QImage IntelliRasterImage::getDisplayable(const QSize& displaySize, int alpha){
+
32  QImage copy = imageData;
+
33  if(fastRenderer) {
+
34  copy = copy.convertToFormat(QImage::Format_ARGB32);
+
35  }
+
36  for(int y = 0; y<copy.height(); y++) {
+
37  for(int x = 0; x<copy.width(); x++) {
+
38  QColor clr = copy.pixelColor(x,y);
+
39  clr.setAlpha(std::min(alpha, clr.alpha()));
+
40  copy.setPixelColor(x,y, clr);
+
41  }
+
42  }
+
43  if(fastRenderer) {
+
44  copy = copy.convertToFormat(QImage::Format_Indexed8);
+
45  }
+
46  return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
+
47 }
+
48 
+
49 void IntelliRasterImage::setPolygon(const std::vector<QPoint>& polygonData){
+
50  qDebug() << "Raster Image has no polygon data " << polygonData.size() <<"\n";
+
51  return;
+
52 }
-
virtual ~IntelliRasterImage() override
An Destructor.
+
virtual ~IntelliRasterImage() override
An Destructor.
+
IntelliRasterImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliRasterImage. Given the Image dimensions.
-
virtual QImage getDisplayable(const QSize &displaySize, int alpha) override
A function returning the displayable ImageData in a requested transparence and size.
-
QImage imageData
The underlying image data.
Definition: IntelliImage.h:32
-
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:24
-
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
-
virtual void calculateVisiblity() override
A function that calculates the visibility of the image if a polygon is given. [does nothing in Raster...
-
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
An abstract function that sets the data of the visible Polygon, if needed.
-
IntelliRasterImage(int weight, int height)
The Construcor of the IntelliRasterImage. Given the Image dimensions.
-
The IntelliRasterImage manages a Rasterimage.
+
virtual QImage getDisplayable(const QSize &displaySize, int alpha) override
A function returning the displayable ImageData in a requested transparence and size.
+
ImageType TypeOfImage
The Type, an Image is.
Definition: IntelliImage.h:42
+
bool fastRenderer
fastRenderer is the flag that represents the usage of 8bit pictures.
Definition: IntelliImage.h:47
+ +
QImage imageData
The underlying image data.
Definition: IntelliImage.h:37
+
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:19
+
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
+
virtual void calculateVisiblity() override
A function that calculates the visibility of the image if a polygon is given. [does nothing in RASTER...
+
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
An abstract function that sets the data of the visible Polygon, if needed.
+
The IntelliRasterImage manages a RASTERIMAGE.
-Include dependency graph for IntelliRasterImage.h:
-
-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
-

Go to the source code of this file.

- +

Classes

class  IntelliRasterImage
 The IntelliRasterImage manages a Rasterimage. More...
 The IntelliRasterImage manages a RASTERIMAGE. More...
 
diff --git a/docs/html/_intelli_raster_image_8h__incl.dot b/docs/html/_intelli_raster_image_8h__incl.dot index 41ae445..4bb933b 100644 --- a/docs/html/_intelli_raster_image_8h__incl.dot +++ b/docs/html/_intelli_raster_image_8h__incl.dot @@ -18,4 +18,10 @@ digraph "intelliphoto/src/Image/IntelliRasterImage.h" Node7 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node8 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node2 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="IntelliHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; + Node9 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="IntelliHelper/IntelliRender\lSettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_render_settings_8h.html",tooltip=" "]; } diff --git a/docs/html/_intelli_raster_image_8h_source.html b/docs/html/_intelli_raster_image_8h_source.html index 974c110..768a7de 100644 --- a/docs/html/_intelli_raster_image_8h_source.html +++ b/docs/html/_intelli_raster_image_8h_source.html @@ -100,32 +100,32 @@ $(document).ready(function(){initNavTree('_intelli_raster_image_8h_source.html',
11 protected:
15 virtual void calculateVisiblity() override;
16 public:
-
22 IntelliRasterImage(int weight, int height);
-
23 
-
27 virtual ~IntelliRasterImage() override;
-
28 
-
35 virtual QImage getDisplayable(const QSize& displaySize,int alpha) override;
-
36 
-
42 virtual QImage getDisplayable(int alpha=255) override;
-
43 
-
48 virtual IntelliImage* getDeepCopy() override;
-
49 
-
54 virtual void setPolygon(const std::vector<QPoint>& polygonData) override;
-
55 };
-
56 
-
57 #endif
+
23 IntelliRasterImage(int width, int height, bool fastRendererOn);
+
24 
+
28 virtual ~IntelliRasterImage() override;
+
29 
+
36 virtual QImage getDisplayable(const QSize& displaySize,int alpha) override;
+
37 
+
43 virtual QImage getDisplayable(int alpha=255) override;
+
44 
+
49 virtual IntelliImage* getDeepCopy() override;
+
50 
+
55 virtual void setPolygon(const std::vector<QPoint>& polygonData) override;
+
56 };
+
57 
+
58 #endif
-
virtual ~IntelliRasterImage() override
An Destructor.
-
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
-
virtual QImage getDisplayable(const QSize &displaySize, int alpha) override
A function returning the displayable ImageData in a requested transparence and size.
-
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:24
-
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
-
virtual void calculateVisiblity() override
A function that calculates the visibility of the image if a polygon is given. [does nothing in Raster...
-
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
An abstract function that sets the data of the visible Polygon, if needed.
-
IntelliRasterImage(int weight, int height)
The Construcor of the IntelliRasterImage. Given the Image dimensions.
-
The IntelliRasterImage manages a Rasterimage.
+
virtual ~IntelliRasterImage() override
An Destructor.
+
IntelliRasterImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliRasterImage. Given the Image dimensions.
+
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:14
+
virtual QImage getDisplayable(const QSize &displaySize, int alpha) override
A function returning the displayable ImageData in a requested transparence and size.
+
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:19
+
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
+
virtual void calculateVisiblity() override
A function that calculates the visibility of the image if a polygon is given. [does nothing in RASTER...
+
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
An abstract function that sets the data of the visible Polygon, if needed.
+
The IntelliRasterImage manages a RASTERIMAGE.
#include "Image/IntelliShapedImage.h"
-#include "IntelliHelper/IntelliHelper.h"
+#include "IntelliHelper/IntelliTriangulation.h"
#include <QPainter>
#include <QRect>
#include <QDebug>
-
-Include dependency graph for IntelliShapedImage.cpp:
-
-
-

Go to the source code of this file.

diff --git a/docs/html/_intelli_shaped_image_8cpp__incl.dot b/docs/html/_intelli_shaped_image_8cpp__incl.dot index 63a34cc..094d457 100644 --- a/docs/html/_intelli_shaped_image_8cpp__incl.dot +++ b/docs/html/_intelli_shaped_image_8cpp__incl.dot @@ -22,16 +22,18 @@ digraph "intelliphoto/src/Image/IntelliShapedImage.cpp" Node9 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node4 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node10 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node2 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node11 [label="IntelliHelper/IntelliHelper.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_helper_8h.html",tooltip=" "]; + Node4 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="IntelliHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; Node11 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node11 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="IntelliHelper/IntelliRender\lSettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_render_settings_8h.html",tooltip=" "]; + Node2 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node1 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 [label="QPainter",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node13 [label="QRect",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node13 [label="QPainter",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node14 [label="QDebug",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node14 [label="QRect",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node15 [label="QDebug",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; } diff --git a/docs/html/_intelli_shaped_image_8cpp_source.html b/docs/html/_intelli_shaped_image_8cpp_source.html index d464d5f..7e34b9c 100644 --- a/docs/html/_intelli_shaped_image_8cpp_source.html +++ b/docs/html/_intelli_shaped_image_8cpp_source.html @@ -91,99 +91,121 @@ $(document).ready(function(){initNavTree('_intelli_shaped_image_8cpp_source.html
Go to the documentation of this file.
- +
3 #include <QPainter>
4 #include <QRect>
5 #include <QDebug>
6 
- -
8  : IntelliRasterImage(weight, height){
-
9 }
-
10 
- +
7 IntelliShapedImage::IntelliShapedImage(int width, int height, bool fastRendererOn)
+
8  : IntelliRasterImage(width, height, fastRendererOn){
+ +
10  this->fastRenderer = fastRendererOn;
+
11 }
12 
-
13 }
+
14 
- -
16  return getDisplayable(imageData.size(),alpha);
-
17 }
-
18 
- -
20  IntelliShapedImage* shaped = new IntelliShapedImage(imageData.width(), imageData.height());
-
21  shaped->setPolygon(this->polygonData);
-
22  shaped->imageData.fill(Qt::transparent);
-
23  return shaped;
-
24 }
-
25 
-
26 void IntelliShapedImage::calculateVisiblity(){
-
27  if(polygonData.size()<=2) {
-
28  QColor clr;
-
29  for(int y=0; y<imageData.height(); y++) {
-
30  for(int x=0; x<imageData.width(); x++) {
-
31  clr = imageData.pixel(x,y);
-
32  clr.setAlpha(255);
-
33  imageData.setPixelColor(x,y,clr);
-
34  }
-
35  }
-
36  return;
-
37  }
-
38  QColor clr;
-
39  for(int y=0; y<imageData.height(); y++) {
-
40  for(int x=0; x<imageData.width(); x++) {
-
41  QPoint ptr(x,y);
-
42  clr = imageData.pixelColor(x,y);
-
43  bool isInPolygon = IntelliHelper::isInPolygon(triangles, ptr);
-
44  if(isInPolygon) {
-
45  clr.setAlpha(std::min(255, clr.alpha()));
-
46  }else{
-
47  clr.setAlpha(0);
-
48  }
-
49  imageData.setPixelColor(x,y,clr);
-
50  }
-
51  }
-
52 }
-
53 
-
54 QImage IntelliShapedImage::getDisplayable(const QSize& displaySize, int alpha){
-
55  QImage copy = imageData;
-
56  for(int y = 0; y<copy.height(); y++) {
-
57  for(int x = 0; x<copy.width(); x++) {
-
58  QColor clr = copy.pixelColor(x,y);
-
59  clr.setAlpha(std::min(alpha,clr.alpha()));
-
60  copy.setPixelColor(x,y, clr);
-
61  }
-
62  }
-
63  return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
-
64 }
-
65 
-
66 void IntelliShapedImage::setPolygon(const std::vector<QPoint>& polygonData){
-
67  if(polygonData.size()<3) {
-
68  this->polygonData.clear();
-
69  }else{
-
70  this->polygonData.clear();
-
71  for(auto element:polygonData) {
-
72  this->polygonData.push_back(QPoint(element.x(), element.y()));
-
73  }
- -
75  }
-
76  calculateVisiblity();
-
77  return;
-
78 }
+
15 }
+
16 
+ +
18  return getDisplayable(imageData.size(),alpha);
+
19 }
+
20 
+ +
22  IntelliShapedImage* shaped = new IntelliShapedImage(imageData.width(), imageData.height(), false);
+
23  shaped->setPolygon(this->polygonData);
+
24  shaped->imageData.fill(Qt::transparent);
+ +
26  return shaped;
+
27 }
+
28 
+
29 void IntelliShapedImage::calculateVisiblity(){
+
30  if(fastRenderer) {
+
31  this->imageData = imageData.convertToFormat(QImage::Format_ARGB32);
+
32  }
+
33 
+
34  if(polygonData.size()<=2) {
+
35  QColor clr;
+
36  for(int y=0; y<imageData.height(); y++) {
+
37  for(int x=0; x<imageData.width(); x++) {
+
38  clr = imageData.pixel(x,y);
+
39  clr.setAlpha(255);
+
40  imageData.setPixelColor(x,y,clr);
+
41  }
+
42  }
+
43  if(fastRenderer) {
+
44  this->imageData = this->imageData.convertToFormat(QImage::Format_Indexed8);
+
45  }
+
46  return;
+
47  }
+
48  QColor clr;
+
49  for(int y=0; y<imageData.height(); y++) {
+
50  for(int x=0; x<imageData.width(); x++) {
+
51  QPoint ptr(x,y);
+
52  clr = imageData.pixelColor(x,y);
+
53  bool isInPolygon = IntelliTriangulation::isInPolygon(triangles, ptr);
+
54  if(isInPolygon) {
+
55  clr.setAlpha(std::min(255, clr.alpha()));
+
56  }else{
+
57  clr.setAlpha(0);
+
58  }
+
59  imageData.setPixelColor(x,y,clr);
+
60  }
+
61  }
+
62  if(fastRenderer) {
+
63  this->imageData = this->imageData.convertToFormat(QImage::Format_Indexed8);
+
64  }
+
65 }
+
66 
+
67 QImage IntelliShapedImage::getDisplayable(const QSize& displaySize, int alpha){
+
68  QImage copy = imageData;
+
69  if(fastRenderer) {
+
70  copy = copy.convertToFormat(QImage::Format_ARGB32);
+
71  }
+
72  for(int y = 0; y<copy.height(); y++) {
+
73  for(int x = 0; x<copy.width(); x++) {
+
74  QColor clr = copy.pixelColor(x,y);
+
75  clr.setAlpha(std::min(alpha,clr.alpha()));
+
76  copy.setPixelColor(x,y, clr);
+
77  }
+
78  }
+
79  if(fastRenderer) {
+
80  copy = copy.convertToFormat(QImage::Format_Indexed8);
+
81  }
+
82  return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
+
83 }
+
84 
+
85 void IntelliShapedImage::setPolygon(const std::vector<QPoint>& polygonData){
+
86  if(polygonData.size()<3) {
+
87  this->polygonData.clear();
+
88  }else{
+
89  this->polygonData.clear();
+
90  for(auto element:polygonData) {
+
91  this->polygonData.push_back(QPoint(element.x(), element.y()));
+
92  }
+ +
94  }
+
95  calculateVisiblity();
+
96  return;
+
97 }
-
virtual QImage getDisplayable(const QSize &displaySize, int alpha=255) override
A function returning the displayable ImageData in a requested transparence and size.
+
virtual QImage getDisplayable(const QSize &displaySize, int alpha=255) override
A function returning the displayable ImageData in a requested transparence and size.
-
-
The IntelliShapedImage manages a Shapedimage.
-
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
-
bool isInPolygon(std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
-
std::vector< Triangle > calculateTriangles(std::vector< QPoint > polyPoints)
A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ...
-
QImage imageData
The underlying image data.
Definition: IntelliImage.h:32
-
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:24
-
std::vector< QPoint > polygonData
The Vertices of The Polygon. Needs to be a planar Polygon.
-
IntelliShapedImage(int weight, int height)
The Construcor of the IntelliShapedImage. Given the Image dimensions.
-
virtual ~IntelliShapedImage() override
An Destructor.
-
The IntelliRasterImage manages a Rasterimage.
-
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
A function that sets the data of the visible Polygon.
+
std::vector< Triangle > calculateTriangles(std::vector< QPoint > polyPoints)
A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ...
+
The IntelliShapedImage manages a Shapedimage.
+
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
+
+
bool isInPolygon(std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
+
ImageType TypeOfImage
The Type, an Image is.
Definition: IntelliImage.h:42
+
bool fastRenderer
fastRenderer is the flag that represents the usage of 8bit pictures.
Definition: IntelliImage.h:47
+
QImage imageData
The underlying image data.
Definition: IntelliImage.h:37
+
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:19
+
std::vector< QPoint > polygonData
The Vertices of The Polygon. Needs to be a planar Polygon.
+
IntelliShapedImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliShapedImage. Given the Image dimensions.
+
virtual ~IntelliShapedImage() override
An Destructor.
+
The IntelliRasterImage manages a RASTERIMAGE.
+
+
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
A function that sets the data of the visible Polygon.
diff --git a/docs/html/_intelli_tool_line_8h__incl.dot b/docs/html/_intelli_tool_line_8h__incl.dot index 14a5999..1cc4f4d 100644 --- a/docs/html/_intelli_tool_line_8h__incl.dot +++ b/docs/html/_intelli_tool_line_8h__incl.dot @@ -15,6 +15,8 @@ digraph "intelliphoto/src/Tool/IntelliToolLine.h" Node3 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node6 [label="QColorDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 [label="IntelliHelper/IntelliToolsettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_toolsettings_8h.html",tooltip=" "]; + Node2 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; } diff --git a/docs/html/_intelli_tool_line_8h_source.html b/docs/html/_intelli_tool_line_8h_source.html index 4a95c19..7217625 100644 --- a/docs/html/_intelli_tool_line_8h_source.html +++ b/docs/html/_intelli_tool_line_8h_source.html @@ -96,57 +96,48 @@ $(document).ready(function(){initNavTree('_intelli_tool_line_8h_source.html','')
4 
5 #include "QPoint"
6 
-
10 enum class LineStyle {
-
11  SOLID_LINE,
-
12  DOTTED_LINE
-
13 };
-
14 
-
18 class IntelliToolLine : public IntelliTool {
-
22 QPoint start;
-
23 
-
27 int lineWidth;
-
28 
-
32 LineStyle lineStyle;
-
33 public:
-
34 
-
40 IntelliToolLine(PaintingArea* Area, IntelliColorPicker* colorPicker);
-
41 
-
45 virtual ~IntelliToolLine() override;
-
46 
-
52 virtual void onMouseRightPressed(int x, int y) override;
-
53 
-
59 virtual void onMouseRightReleased(int x, int y) override;
-
60 
-
66 virtual void onMouseLeftPressed(int x, int y) override;
-
67 
-
73 virtual void onMouseLeftReleased(int x, int y) override;
-
74 
-
79 virtual void onWheelScrolled(int value) override;
-
80 
-
86 virtual void onMouseMoved(int x, int y) override;
-
87 };
-
88 
-
89 #endif // INTELLITOOLLINE_H
+
10 class IntelliToolLine : public IntelliTool {
+
14 QPoint lineStartingPoint;
+
15 
+
16 public:
+
17 
+
23 IntelliToolLine(PaintingArea* Area, IntelliColorPicker* colorPicker, IntelliToolsettings* Toolsettings);
+
24 
+
28 virtual ~IntelliToolLine() override;
+
29 
+
35 virtual void onMouseRightPressed(int x, int y) override;
+
36 
+
42 virtual void onMouseRightReleased(int x, int y) override;
+
43 
+
49 virtual void onMouseLeftPressed(int x, int y) override;
+
50 
+
56 virtual void onMouseLeftReleased(int x, int y) override;
+
57 
+
62 virtual void onWheelScrolled(int value) override;
+
63 
+
69 virtual void onMouseMoved(int x, int y) override;
+
70 };
+
71 
+
72 #endif // INTELLITOOLLINE_H
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:38
-
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:51
-
LineStyle
The LineStyle enum classifing all ways of drawing a line.
-
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po...
-
virtual void onWheelScrolled(int value) override
A function managing the scroll event. Changing the lineWidth relative to value.
-
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
-
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:33
-
IntelliToolLine(PaintingArea *Area, IntelliColorPicker *colorPicker)
A constructor setting the general paintingArea and colorPicker. And reading in the lineWidth and line...
-
-
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:36
-
virtual ~IntelliToolLine() override
An abstract Destructor.
-
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse.
-
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Clearing the canvas.
-
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:53
+
IntelliToolLine(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker. And reading in the lineWidth and line...
+
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po...
+
virtual void onWheelScrolled(int value) override
A function managing the scroll event. Changing the lineWidth relative to value.
+
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
+
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:44
+
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:37
+
virtual ~IntelliToolLine() override
An abstract Destructor.
+
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse.
+
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Clearing the canvas.
+
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:14
The IntelliColorPicker manages the selected colors for one whole project.
-
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Sets the starting point of the line.
-
The IntelliToolFloodFill class represents a tool to draw a line.
+
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Sets the starting point of the line.
+
+
The IntelliToolFloodFill class represents a tool to draw a line.
-Include dependency graph for IntelliToolPen.cpp:
-
-
-

Go to the source code of this file.

diff --git a/docs/html/_intelli_tool_pen_8cpp__incl.dot b/docs/html/_intelli_tool_pen_8cpp__incl.dot index 5ddb347..3c494b2 100644 --- a/docs/html/_intelli_tool_pen_8cpp__incl.dot +++ b/docs/html/_intelli_tool_pen_8cpp__incl.dot @@ -17,44 +17,67 @@ digraph "intelliphoto/src/Tool/IntelliToolPen.cpp" Node4 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node7 [label="QColorDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node3 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node8 [label="IntelliHelper/IntelliToolsettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_toolsettings_8h.html",tooltip=" "]; + Node3 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 [label="Layer/PaintingArea.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_painting_area_8h.html",tooltip=" "]; - Node9 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node10 [label="QImage",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node9 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node11 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node9 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 [label="QList",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node9 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node13 [label="Image/IntelliImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_image_8h.html",tooltip=" "]; - Node13 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node13 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node13 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node13 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node14 [label="QSize",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node13 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node13 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node15 [label="Image/IntelliRasterImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8h.html",tooltip=" "]; - Node15 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node16 [label="Image/IntelliShapedImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8h.html",tooltip=" "]; - Node16 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node16 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node16 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node17 [label="IntelliHelper/IntelliHelper.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_helper_8h.html",tooltip=" "]; - Node17 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node17 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node18 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node18 [label="QDebug",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="Layer/PaintingArea.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_painting_area_8h.html",tooltip=" "]; + Node10 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="QImage",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node10 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node10 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="QList",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node10 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 [label="GUI/IntelliPhotoGui.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_photo_gui_8h.html",tooltip=" "]; + Node14 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node15 [label="QtWidgets",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node14 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 [label="QPixmap",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node14 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node17 [label="QMainWindow",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node14 -> Node18 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node18 [label="QGridLayout",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node14 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node19 [label="QPushButton",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node14 -> Node20 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 [label="QTextEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node14 -> Node21 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node21 [label="QLabel",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node14 -> Node22 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node22 [label="QLineEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node10 -> Node23 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node23 [label="Image/IntelliImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_image_8h.html",tooltip=" "]; + Node23 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node23 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node23 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node23 -> Node24 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node24 [label="QSize",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node23 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node23 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node23 -> Node25 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node25 [label="IntelliHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; + Node25 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node25 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node23 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node26 [label="IntelliHelper/IntelliRender\lSettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_render_settings_8h.html",tooltip=" "]; + Node10 -> Node27 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node27 [label="Image/IntelliRasterImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8h.html",tooltip=" "]; + Node27 -> Node23 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 -> Node28 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node28 [label="Image/IntelliShapedImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8h.html",tooltip=" "]; + Node28 -> Node27 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node28 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node29 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node29 [label="QDebug",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node19 [label="QInputDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node30 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node30 [label="QInputDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; } diff --git a/docs/html/_intelli_tool_pen_8cpp_source.html b/docs/html/_intelli_tool_pen_8cpp_source.html index cdeaa43..c75e60f 100644 --- a/docs/html/_intelli_tool_pen_8cpp_source.html +++ b/docs/html/_intelli_tool_pen_8cpp_source.html @@ -96,13 +96,13 @@ $(document).ready(function(){initNavTree('_intelli_tool_pen_8cpp_source.html',''
4 #include "QColorDialog"
5 #include "QInputDialog"
6 
-
7 IntelliToolPen::IntelliToolPen(PaintingArea* Area, IntelliColorPicker* colorPicker)
-
8  : IntelliTool(Area, colorPicker){
-
9  this->penWidth = QInputDialog::getInt(nullptr, "Pen width", "Width:", 1,0, 50, 1);
+
7 IntelliToolPen::IntelliToolPen(PaintingArea* Area, IntelliColorPicker* colorPicker, IntelliToolsettings* Toolsettings)
+
8  : IntelliTool(Area, colorPicker, Toolsettings){
+
9  this->ActiveType = Tooltype::PEN;
10 }
11 
12 IntelliToolPen::~IntelliToolPen(){
-
13 
+
13  IntelliTool::onMouseRightPressed(0,0);
14 }
15 
16 void IntelliToolPen::onMouseRightPressed(int x, int y){
@@ -115,8 +115,8 @@ $(document).ready(function(){initNavTree('_intelli_tool_pen_8cpp_source.html',''
23 
24 void IntelliToolPen::onMouseLeftPressed(int x, int y){
25  IntelliTool::onMouseLeftPressed(x,y);
-
26  this->point=QPoint(x,y);
-
27  this->Canvas->image->drawPixel(point, colorPicker->getFirstColor());
+
26  this->previousPoint=QPoint(x,y);
+
27  this->Canvas->image->drawPoint(previousPoint, colorPicker->getFirstColor(), Toolsettings->getLineWidth());
28  Canvas->image->calculateVisiblity();
29 }
30 
@@ -125,50 +125,53 @@ $(document).ready(function(){initNavTree('_intelli_tool_pen_8cpp_source.html',''
33 }
34 
35 void IntelliToolPen::onMouseMoved(int x, int y){
-
36  if(this->drawing) {
+
36  if(this->isDrawing) {
37  QPoint newPoint(x,y);
-
38  this->Canvas->image->drawLine(this->point, newPoint, colorPicker->getFirstColor(), penWidth);
-
39  this->point=newPoint;
+
38  this->Canvas->image->drawLine(this->previousPoint, newPoint, colorPicker->getFirstColor(), Toolsettings->getLineWidth());
+
39  this->previousPoint=newPoint;
40  }
41  IntelliTool::onMouseMoved(x,y);
42 }
43 
44 void IntelliToolPen::onWheelScrolled(int value){
45  IntelliTool::onWheelScrolled(value);
-
46  this->penWidth+=value;
-
47  if(this->penWidth<=0) {
-
48  this->penWidth=1;
-
49  }
-
50 }
+
46  Toolsettings->setLineWidth(Toolsettings->getLineWidth()+value);
+
47 }
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:14
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:32
-
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:38
-
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws A Line between two given Points in a given color.
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:25
+
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
+
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:51
+
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws A Line between two given Points in a given color.
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
+
IntelliToolsettings * Toolsettings
Definition: IntelliTool.h:53
+
void setLineWidth()
virtual ~IntelliToolPen() override
A Destructor.
-
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. To draw the line.
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Resetting the current draw.
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
-
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:36
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:21
-
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:48
+
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:37
+
bool isDrawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:68
+
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
+
LayerObject * Canvas
A pointer to the drawing canvas of the tool, work on this.
Definition: IntelliTool.h:63
virtual void onWheelScrolled(int value) override
A function managing the scroll event. Changing penWidth relativ to value.
-
bool drawing
A flag checking if the user is currently drawing or not.
Definition: IntelliTool.h:53
-
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
+
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:14
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse. Merging the drawing to the active layer.
QColor getFirstColor()
A function to read the primary selected color.
+
IntelliToolPen(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
A constructor setting the general paintingArea and colorPicker. Reading the penWidth.
+
Tooltype ActiveType
Definition: IntelliTool.h:46
The IntelliColorPicker manages the selected colors for one whole project.
-
IntelliImage * image
Definition: PaintingArea.h:25
+
IntelliImage * image
Definition: PaintingArea.h:26
+
int getLineWidth()
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:41
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:42
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Starting the drawing procedure.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:46
-
IntelliToolPen(PaintingArea *Area, IntelliColorPicker *colorPicker)
A constructor setting the general paintingArea and colorPicker. Reading the penWidth.
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:47
+
+ + + + + + + + +
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
IntelliToolsettings.cpp File Reference
+
+
+
#include "IntelliToolsettings.h"
+#include <QInputDialog>
+
+

Go to the source code of this file.

+
+
+ + + + diff --git a/docs/html/_intelli_toolsettings_8cpp__incl.dot b/docs/html/_intelli_toolsettings_8cpp__incl.dot new file mode 100644 index 0000000..9458335 --- /dev/null +++ b/docs/html/_intelli_toolsettings_8cpp__incl.dot @@ -0,0 +1,11 @@ +digraph "intelliphoto/src/IntelliHelper/IntelliToolsettings.cpp" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + Node1 [label="intelliphoto/src/Intelli\lHelper/IntelliToolsettings.cpp",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolsettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_toolsettings_8h.html",tooltip=" "]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="QInputDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; +} diff --git a/docs/html/_intelli_toolsettings_8cpp_source.html b/docs/html/_intelli_toolsettings_8cpp_source.html new file mode 100644 index 0000000..7591999 --- /dev/null +++ b/docs/html/_intelli_toolsettings_8cpp_source.html @@ -0,0 +1,168 @@ + + + + + + + +IntelliPhoto: intelliphoto/src/IntelliHelper/IntelliToolsettings.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
IntelliToolsettings.cpp
+
+
+Go to the documentation of this file.
1 #include "IntelliToolsettings.h"
+
2 #include <QInputDialog>
+
3 
+ +
5 {
+
6  lineWidth = 1;
+
7  innerAlpha = 255;
+
8  Linestyle = LineStyle::SOLID_LINE;
+
9 }
+
10 
+ +
12 
+
13 }
+
14 
+ +
16  return lineWidth;
+
17 }
+
18 
+ +
20  lineWidth = QInputDialog::getInt(nullptr,"Line Width Input", "Width",1,1,50,1);
+
21 }
+
22 
+ +
24  if(LineWidth < 1) {
+
25  LineWidth = 1;
+
26  }
+
27  else if(LineWidth > 50) {
+
28  LineWidth = 50;
+
29  }
+
30  lineWidth = LineWidth;
+
31 }
+
32 
+ +
34  return this->innerAlpha;
+
35 }
+
36 
+ +
38  this->innerAlpha = QInputDialog::getInt(nullptr,"Inner Aplha Input", "Value",0,0,255,1);
+
39 }
+
40 
+ +
42  if(innerAlpha < 0) {
+
43  innerAlpha = 0;
+
44  }
+
45  else if(innerAlpha > 255) {
+
46  innerAlpha = 255;
+
47  }
+
48  this->innerAlpha = innerAlpha;
+
49 }
+
50 
+ +
52  return Linestyle;
+
53 }
+
+
+
void setLineWidth()
+
LineStyle getLinestyle()
+
+
+
LineStyle
The LineStyle enum classifing all ways of drawing a line.
+
virtual ~IntelliToolsettings()
+
int getInnerAlpha()
+
int getLineWidth()
+
void setInnerAlpha()
+
IntelliToolsettings()
+ + + + diff --git a/docs/html/_intelli_toolsettings_8h.html b/docs/html/_intelli_toolsettings_8h.html new file mode 100644 index 0000000..b77d91d --- /dev/null +++ b/docs/html/_intelli_toolsettings_8h.html @@ -0,0 +1,115 @@ + + + + + + + +IntelliPhoto: intelliphoto/src/IntelliHelper/IntelliToolsettings.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
IntelliToolsettings.h File Reference
+
+ +
+ + + + diff --git a/docs/html/_intelli_toolsettings_8h__dep__incl.dot b/docs/html/_intelli_toolsettings_8h__dep__incl.dot new file mode 100644 index 0000000..e71a1a5 --- /dev/null +++ b/docs/html/_intelli_toolsettings_8h__dep__incl.dot @@ -0,0 +1,62 @@ +digraph "intelliphoto/src/IntelliHelper/IntelliToolsettings.h" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + Node1 [label="intelliphoto/src/Intelli\lHelper/IntelliToolsettings.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="intelliphoto/src/Intelli\lHelper/IntelliToolsettings.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_toolsettings_8cpp.html",tooltip=" "]; + Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="intelliphoto/src/Tool\l/IntelliTool.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8h.html",tooltip=" "]; + Node3 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="intelliphoto/src/Layer\l/PaintingArea.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_painting_area_8h.html",tooltip=" "]; + Node4 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="intelliphoto/src/GUI\l/IntelliPhotoGui.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_photo_gui_8cpp.html",tooltip=" "]; + Node4 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="intelliphoto/src/Layer\l/PaintingArea.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_painting_area_8cpp.html",tooltip=" "]; + Node4 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 [label="intelliphoto/src/Tool\l/IntelliTool.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8cpp.html",tooltip=" "]; + Node4 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="intelliphoto/src/Tool\l/IntelliToolCircle.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_circle_8cpp.html",tooltip=" "]; + Node4 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="intelliphoto/src/Tool\l/IntelliToolFloodFill.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_flood_fill_8cpp.html",tooltip=" "]; + Node4 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="intelliphoto/src/Tool\l/IntelliToolLine.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_line_8cpp.html",tooltip=" "]; + Node4 -> Node11 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="intelliphoto/src/Tool\l/IntelliToolPen.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_pen_8cpp.html",tooltip=" "]; + Node4 -> Node12 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="intelliphoto/src/Tool\l/IntelliToolPlain.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_plain_8cpp.html",tooltip=" "]; + Node4 -> Node13 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="intelliphoto/src/Tool\l/IntelliToolPolygon.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_polygon_8cpp.html",tooltip=" "]; + Node4 -> Node14 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 [label="intelliphoto/src/Tool\l/IntelliToolRectangle.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_rectangle_8cpp.html",tooltip=" "]; + Node3 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 -> Node15 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node15 [label="intelliphoto/src/Tool\l/IntelliToolCircle.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_circle_8h.html",tooltip=" "]; + Node15 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node15 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 -> Node16 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 [label="intelliphoto/src/Tool\l/IntelliToolFloodFill.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_flood_fill_8h.html",tooltip=" "]; + Node16 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 -> Node17 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node17 [label="intelliphoto/src/Tool\l/IntelliToolLine.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_line_8h.html",tooltip=" "]; + Node17 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node17 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 -> Node18 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node18 [label="intelliphoto/src/Tool\l/IntelliToolPen.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_pen_8h.html",tooltip=" "]; + Node18 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node18 -> Node11 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 -> Node19 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node19 [label="intelliphoto/src/Tool\l/IntelliToolPlain.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_plain_8h.html",tooltip=" "]; + Node19 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node19 -> Node12 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 -> Node20 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 [label="intelliphoto/src/Tool\l/IntelliToolPolygon.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_polygon_8h.html",tooltip=" "]; + Node20 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 -> Node13 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 -> Node21 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node21 [label="intelliphoto/src/Tool\l/IntelliToolRectangle.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_rectangle_8h.html",tooltip=" "]; + Node21 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node21 -> Node14 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; +} diff --git a/docs/html/_intelli_toolsettings_8h_source.html b/docs/html/_intelli_toolsettings_8h_source.html new file mode 100644 index 0000000..c419423 --- /dev/null +++ b/docs/html/_intelli_toolsettings_8h_source.html @@ -0,0 +1,142 @@ + + + + + + + +IntelliPhoto: intelliphoto/src/IntelliHelper/IntelliToolsettings.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
IntelliToolsettings.h
+
+
+Go to the documentation of this file.
1 #ifndef INTELLITOOLSETTINGS_H
+
2 #define INTELLITOOLSETTINGS_H
+
3 
+ +
5 public:
+
9 enum class LineStyle {
+
10  SOLID_LINE,
+ +
12 };
+ +
14 virtual ~IntelliToolsettings();
+
15 int getLineWidth();
+
16 void setLineWidth();
+
17 void setLineWidth(int LineWidth);
+
18 int getInnerAlpha();
+
19 void setInnerAlpha();
+
20 void setInnerAlpha(int innerAlpha);
+ +
22 
+
23 private:
+
24 int lineWidth;
+
25 int innerAlpha;
+
26 LineStyle Linestyle;
+
27 };
+
28 
+
29 #endif // INTELLITOOLSETTINGS_H
+
+
+
void setLineWidth()
+
LineStyle getLinestyle()
+
+
LineStyle
The LineStyle enum classifing all ways of drawing a line.
+
virtual ~IntelliToolsettings()
+
+
int getInnerAlpha()
+
int getLineWidth()
+
void setInnerAlpha()
+
IntelliToolsettings()
+
+ + + + diff --git a/docs/html/_intelli_triangulation_8cpp.html b/docs/html/_intelli_triangulation_8cpp.html new file mode 100644 index 0000000..7ef82bf --- /dev/null +++ b/docs/html/_intelli_triangulation_8cpp.html @@ -0,0 +1,136 @@ + + + + + + + +IntelliPhoto: intelliphoto/src/IntelliHelper/IntelliTriangulation.cpp File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
IntelliTriangulation.cpp File Reference
+
+
+
#include "IntelliTriangulation.h"
+#include <algorithm>
+#include <queue>
+#include <cmath>
+
+

Go to the source code of this file.

+ + + + +

+Macros

#define pi   3.1415926535897932384626433832795
 
+

Macro Definition Documentation

+ +

◆ pi

+ +
+
+ + + + +
#define pi   3.1415926535897932384626433832795
+
+ +

Definition at line 5 of file IntelliTriangulation.cpp.

+ +
+
+
+
+ + + + diff --git a/docs/html/_intelli_triangulation_8cpp.js b/docs/html/_intelli_triangulation_8cpp.js new file mode 100644 index 0000000..f187ea4 --- /dev/null +++ b/docs/html/_intelli_triangulation_8cpp.js @@ -0,0 +1,4 @@ +var _intelli_triangulation_8cpp = +[ + [ "pi", "_intelli_triangulation_8cpp.html#a1daf785e3f68d293c7caa1c756d5cb74", null ] +]; \ No newline at end of file diff --git a/docs/html/_intelli_triangulation_8cpp__incl.dot b/docs/html/_intelli_triangulation_8cpp__incl.dot new file mode 100644 index 0000000..d4ea95e --- /dev/null +++ b/docs/html/_intelli_triangulation_8cpp__incl.dot @@ -0,0 +1,19 @@ +digraph "intelliphoto/src/IntelliHelper/IntelliTriangulation.cpp" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + Node1 [label="intelliphoto/src/Intelli\lHelper/IntelliTriangulation.cpp",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; + Node2 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="QPoint",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node2 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="algorithm",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="queue",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 [label="cmath",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; +} diff --git a/docs/html/_intelli_triangulation_8cpp_source.html b/docs/html/_intelli_triangulation_8cpp_source.html new file mode 100644 index 0000000..8fc95e8 --- /dev/null +++ b/docs/html/_intelli_triangulation_8cpp_source.html @@ -0,0 +1,237 @@ + + + + + + + +IntelliPhoto: intelliphoto/src/IntelliHelper/IntelliTriangulation.cpp Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
IntelliTriangulation.cpp
+
+
+Go to the documentation of this file.
1 #include "IntelliTriangulation.h"
+
2 #include <algorithm>
+
3 #include <queue>
+
4 #include <cmath>
+
5 #define pi 3.1415926535897932384626433832795
+
6 
+
7 std::vector<Triangle> IntelliTriangulation::calculateTriangles(std::vector<QPoint> polyPoints){
+
8  // helper for managing the triangle vertices and their state
+
9  struct TriangleHelper {
+
10  QPoint vertex;
+
11  float interiorAngle;
+
12  int idx;
+
13  bool isTip;
+
14  };
+
15 
+
16  // calculates the inner angle of 'point'
+
17  auto calculateInner = [](QPoint& point, QPoint& prev, QPoint& post){
+
18  QPoint AP(point.x()-prev.x(), point.y()-prev.y());
+
19  QPoint BP(point.x()-post.x(), point.y()-post.y());
+
20 
+
21  float topSclar = AP.x()*BP.x()+AP.y()*BP.y();
+
22  float absolute = static_cast<float>(sqrt(pow(AP.x(),2.)+pow(AP.y(),2.))*sqrt(pow(BP.x(),2.)+pow(BP.y(),2.)));
+
23  return acos(topSclar/absolute);
+
24  };
+
25 
+
26  // gets the first element of vec for which element.isTip == true holds
+
27  auto getTip= [](const std::vector<TriangleHelper>& vec){
+
28  size_t min = 0;
+
29  for(size_t i=0; i<vec.size(); i++) {
+
30  if(vec[i].interiorAngle<vec[min].interiorAngle) {
+
31  min = i;
+
32  }
+
33  }
+
34  return vec[min];
+
35  };
+
36 
+
37  // get the vertex idx bevor idx in relation to the container length
+
38  auto getPrev = [](int idx, int length){
+
39  return (idx-1)>=0 ? (idx-1) : (length-1);
+
40  };
+
41 
+
42  // get the vertex idx after idx in relation to the container lenght
+
43  auto getPost = [](int idx, int length){
+
44  return (idx+1)%length;
+
45  };
+
46 
+
47  // return if the vertex is a tip
+
48  auto isTip = [](float angle){
+
49  return static_cast<double>(angle)<(pi/2.);
+
50  };
+
51 
+
52  std::vector<TriangleHelper> Vertices;
+
53  std::vector<Triangle> Triangles;
+
54 
+
55  // set up all vertices and calculate intirior angle
+
56  for(int i=0; i<static_cast<int>(polyPoints.size()); i++) {
+
57  TriangleHelper helper;
+
58  int prev = getPrev(i, static_cast<int>(polyPoints.size()));
+
59  int post = getPost(i, static_cast<int>(polyPoints.size()));
+
60 
+
61  helper.vertex = polyPoints[static_cast<size_t>(i)];
+
62  helper.idx = i;
+
63 
+
64  helper.interiorAngle = calculateInner(polyPoints[static_cast<size_t>(i)],
+
65  polyPoints[static_cast<size_t>(prev)],
+
66  polyPoints[static_cast<size_t>(post)]);
+
67  helper.isTip = isTip(helper.interiorAngle);
+
68  Vertices.push_back(helper);
+
69  }
+
70 
+
71  // search triangles based on the intirior angles of each vertey
+
72  while(Triangles.size() != polyPoints.size()-2) {
+
73  Triangle tri;
+
74  TriangleHelper smallest = getTip(Vertices);
+
75  int prev = getPrev(smallest.idx, static_cast<int>(Vertices.size()));
+
76  int post = getPost(smallest.idx, static_cast<int>(Vertices.size()));
+
77 
+
78  // set triangle and push it
+
79  tri.A = Vertices[static_cast<size_t>(prev)].vertex;
+
80  tri.B = Vertices[static_cast<size_t>(smallest.idx)].vertex;
+
81  tri.C = Vertices[static_cast<size_t>(post)].vertex;
+
82  Triangles.push_back(tri);
+
83 
+
84  // update Vertice array
+
85  Vertices.erase(Vertices.begin()+smallest.idx);
+
86  for(size_t i=static_cast<size_t>(smallest.idx); i<Vertices.size(); i++) {
+
87  Vertices[i].idx-=1;
+
88  }
+
89 
+
90  // update post und prev idx
+
91  post = getPrev(post, Vertices.size());
+
92  prev = prev<smallest.idx ? prev : (prev-1);
+
93 
+
94  // calcultae neighboors of prev and post to calculate new interior angles
+
95  int prevOfPrev = getPrev(prev, static_cast<int>(Vertices.size()));
+
96  int postOfPrev = getPost(prev, static_cast<int>(Vertices.size()));
+
97 
+
98  int prevOfPost = getPrev(post, static_cast<int>(Vertices.size()));
+
99  int postOfPost = getPost(post, static_cast<int>(Vertices.size()));
+
100 
+
101  // update vertices with interior angles
+
102  // updtae prev
+
103  Vertices[static_cast<size_t>(prev)].interiorAngle = calculateInner(Vertices[static_cast<size_t>(prev)].vertex,
+
104  Vertices[static_cast<size_t>(prevOfPrev)].vertex,
+
105  Vertices[static_cast<size_t>(postOfPrev)].vertex);
+
106  Vertices[static_cast<size_t>(prev)].isTip = isTip(Vertices[static_cast<size_t>(prev)].interiorAngle);
+
107  // update post
+
108  Vertices[static_cast<size_t>(post)].interiorAngle = calculateInner(Vertices[static_cast<size_t>(post)].vertex,
+
109  Vertices[static_cast<size_t>(prevOfPost)].vertex,
+
110  Vertices[static_cast<size_t>(postOfPost)].vertex);
+
111  Vertices[static_cast<size_t>(post)].isTip = isTip(Vertices[static_cast<size_t>(post)].interiorAngle);
+
112  }
+
113  return Triangles;
+
114 }
+
115 
+
116 bool IntelliTriangulation::isInPolygon(std::vector<Triangle> &triangles, QPoint &point){
+
117  for(auto triangle : triangles) {
+
118  if(IntelliTriangulation::isInTriangle(triangle, point)) {
+
119  return true;
+
120  }
+
121  }
+
122  return false;
+
123 }
+
+
+
bool isInTriangle(Triangle &tri, QPoint &P)
A function to check if a given point is in a triangle.
+
std::vector< Triangle > calculateTriangles(std::vector< QPoint > polyPoints)
A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ...
+
QPoint B
+
#define pi
+
QPoint C
+
The Triangle struct holds the 3 vertices of a triangle.
+
bool isInPolygon(std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
+
QPoint A
+
+ + + + diff --git a/docs/html/_intelli_triangulation_8h.html b/docs/html/_intelli_triangulation_8h.html new file mode 100644 index 0000000..ea5eb14 --- /dev/null +++ b/docs/html/_intelli_triangulation_8h.html @@ -0,0 +1,140 @@ + + + + + + + +IntelliPhoto: intelliphoto/src/IntelliHelper/IntelliTriangulation.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
IntelliTriangulation.h File Reference
+
+
+
#include <QPoint>
+#include <vector>
+
+

Go to the source code of this file.

+ + + + + +

+Classes

struct  Triangle
 The Triangle struct holds the 3 vertices of a triangle. More...
 
+ + + +

+Namespaces

 IntelliTriangulation
 
+ + + + + + + + + + + + + +

+Functions

float IntelliTriangulation::sign (QPoint &p1, QPoint &p2, QPoint &p3)
 A function to get the 2*area of a traingle, using its determinat. More...
 
bool IntelliTriangulation::isInTriangle (Triangle &tri, QPoint &P)
 A function to check if a given point is in a triangle. More...
 
std::vector< TriangleIntelliTriangulation::calculateTriangles (std::vector< QPoint > polyPoints)
 A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by clipping ears of a planar graph. More...
 
bool IntelliTriangulation::isInPolygon (std::vector< Triangle > &triangles, QPoint &point)
 A function to check if a point lies in a polygon by checking its spanning triangles. More...
 
+
+
+ + + + diff --git a/docs/html/_intelli_triangulation_8h.js b/docs/html/_intelli_triangulation_8h.js new file mode 100644 index 0000000..0384860 --- /dev/null +++ b/docs/html/_intelli_triangulation_8h.js @@ -0,0 +1,8 @@ +var _intelli_triangulation_8h = +[ + [ "Triangle", "struct_triangle.html", "struct_triangle" ], + [ "calculateTriangles", "_intelli_triangulation_8h.html#acdaf1ed598e868b25e9e06d580da32e5", null ], + [ "isInPolygon", "_intelli_triangulation_8h.html#a00621e2d8708fe2e8966d7d79b64e186", null ], + [ "isInTriangle", "_intelli_triangulation_8h.html#ac150fee67fd41a451bd2592f10e00197", null ], + [ "sign", "_intelli_triangulation_8h.html#af9af549a7faff35a74c1265b290ea0ca", null ] +]; \ No newline at end of file diff --git a/docs/html/_intelli_triangulation_8h__dep__incl.dot b/docs/html/_intelli_triangulation_8h__dep__incl.dot new file mode 100644 index 0000000..00b4148 --- /dev/null +++ b/docs/html/_intelli_triangulation_8h__dep__incl.dot @@ -0,0 +1,52 @@ +digraph "intelliphoto/src/IntelliHelper/IntelliTriangulation.h" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + Node1 [label="intelliphoto/src/Intelli\lHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="intelliphoto/src/Image\l/IntelliImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_image_8h.html",tooltip=" "]; + Node2 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="intelliphoto/src/Image\l/IntelliImage.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_image_8cpp.html",tooltip=" "]; + Node2 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="intelliphoto/src/Image\l/IntelliRasterImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8h.html",tooltip=" "]; + Node4 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="intelliphoto/src/Image\l/IntelliRasterImage.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8cpp.html",tooltip=" "]; + Node4 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="intelliphoto/src/Image\l/IntelliShapedImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8h.html",tooltip=" "]; + Node6 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 [label="intelliphoto/src/Image\l/IntelliShapedImage.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8cpp.html",tooltip=" "]; + Node6 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="intelliphoto/src/Layer\l/PaintingArea.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_painting_area_8h.html",tooltip=" "]; + Node8 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="intelliphoto/src/GUI\l/IntelliPhotoGui.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_photo_gui_8cpp.html",tooltip=" "]; + Node8 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="intelliphoto/src/Layer\l/PaintingArea.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_painting_area_8cpp.html",tooltip=" "]; + Node8 -> Node11 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="intelliphoto/src/Tool\l/IntelliTool.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8cpp.html",tooltip=" "]; + Node8 -> Node12 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="intelliphoto/src/Tool\l/IntelliToolCircle.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_circle_8cpp.html",tooltip=" "]; + Node8 -> Node13 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="intelliphoto/src/Tool\l/IntelliToolFloodFill.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_flood_fill_8cpp.html",tooltip=" "]; + Node8 -> Node14 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 [label="intelliphoto/src/Tool\l/IntelliToolLine.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_line_8cpp.html",tooltip=" "]; + Node8 -> Node15 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node15 [label="intelliphoto/src/Tool\l/IntelliToolPen.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_pen_8cpp.html",tooltip=" "]; + Node8 -> Node16 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 [label="intelliphoto/src/Tool\l/IntelliToolPlain.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_plain_8cpp.html",tooltip=" "]; + Node8 -> Node17 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node17 [label="intelliphoto/src/Tool\l/IntelliToolPolygon.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_polygon_8cpp.html",tooltip=" "]; + Node8 -> Node18 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node18 [label="intelliphoto/src/Tool\l/IntelliToolRectangle.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_rectangle_8cpp.html",tooltip=" "]; + Node6 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node19 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node19 [label="intelliphoto/src/Intelli\lHelper/IntelliTriangulation.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8cpp.html",tooltip=" "]; + Node1 -> Node20 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 [label="intelliphoto/src/Tool\l/IntelliToolPolygon.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_polygon_8h.html",tooltip=" "]; + Node20 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 -> Node17 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; +} diff --git a/docs/html/_intelli_triangulation_8h__incl.dot b/docs/html/_intelli_triangulation_8h__incl.dot new file mode 100644 index 0000000..123f428 --- /dev/null +++ b/docs/html/_intelli_triangulation_8h__incl.dot @@ -0,0 +1,11 @@ +digraph "intelliphoto/src/IntelliHelper/IntelliTriangulation.h" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + Node1 [label="intelliphoto/src/Intelli\lHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="QPoint",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; +} diff --git a/docs/html/_intelli_triangulation_8h_source.html b/docs/html/_intelli_triangulation_8h_source.html new file mode 100644 index 0000000..d485a01 --- /dev/null +++ b/docs/html/_intelli_triangulation_8h_source.html @@ -0,0 +1,150 @@ + + + + + + + +IntelliPhoto: intelliphoto/src/IntelliHelper/IntelliTriangulation.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
IntelliTriangulation.h
+
+
+Go to the documentation of this file.
1 #ifndef INTELLITRIANGULATION_H
+
2 #define INTELLITRIANGULATION_H
+
3 
+
4 #include <QPoint>
+
5 #include <vector>
+
6 
+
10 struct Triangle {
+
11  QPoint A,B,C;
+
12 };
+
13 
+ +
15 
+
23 inline float sign(QPoint& p1, QPoint& p2, QPoint& p3){
+
24  return (p1.x()-p3.x())*(p2.y()-p3.y())-(p2.x()-p3.x())*(p1.y()-p3.y());
+
25 }
+
26 
+
33 inline bool isInTriangle(Triangle& tri, QPoint& P){
+
34  float val1, val2, val3;
+
35  bool neg, pos;
+
36 
+
37  val1 = IntelliTriangulation::sign(P,tri.A,tri.B);
+
38  val2 = IntelliTriangulation::sign(P,tri.B,tri.C);
+
39  val3 = IntelliTriangulation::sign(P,tri.C,tri.A);
+
40 
+
41  neg = (val1<0.f) || (val2<0.f) || (val3<0.f);
+
42  pos = (val1>0.f) || (val2>0.f) || (val3>0.f);
+
43 
+
44  return !(neg && pos);
+
45 }
+
46 
+
52 std::vector<Triangle> calculateTriangles(std::vector<QPoint> polyPoints);
+
53 
+
60 bool isInPolygon(std::vector<Triangle> &triangles, QPoint &point);
+
61 }
+
62 
+
63 #endif
+
+
+
bool isInTriangle(Triangle &tri, QPoint &P)
A function to check if a given point is in a triangle.
+
float sign(QPoint &p1, QPoint &p2, QPoint &p3)
A function to get the 2*area of a traingle, using its determinat.
+
std::vector< Triangle > calculateTriangles(std::vector< QPoint > polyPoints)
A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ...
+
QPoint B
+
QPoint C
+
The Triangle struct holds the 3 vertices of a triangle.
+
bool isInPolygon(std::vector< Triangle > &triangles, QPoint &point)
A function to check if a point lies in a polygon by checking its spanning triangles.
+
+
QPoint A
+ + + + diff --git a/docs/html/_painting_area_8cpp.html b/docs/html/_painting_area_8cpp.html index 416bf72..8207a1c 100644 --- a/docs/html/_painting_area_8cpp.html +++ b/docs/html/_painting_area_8cpp.html @@ -105,11 +105,6 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp.html','');}); #include "Tool/IntelliToolRectangle.h"
#include "Tool/IntelliToolFloodFill.h"
#include "Tool/IntelliToolPolygon.h"
-
-Include dependency graph for PaintingArea.cpp:
-
-
-

Go to the source code of this file.

diff --git a/docs/html/_painting_area_8cpp__incl.dot b/docs/html/_painting_area_8cpp__incl.dot index 74163ef..dfa6149 100644 --- a/docs/html/_painting_area_8cpp__incl.dot +++ b/docs/html/_painting_area_8cpp__incl.dot @@ -26,68 +26,90 @@ digraph "intelliphoto/src/Layer/PaintingArea.cpp" Node7 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node11 [label="QList",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node7 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 [label="Image/IntelliImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_image_8h.html",tooltip=" "]; - Node12 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="GUI/IntelliPhotoGui.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_photo_gui_8h.html",tooltip=" "]; + Node12 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node12 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node13 [label="QSize",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node12 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node14 [label="Image/IntelliRasterImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8h.html",tooltip=" "]; - Node14 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node15 [label="Image/IntelliShapedImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8h.html",tooltip=" "]; - Node15 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node15 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node15 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node16 [label="IntelliHelper/IntelliHelper.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_helper_8h.html",tooltip=" "]; - Node16 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node16 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node17 [label="Tool/IntelliTool.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8h.html",tooltip=" "]; - Node17 -> Node18 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node18 [label="IntelliHelper/IntelliColor\lPicker.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_color_picker_8h.html",tooltip=" "]; - Node18 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node18 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node18 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node19 [label="QColorDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node17 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 -> Node18 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node20 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node20 [label="Tool/IntelliToolPen.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_pen_8h.html",tooltip=" "]; - Node20 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node20 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="QPixmap",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node12 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 [label="QMainWindow",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node12 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node15 [label="QGridLayout",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node12 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 [label="QPushButton",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node12 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node17 [label="QTextEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node12 -> Node18 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node18 [label="QLabel",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node12 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node19 [label="QLineEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 -> Node20 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 [label="Image/IntelliImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_image_8h.html",tooltip=" "]; + Node20 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node20 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node21 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node21 [label="Tool/IntelliToolPlain.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_plain_8h.html",tooltip=" "]; - Node21 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node21 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node22 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node22 [label="Tool/IntelliToolLine.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_line_8h.html",tooltip=" "]; - Node22 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 -> Node21 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node21 [label="QSize",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node20 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 -> Node22 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node22 [label="IntelliHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; Node22 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node23 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node23 [label="Tool/IntelliToolCircle.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_circle_8h.html",tooltip=" "]; - Node23 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node23 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node23 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node24 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node24 [label="Tool/IntelliToolRectangle.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_rectangle_8h.html",tooltip=" "]; - Node24 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node24 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node24 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node25 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node25 [label="Tool/IntelliToolFloodFill.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_flood_fill_8h.html",tooltip=" "]; - Node25 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node25 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node26 [label="Tool/IntelliToolPolygon.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_polygon_8h.html",tooltip=" "]; - Node26 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node26 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node22 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 -> Node23 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node23 [label="IntelliHelper/IntelliRender\lSettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_render_settings_8h.html",tooltip=" "]; + Node7 -> Node24 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node24 [label="Image/IntelliRasterImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8h.html",tooltip=" "]; + Node24 -> Node20 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 -> Node25 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node25 [label="Image/IntelliShapedImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8h.html",tooltip=" "]; + Node25 -> Node24 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node25 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node26 [label="Tool/IntelliTool.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8h.html",tooltip=" "]; + Node26 -> Node27 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node27 [label="IntelliHelper/IntelliColor\lPicker.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_color_picker_8h.html",tooltip=" "]; + Node27 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node27 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node27 -> Node28 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node28 [label="QColorDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node26 -> Node29 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node29 [label="IntelliHelper/IntelliToolsettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_toolsettings_8h.html",tooltip=" "]; Node26 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node26 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 -> Node27 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node24 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node25 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node30 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node30 [label="Tool/IntelliToolPen.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_pen_8h.html",tooltip=" "]; + Node30 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node30 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node30 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node31 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node31 [label="Tool/IntelliToolPlain.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_plain_8h.html",tooltip=" "]; + Node31 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node31 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node32 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node32 [label="Tool/IntelliToolLine.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_line_8h.html",tooltip=" "]; + Node32 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node32 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node33 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node33 [label="Tool/IntelliToolCircle.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_circle_8h.html",tooltip=" "]; + Node33 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node33 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node33 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node34 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node34 [label="Tool/IntelliToolRectangle.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_rectangle_8h.html",tooltip=" "]; + Node34 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node34 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node34 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node35 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node35 [label="Tool/IntelliToolFloodFill.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_flood_fill_8h.html",tooltip=" "]; + Node35 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node35 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node36 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node36 [label="Tool/IntelliToolPolygon.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_polygon_8h.html",tooltip=" "]; + Node36 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node36 -> Node22 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node36 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node36 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; } diff --git a/docs/html/_painting_area_8cpp_source.html b/docs/html/_painting_area_8cpp_source.html index 780fcb6..08331a1 100644 --- a/docs/html/_painting_area_8cpp_source.html +++ b/docs/html/_painting_area_8cpp_source.html @@ -113,8 +113,8 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');}
21 PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget*parent)
22  : QWidget(parent){
23  this->Tool = nullptr;
-
24  this->setUp(maxWidth, maxHeight);
-
25  this->addLayer(200,200,0,0,ImageType::Shaped_Image);
+
24  this->setLayerDimensions(maxWidth, maxHeight);
+
25  this->addLayer(200,200,0,0,IntelliImage::ImageType::SHAPEDIMAGE);
26  layerBundle[0].image->drawPlain(QColor(0,0,255,255));
27  std::vector<QPoint> polygon;
28  polygon.push_back(QPoint(100,000));
@@ -123,7 +123,7 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');}
31  polygon.push_back(QPoint(000,100));
32  layerBundle[0].image->setPolygon(polygon);
33 
-
34  this->addLayer(200,200,150,150);
+
34  this->addLayer(200,200,150,150,IntelliImage::ImageType::RASTERIMAGE);
35  layerBundle[1].image->drawPlain(QColor(0,255,0,255));
36  layerBundle[1].alpha=200;
37 
@@ -134,7 +134,7 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');}
42  delete Tool;
43 }
44 
-
45 void PaintingArea::setUp(int maxWidth, int maxHeight){
+
45 void PaintingArea::setLayerDimensions(int maxWidth, int maxHeight){
46  //set standart parameter
47  this->maxWidth = maxWidth;
48  this->maxHeight = maxHeight;
@@ -145,384 +145,454 @@ $(document).ready(function(){initNavTree('_painting_area_8cpp_source.html','');}
53 
54 }
55 
-
56 int PaintingArea::addLayer(int width, int height, int widthOffset, int heightOffset, ImageType type){
+
56 int PaintingArea::addLayer(int width, int height, int widthOffset, int heightOffset, IntelliImage::ImageType type){
57  LayerObject newLayer;
58  newLayer.width = width;
59  newLayer.height = height;
60  newLayer.widthOffset = widthOffset;
61  newLayer.heightOffset = heightOffset;
-
62  if(type==ImageType::Raster_Image) {
-
63  newLayer.image = new IntelliRasterImage(width,height);
-
64  }else if(type==ImageType::Shaped_Image) {
-
65  newLayer.image = new IntelliShapedImage(width, height);
+
62  if(type==IntelliImage::ImageType::RASTERIMAGE) {
+
63  newLayer.image = new IntelliRasterImage(width,height,renderSettings.getFastRenderer());
+
64  }else if(type==IntelliImage::ImageType::SHAPEDIMAGE) {
+
65  newLayer.image = new IntelliShapedImage(width, height, renderSettings.getFastRenderer());
66  }
67  newLayer.alpha = 255;
68  this->layerBundle.push_back(newLayer);
-
69  return static_cast<int>(layerBundle.size())-1;
-
70 }
-
71 
+
69  activeLayer = static_cast<int>(layerBundle.size())-1;
+
70  return activeLayer;
+
71 }
72 
-
73 void PaintingArea::deleteLayer(int index){
-
74  if(index<static_cast<int>(layerBundle.size())) {
-
75  this->layerBundle.erase(layerBundle.begin()+index);
-
76  if(activeLayer>=index) {
-
77  activeLayer--;
-
78  }
-
79  }
-
80 }
-
81 
-
82 void PaintingArea::slotDeleteActiveLayer(){
-
83  if(activeLayer>=0 && activeLayer < static_cast<int>(layerBundle.size())) {
-
84  this->layerBundle.erase(layerBundle.begin()+activeLayer);
-
85  activeLayer--;
-
86  }
-
87 }
-
88 
-
89 void PaintingArea::setLayerToActive(int index){
-
90  if(index>=0&&index<static_cast<int>(layerBundle.size())) {
-
91  this->activeLayer=index;
-
92  }
-
93 }
-
94 
-
95 void PaintingArea::setAlphaOfLayer(int index, int alpha){
-
96  if(index>=0&&index<static_cast<int>(layerBundle.size())) {
-
97  layerBundle[static_cast<size_t>(index)].alpha=alpha;
-
98  }
-
99 }
-
100 
-
101 // Used to load the image and place it in the widget
-
102 bool PaintingArea::open(const QString &fileName){
-
103  if(this->activeLayer==-1) {
-
104  return false;
-
105  }
-
106  IntelliImage* active = layerBundle[static_cast<size_t>(activeLayer)].image;
-
107  bool open = active->loadImage(fileName);
-
108  active->calculateVisiblity();
-
109  update();
-
110  return open;
-
111 }
-
112 
-
113 // Save the current image
-
114 bool PaintingArea::save(const QString &fileName, const char*fileFormat){
-
115  if(layerBundle.size()==0) {
-
116  return false;
-
117  }
-
118  this->assembleLayers(true);
-
119 
-
120  if(!strcmp(fileFormat,"PNG")) {
-
121  QImage visibleImage = Canvas->convertToFormat(QImage::Format_Indexed8);
-
122  fileFormat = "png";
-
123  if (visibleImage.save(fileName, fileFormat)) {
-
124  return true;
-
125  } else {
-
126  return false;
-
127  }
-
128  }
-
129 
-
130  if (Canvas->save(fileName, fileFormat)) {
-
131  return true;
-
132  } else {
-
133  return false;
-
134  }
-
135 }
-
136 
-
137 // Color the image area with white
-
138 void PaintingArea::floodFill(int r, int g, int b, int a){
-
139  if(this->activeLayer==-1) {
-
140  return;
-
141  }
-
142  IntelliImage* active = layerBundle[static_cast<size_t>(activeLayer)].image;
-
143  active->drawPlain(QColor(r, g, b, a));
-
144  update();
-
145 }
-
146 
-
147 void PaintingArea::movePositionActive(int x, int y){
-
148  layerBundle[static_cast<size_t>(activeLayer)].widthOffset += x;
-
149  layerBundle[static_cast<size_t>(activeLayer)].heightOffset += y;
-
150 }
-
151 
-
152 void PaintingArea::moveActiveLayer(int idx){
-
153  if(idx==1) {
-
154  this->activateUpperLayer();
-
155  }else if(idx==-1) {
-
156  this->activateLowerLayer();
-
157  }
+
73 
+
74 void PaintingArea::deleteLayer(int idx){
+
75  if(idx<static_cast<int>(layerBundle.size())) {
+
76  this->layerBundle.erase(layerBundle.begin()+idx);
+
77  if(activeLayer>=idx && activeLayer != 0) {
+
78  activeLayer--;
+
79  }
+
80  }
+
81 }
+
82 
+
83 void PaintingArea::slotDeleteActiveLayer(){
+
84  if(activeLayer>=0 && activeLayer < static_cast<int>(layerBundle.size())) {
+
85  this->layerBundle.erase(layerBundle.begin()+activeLayer);
+
86  activeLayer--;
+
87  }
+
88 }
+
89 
+
90 void PaintingArea::setLayerActive(int idx){
+
91  if(idx>=0&&idx<static_cast<int>(layerBundle.size())) {
+
92  this->activeLayer=idx;
+
93  }
+
94 }
+
95 
+
96 void PaintingArea::setLayerAlpha(int idx, int alpha){
+
97  if(idx>=0&&idx<static_cast<int>(layerBundle.size())) {
+
98  layerBundle[static_cast<size_t>(idx)].alpha=alpha;
+
99  }
+
100 }
+
101 
+
102 // Used to load the image and place it in the widget
+
103 bool PaintingArea::open(const QString &filePath){
+
104  if(this->activeLayer==-1) {
+
105  return false;
+
106  }
+
107  IntelliImage* active = layerBundle[static_cast<size_t>(activeLayer)].image;
+
108  bool open = active->loadImage(filePath);
+
109  active->calculateVisiblity();
+
110  update();
+
111  return open;
+
112 }
+
113 
+
114 // Save the current image
+
115 bool PaintingArea::save(const QString &filePath, const char*fileFormat){
+
116  if(layerBundle.size()==0) {
+
117  return false;
+
118  }
+
119  this->drawLayers(true);
+
120 
+
121  if(!strcmp(fileFormat,"PNG")) {
+
122  QImage visibleImage = Canvas->convertToFormat(QImage::Format_Indexed8);
+
123  fileFormat = "png";
+
124  if (visibleImage.save(filePath, fileFormat)) {
+
125  return true;
+
126  } else {
+
127  return false;
+
128  }
+
129  }
+
130 
+
131  if (Canvas->save(filePath, fileFormat)) {
+
132  return true;
+
133  } else {
+
134  return false;
+
135  }
+
136 }
+
137 
+
138 // Color the image area with white
+
139 void PaintingArea::floodFill(int r, int g, int b, int a){
+
140  if(this->activeLayer==-1) {
+
141  return;
+
142  }
+
143  IntelliImage* active = layerBundle[static_cast<size_t>(activeLayer)].image;
+
144  active->drawPlain(QColor(r, g, b, a));
+
145  update();
+
146 }
+
147 
+
148 void PaintingArea::movePositionActive(int x, int y){
+
149  if(Tool!=nullptr) {
+
150  if(Tool->getIsDrawing()) {
+
151  IntelliTool* temp = copyActiveTool();
+
152  delete this->Tool;
+
153  this->Tool = temp;
+
154  }
+
155  }
+
156  layerBundle[static_cast<size_t>(activeLayer)].widthOffset += x;
+
157  layerBundle[static_cast<size_t>(activeLayer)].heightOffset += y;
158 }
159 
-
160 void PaintingArea::slotActivateLayer(int a){
-
161  if(a>=0 && a < static_cast<int>(layerBundle.size())) {
-
162  this->setLayerToActive(a);
-
163  }
-
164 }
-
165 
-
166 void PaintingArea::colorPickerSetFirstColor(){
-
167  QColor clr = QColorDialog::getColor(colorPicker.getFirstColor(), nullptr, "Main Color", QColorDialog::DontUseNativeDialog);
-
168  this->colorPicker.setFirstColor(clr);
-
169 }
-
170 
-
171 void PaintingArea::colorPickerSetSecondColor(){
-
172  QColor clr = QColorDialog::getColor(colorPicker.getSecondColor(), nullptr, "Secondary Color", QColorDialog::DontUseNativeDialog);
-
173  this->colorPicker.setSecondColor(clr);
-
174 }
-
175 
-
176 void PaintingArea::colorPickerSwitchColor(){
-
177  this->colorPicker.switchColors();
-
178 }
-
179 
-
180 void PaintingArea::createPenTool(){
-
181  delete this->Tool;
-
182  Tool = new IntelliToolPen(this, &colorPicker);
-
183 }
-
184 
-
185 void PaintingArea::createPlainTool(){
-
186  delete this->Tool;
-
187  Tool = new IntelliToolPlainTool(this, &colorPicker);
-
188 }
-
189 
-
190 void PaintingArea::createLineTool(){
-
191  delete this->Tool;
-
192  Tool = new IntelliToolLine(this, &colorPicker);
-
193 }
-
194 
-
195 void PaintingArea::createRectangleTool(){
-
196  delete this->Tool;
-
197  Tool = new IntelliToolRectangle(this, &colorPicker);
-
198 }
-
199 
-
200 void PaintingArea::createCircleTool(){
-
201  delete this->Tool;
-
202  Tool = new IntelliToolCircle(this, &colorPicker);
-
203 }
-
204 void PaintingArea::createPolygonTool(){
-
205  delete this->Tool;
-
206  Tool = new IntelliToolPolygon(this, &colorPicker);
-
207 }
-
208 
-
209 void PaintingArea::createFloodFillTool(){
-
210  delete this->Tool;
-
211  Tool = new IntelliToolFloodFill(this, &colorPicker);
-
212 }
-
213 
-
214 int PaintingArea::getWidthOfActive(){
-
215  return this->layerBundle[activeLayer].width;
-
216 }
-
217 
-
218 int PaintingArea::getHeightOfActive(){
-
219  return this->layerBundle[activeLayer].height;
+
160 void PaintingArea::moveActiveLayer(int idx){
+
161  if(Tool != nullptr) {
+
162  if(Tool->getIsDrawing()) {
+
163  IntelliTool* temp = copyActiveTool();
+
164  delete this->Tool;
+
165  this->Tool = temp;
+
166  }
+
167  }
+
168  if(idx==1) {
+
169  this->selectLayerUp();
+
170  }else if(idx==-1) {
+
171  this->selectLayerDown();
+
172  }
+
173 }
+
174 
+
175 void PaintingArea::slotActivateLayer(int a){
+
176  if(Tool != nullptr) {
+
177  if(Tool->getIsDrawing()) {
+
178  IntelliTool* temp = copyActiveTool();
+
179  delete this->Tool;
+
180  this->Tool = temp;
+
181  }
+
182  }
+
183  if(a>=0 && a < static_cast<int>(layerBundle.size())) {
+
184  this->setLayerActive(a);
+
185  }
+
186 }
+
187 
+
188 void PaintingArea::colorPickerSetFirstColor(){
+
189  QColor clr = QColorDialog::getColor(colorPicker.getFirstColor(), nullptr, "Main Color", QColorDialog::DontUseNativeDialog);
+
190  this->colorPicker.setFirstColor(clr);
+
191 }
+
192 
+
193 void PaintingArea::colorPickerSetSecondColor(){
+
194  QColor clr = QColorDialog::getColor(colorPicker.getSecondColor(), nullptr, "Secondary Color", QColorDialog::DontUseNativeDialog);
+
195  this->colorPicker.setSecondColor(clr);
+
196 }
+
197 
+
198 void PaintingArea::colorPickerSwapColors(){
+
199  this->colorPicker.swapColors();
+
200 }
+
201 
+
202 void PaintingArea::createPenTool(){
+
203  delete this->Tool;
+
204  Tool = new IntelliToolPen(this, &colorPicker, &Toolsettings);
+
205 }
+
206 
+
207 void PaintingArea::createPlainTool(){
+
208  delete this->Tool;
+
209  Tool = new IntelliToolPlainTool(this, &colorPicker, &Toolsettings);
+
210 }
+
211 
+
212 void PaintingArea::createLineTool(){
+
213  delete this->Tool;
+
214  Tool = new IntelliToolLine(this, &colorPicker, &Toolsettings);
+
215 }
+
216 
+
217 void PaintingArea::createRectangleTool(){
+
218  delete this->Tool;
+
219  Tool = new IntelliToolRectangle(this, &colorPicker, &Toolsettings);
220 }
221 
-
222 // If a mouse button is pressed check if it was the
-
223 // left button and if so store the current position
-
224 // Set that we are currently drawing
-
225 void PaintingArea::mousePressEvent(QMouseEvent*event){
-
226  if(Tool == nullptr)
-
227  return;
-
228  int x = event->x()-layerBundle[activeLayer].widthOffset;
-
229  int y = event->y()-layerBundle[activeLayer].heightOffset;
-
230  if(event->button() == Qt::LeftButton) {
-
231  Tool->onMouseLeftPressed(x, y);
-
232  }else if(event->button() == Qt::RightButton) {
-
233  Tool->onMouseRightPressed(x, y);
-
234  }
-
235  update();
-
236 }
-
237 
-
238 // When the mouse moves if the left button is clicked
-
239 // we call the drawline function which draws a line
-
240 // from the last position to the current
-
241 void PaintingArea::mouseMoveEvent(QMouseEvent*event){
-
242  if(Tool == nullptr)
-
243  return;
-
244  int x = event->x()-layerBundle[activeLayer].widthOffset;
-
245  int y = event->y()-layerBundle[activeLayer].heightOffset;
-
246  Tool->onMouseMoved(x, y);
-
247  update();
-
248 }
-
249 
-
250 // If the button is released we set variables to stop drawing
-
251 void PaintingArea::mouseReleaseEvent(QMouseEvent*event){
-
252  if(Tool == nullptr)
-
253  return;
-
254  int x = event->x()-layerBundle[activeLayer].widthOffset;
-
255  int y = event->y()-layerBundle[activeLayer].heightOffset;
-
256  if(event->button() == Qt::LeftButton) {
-
257  Tool->onMouseLeftReleased(x, y);
-
258  }else if(event->button() == Qt::RightButton) {
-
259  Tool->onMouseRightReleased(x, y);
-
260  }
-
261  update();
-
262 }
-
263 
-
264 void PaintingArea::wheelEvent(QWheelEvent*event){
-
265  QPoint numDegrees = event->angleDelta() / 8;
-
266  if(!numDegrees.isNull()) {
-
267  QPoint numSteps = numDegrees / 15;
-
268  Tool->onWheelScrolled(numSteps.y()* -1);
-
269  }
-
270 }
-
271 
-
272 // QPainter provides functions to draw on the widget
-
273 // The QPaintEvent is sent to widgets that need to
-
274 // update themselves
-
275 void PaintingArea::paintEvent(QPaintEvent*event){
-
276  this->assembleLayers();
-
277 
-
278  QPainter painter(this);
-
279  QRect dirtyRec = event->rect();
-
280  painter.drawImage(dirtyRec, *Canvas, dirtyRec);
-
281  update();
-
282 }
-
283 
-
284 // Resize the image to slightly larger then the main window
-
285 // to cut down on the need to resize the image
-
286 void PaintingArea::resizeEvent(QResizeEvent*event){
-
287  //TODO wait till tool works
-
288  update();
-
289 }
-
290 
-
291 void PaintingArea::resizeImage(QImage*image_res, const QSize &newSize){
-
292  //TODO implement
-
293 }
-
294 
-
295 void PaintingArea::activateUpperLayer(){
-
296  if(activeLayer!=-1 && activeLayer<layerBundle.size()-1) {
-
297  std::swap(layerBundle[activeLayer], layerBundle[activeLayer+1]);
-
298  activeLayer++;
-
299  }
-
300 }
-
301 
-
302 void PaintingArea::activateLowerLayer(){
-
303  if(activeLayer!=-1 && activeLayer>0) {
-
304  std::swap(layerBundle[activeLayer], layerBundle[activeLayer-1]);
-
305  activeLayer--;
-
306  }
-
307 }
-
308 
-
309 void PaintingArea::assembleLayers(bool forSaving){
-
310  if(forSaving) {
-
311  Canvas->fill(Qt::GlobalColor::transparent);
-
312  }else{
-
313  Canvas->fill(Qt::GlobalColor::black);
-
314  }
-
315  for(size_t i=0; i<layerBundle.size(); i++) {
-
316  LayerObject layer = layerBundle[i];
-
317  QImage cpy = layer.image->getDisplayable(layer.alpha);
-
318  QColor clr_0;
-
319  QColor clr_1;
-
320  for(int y=0; y<layer.height; y++) {
-
321  if(layer.heightOffset+y<0) continue;
-
322  if(layer.heightOffset+y>=maxHeight) break;
-
323  for(int x=0; x<layer.width; x++) {
-
324  if(layer.widthOffset+x<0) continue;
-
325  if(layer.widthOffset+x>=maxWidth) break;
-
326  clr_0=Canvas->pixelColor(layer.widthOffset+x, layer.heightOffset+y);
-
327  clr_1=cpy.pixelColor(x,y);
-
328  float t = static_cast<float>(clr_1.alpha())/255.f;
-
329  int r =static_cast<int>(static_cast<float>(clr_1.red())*(t)+static_cast<float>(clr_0.red())*(1.f-t)+0.5f);
-
330  int g =static_cast<int>(static_cast<float>(clr_1.green())*(t)+static_cast<float>(clr_0.green())*(1.f-t)+0.5f);
-
331  int b =static_cast<int>(static_cast<float>(clr_1.blue())*(t)+static_cast<float>(clr_0.blue()*(1.f-t))+0.5f);
-
332  int a =std::min(clr_0.alpha()+clr_1.alpha(), 255);
-
333  clr_0.setRed(r);
-
334  clr_0.setGreen(g);
-
335  clr_0.setBlue(b);
-
336  clr_0.setAlpha(a);
-
337 
-
338  Canvas->setPixelColor(layer.widthOffset+x, layer.heightOffset+y, clr_0);
-
339  }
-
340  }
-
341  }
-
342 }
-
343 
-
344 void PaintingArea::createTempLayerAfter(int idx){
-
345  if(idx>=0) {
-
346  LayerObject newLayer;
-
347  newLayer.alpha = 255;
-
348  newLayer.height = layerBundle[idx].height;
-
349  newLayer.width = layerBundle[idx].width;
-
350  newLayer.heightOffset = layerBundle[idx].heightOffset;
-
351  newLayer.widthOffset = layerBundle[idx].widthOffset;
-
352  newLayer.image = layerBundle[idx].image->getDeepCopy();
-
353  layerBundle.insert(layerBundle.begin()+idx+1,newLayer);
-
354  }
-
355 }
+
222 void PaintingArea::createCircleTool(){
+
223  delete this->Tool;
+
224  Tool = new IntelliToolCircle(this, &colorPicker, &Toolsettings);
+
225 }
+
226 void PaintingArea::createPolygonTool(){
+
227  delete this->Tool;
+
228  Tool = new IntelliToolPolygon(this, &colorPicker, &Toolsettings);
+
229 }
+
230 
+
231 void PaintingArea::createFloodFillTool(){
+
232  delete this->Tool;
+
233  Tool = new IntelliToolFloodFill(this, &colorPicker, &Toolsettings);
+
234 }
+
235 
+
236 int PaintingArea::getWidthOfActive(){
+
237  return this->layerBundle[static_cast<unsigned long long>(activeLayer)].width;
+
238 }
+
239 
+
240 int PaintingArea::getHeightOfActive(){
+
241  return this->layerBundle[static_cast<unsigned long long>(activeLayer)].height;
+
242 }
+
243 
+
244 IntelliImage::ImageType PaintingArea::getTypeOfImageRealLayer(){
+
245  return this->layerBundle[static_cast<unsigned long long>(activeLayer)].image->getTypeOfImage();
+
246 }
+
247 
+
248 std::vector<QPoint> PaintingArea::getPolygonDataOfRealLayer(){
+
249  return this->layerBundle[static_cast<unsigned long long>(activeLayer)].image->getPolygonData();
+
250 }
+
251 
+
252 // If a mouse button is pressed check if it was the
+
253 // left button and if so store the current position
+
254 // Set that we are currently drawing
+
255 void PaintingArea::mousePressEvent(QMouseEvent*event){
+
256  if(Tool == nullptr)
+
257  return;
+
258  int x = event->x()-layerBundle[static_cast<unsigned long long>(activeLayer)].widthOffset;
+
259  int y = event->y()-layerBundle[static_cast<unsigned long long>(activeLayer)].heightOffset;
+
260  if(event->button() == Qt::LeftButton) {
+
261  Tool->onMouseLeftPressed(x, y);
+
262  }else if(event->button() == Qt::RightButton) {
+
263  Tool->onMouseRightPressed(x, y);
+
264  }
+
265  update();
+
266 }
+
267 
+
268 // When the mouse moves if the left button is clicked
+
269 // we call the drawline function which draws a line
+
270 // from the last position to the current
+
271 void PaintingArea::mouseMoveEvent(QMouseEvent*event){
+
272  if(Tool == nullptr)
+
273  return;
+
274  int x = event->x()-layerBundle[static_cast<unsigned long long>(activeLayer)].widthOffset;
+
275  int y = event->y()-layerBundle[static_cast<unsigned long long>(activeLayer)].heightOffset;
+
276  Tool->onMouseMoved(x, y);
+
277  update();
+
278 }
+
279 
+
280 // If the button is released we set variables to stop drawing
+
281 void PaintingArea::mouseReleaseEvent(QMouseEvent*event){
+
282  if(Tool == nullptr)
+
283  return;
+
284  int x = event->x()-layerBundle[static_cast<unsigned long long>(activeLayer)].widthOffset;
+
285  int y = event->y()-layerBundle[static_cast<unsigned long long>(activeLayer)].heightOffset;
+
286  if(event->button() == Qt::LeftButton) {
+
287  Tool->onMouseLeftReleased(x, y);
+
288  }else if(event->button() == Qt::RightButton) {
+
289  Tool->onMouseRightReleased(x, y);
+
290  }
+
291  update();
+
292 }
+
293 
+
294 void PaintingArea::wheelEvent(QWheelEvent*event){
+
295  if(this->Tool != nullptr) {
+
296  QPoint numDegrees = event->angleDelta() / 8;
+
297  if(!numDegrees.isNull()) {
+
298  QPoint numSteps = numDegrees / 15;
+
299  Tool->onWheelScrolled(numSteps.y()* -1);
+
300  }
+
301  }
+
302 }
+
303 
+
304 // QPainter provides functions to draw on the widget
+
305 // The QPaintEvent is sent to widgets that need to
+
306 // update themselves
+
307 void PaintingArea::paintEvent(QPaintEvent*event){
+
308  this->drawLayers();
+
309 
+
310  QPainter painter(this);
+
311  QRect dirtyRec = event->rect();
+
312  painter.drawImage(dirtyRec, *Canvas, dirtyRec);
+
313  update();
+
314 }
+
315 
+
316 // Resize the image to slightly larger then the main window
+
317 // to cut down on the need to resize the image
+
318 void PaintingArea::resizeEvent(QResizeEvent*event){
+
319  //TODO wait till tool works
+
320  update();
+
321 }
+
322 
+
323 void PaintingArea::resizeLayer(QImage*image_res, const QSize &newSize){
+
324  //TODO implement
+
325 }
+
326 
+
327 void PaintingArea::selectLayerUp(){
+
328  if(activeLayer!=-1 && static_cast<unsigned long long>(activeLayer)<layerBundle.size()-1) {
+
329  std::swap(layerBundle[static_cast<unsigned long long>(activeLayer)], layerBundle[static_cast<unsigned long long>(activeLayer+1)]);
+
330  activeLayer++;
+
331  }
+
332 }
+
333 
+
334 void PaintingArea::selectLayerDown(){
+
335  if(activeLayer!=-1 && activeLayer>0) {
+
336  std::swap(layerBundle[static_cast<unsigned long long>(activeLayer)], layerBundle[static_cast<unsigned long long>(activeLayer-1)]);
+
337  activeLayer--;
+
338  }
+
339 }
+
340 
+
341 void PaintingArea::drawLayers(bool forSaving){
+
342  if(forSaving) {
+
343  Canvas->fill(Qt::GlobalColor::transparent);
+
344  }else{
+
345  Canvas->fill(Qt::GlobalColor::black);
+
346  }
+
347  for(size_t i=0; i<layerBundle.size(); i++) {
+
348  LayerObject layer = layerBundle[i];
+
349  QImage cpy = layer.image->getDisplayable(layer.alpha);
+
350  QColor clr_0;
+
351  QColor clr_1;
+
352  for(int y=0; y<layer.height; y++) {
+
353  if(layer.heightOffset+y<0) continue;
+
354  if(layer.heightOffset+y>=maxHeight) break;
+
355  for(int x=0; x<layer.width; x++) {
+
356  if(layer.widthOffset+x<0) continue;
+
357  if(layer.widthOffset+x>=maxWidth) break;
+
358  clr_0=Canvas->pixelColor(layer.widthOffset+x, layer.heightOffset+y);
+
359  clr_1=cpy.pixelColor(x,y);
+
360  float t = static_cast<float>(clr_1.alpha())/255.f;
+
361  int r =static_cast<int>(static_cast<float>(clr_1.red())*(t)+static_cast<float>(clr_0.red())*(1.f-t)+0.5f);
+
362  int g =static_cast<int>(static_cast<float>(clr_1.green())*(t)+static_cast<float>(clr_0.green())*(1.f-t)+0.5f);
+
363  int b =static_cast<int>(static_cast<float>(clr_1.blue())*(t)+static_cast<float>(clr_0.blue()*(1.f-t))+0.5f);
+
364  int a =std::min(clr_0.alpha()+clr_1.alpha(), 255);
+
365  clr_0.setRed(r);
+
366  clr_0.setGreen(g);
+
367  clr_0.setBlue(b);
+
368  clr_0.setAlpha(a);
+
369 
+
370  Canvas->setPixelColor(layer.widthOffset+x, layer.heightOffset+y, clr_0);
+
371  }
+
372  }
+
373  }
+
374 }
+
375 
+
376 void PaintingArea::createTempTopLayer(int idx){
+
377  if(idx>=0) {
+
378  LayerObject newLayer;
+
379  newLayer.alpha = 255;
+
380  newLayer.height = layerBundle[static_cast<unsigned long long>(idx)].height;
+
381  newLayer.width = layerBundle[static_cast<unsigned long long>(idx)].width;
+
382  newLayer.heightOffset = layerBundle[static_cast<unsigned long long>(idx)].heightOffset;
+
383  newLayer.widthOffset = layerBundle[static_cast<unsigned long long>(idx)].widthOffset;
+
384  newLayer.image = layerBundle[static_cast<unsigned long long>(idx)].image->getDeepCopy();
+
385  layerBundle.insert(layerBundle.begin()+idx+1,newLayer);
+
386  }
+
387 }
+
388 
+
389 IntelliTool* PaintingArea::copyActiveTool(){
+
390  switch(Tool->getTooltype()) {
+
391  case IntelliTool::Tooltype::CIRCLE: return new IntelliToolCircle(this,&colorPicker, &Toolsettings);
+
392  case IntelliTool::Tooltype::FLOODFILL: return new IntelliToolFloodFill(this,&colorPicker, &Toolsettings);
+
393  case IntelliTool::Tooltype::LINE: return new IntelliToolLine(this,&colorPicker, &Toolsettings);
+
394  case IntelliTool::Tooltype::PEN: return new IntelliToolPen(this,&colorPicker, &Toolsettings);
+
395  case IntelliTool::Tooltype::PLAIN: return new IntelliToolPlainTool(this,&colorPicker, &Toolsettings);
+
396  case IntelliTool::Tooltype::POLYGON: return new IntelliToolPolygon(this,&colorPicker, &Toolsettings);
+
397  case IntelliTool::Tooltype::RECTANGLE: return new IntelliToolRectangle(this,&colorPicker, &Toolsettings);
+
398  default: return nullptr;
+
399  }
+
400 }
+
401 
+
402 int PaintingArea::getNumberOfActiveLayer(){
+
403  return activeLayer;
+
404 }
+
405 
+
406 IntelliImage* PaintingArea::getImageOfActiveLayer(){
+
407  return layerBundle[activeLayer].image;
+
408 }
-
int getWidthOfActive()
The getWidthOfActive gets the horizontal dimensions of the active layer.
-
void createCircleTool()
-
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:14
-
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:32
-
ImageType
The Types, which an Image can be.
Definition: IntelliImage.h:14
-
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
The addLayer adds a layer to the current project/ painting area.
-
void mouseReleaseEvent(QMouseEvent *event) override
-
void createRectangleTool()
+
int getWidthOfActive()
The getWidthOfActive gets the horizontal dimensions of the active layer.
+
+
void createCircleTool()
+
virtual void onMouseRightPressed(int x, int y)
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliTool.cpp:15
+
virtual void onMouseLeftReleased(int x, int y)
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliTool.cpp:33
+
IntelliImage * getImageOfActiveLayer()
+
void mouseReleaseEvent(QMouseEvent *event) override
+
void createRectangleTool()
-
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:25
+
virtual void onMouseLeftPressed(int x, int y)
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliTool.cpp:26
-
bool open(const QString &fileName)
The open method is used for loading a picture into the current layer.
-
int widthOffset
Definition: PaintingArea.h:28
-
virtual bool loadImage(const QString &fileName)
A function that loads and sclaes an image to the fitting dimensions.
-
void setLayerToActive(int index)
The setLayerToActive method marks a specific layer as active.
-
void floodFill(int r, int g, int b, int a)
The floodFill method fills a the active layer with a given color.
+
bool save(const QString &filePath, const char *fileFormat)
The save method is used for exporting the current project as one picture.
+
void setLayerAlpha(int idx, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
+
+
void setLayerActive(int idx)
The setLayerToActive method marks a specific layer as active.
+
int widthOffset
Definition: PaintingArea.h:29
+
void floodFill(int r, int g, int b, int a)
The floodFill method fills a the active layer with a given color.
The IntelliToolPlainTool class represents a tool to fill the whole canvas with one color.
void setSecondColor(QColor Color)
A function to set the secondary color.
-
The IntelliShapedImage manages a Shapedimage.
+
The IntelliShapedImage manages a Shapedimage.
QColor getSecondColor()
A function to read the secondary selected color.
-
int heightOffset
Definition: PaintingArea.h:29
-
bool save(const QString &fileName, const char *fileFormat)
The save method is used for exporting the current project as one picture.
-
int getHeightOfActive()
The getHeightOfActive gets the vertical dimensions of the active layer.
-
void switchColors()
A function switching primary and secondary color.
+
int heightOffset
Definition: PaintingArea.h:30
+
void deleteLayer(int idx)
The deleteLayer method removes a layer at a given idx.
+
int getHeightOfActive()
The getHeightOfActive gets the vertical dimensions of the active layer.
virtual QImage getDisplayable(const QSize &displaySize, int alpha)=0
A function returning the displayable ImageData in a requested transparence and size.
-
void createPlainTool()
-
void wheelEvent(QWheelEvent *event) override
-
The LayerObject struct holds all the information needed to construct a layer.
Definition: PaintingArea.h:24
-
void deleteLayer(int index)
The deleteLayer method removes a layer at a given index.
-
void createPenTool()
+
void createPlainTool()
+
void wheelEvent(QWheelEvent *event) override
+
bool getFastRenderer()
The getfastRenderer gets the value of the flag for the fastRenderer setting.
+
The LayerObject struct holds all the information needed to construct a layer.
Definition: PaintingArea.h:25
+
void createPenTool()
-
void mousePressEvent(QMouseEvent *event) override
-
+
void mousePressEvent(QMouseEvent *event) override
-
int alpha
Definition: PaintingArea.h:30
+
int alpha
Definition: PaintingArea.h:31
The IntelliToolRectangle class represents a tool to draw a rectangle.
-
void createLineTool()
+
void createLineTool()
-
The IntelliToolPen class represents a tool to draw a line.
-
void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
-
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:21
-
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
-
void colorPickerSwitchColor()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
-
int width
Definition: PaintingArea.h:26
+
The IntelliToolPen class represents a tool to draw a line.
+
void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
+
virtual void onMouseRightReleased(int x, int y)
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliTool.cpp:22
+
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
+
+
+
Tooltype getTooltype()
Definition: IntelliTool.cpp:85
+
IntelliImage::ImageType getTypeOfImageRealLayer()
+
int width
Definition: PaintingArea.h:27
~PaintingArea() override
This deconstructor is used to clear up the memory and remove the currently active window.
-
void mouseMoveEvent(QMouseEvent *event) override
+
void mouseMoveEvent(QMouseEvent *event) override
+
int getNumberOfActiveLayer()
void setFirstColor(QColor Color)
A function to set the primary color.
-
void slotDeleteActiveLayer()
The slotDeleteActiveLayer method handles the deletion of the active layer.
-
-
void createPolygonTool()
-
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
+
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:14
+
+
void slotDeleteActiveLayer()
The slotDeleteActiveLayer method handles the deletion of the active layer.
+
bool open(const QString &filePath)
The open method is used for loading a picture into the current layer.
+
void createPolygonTool()
+
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
+
IntelliColorPicker colorPicker
Definition: PaintingArea.h:175
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)
PaintingArea is the constructor of the PaintingArea class, which initiates the working environment.
+
bool getIsDrawing()
Definition: IntelliTool.cpp:89
QColor getFirstColor()
A function to read the primary selected color.
-
int height
Definition: PaintingArea.h:27
-
void createFloodFillTool()
-
void slotActivateLayer(int a)
The slotActivateLayer method handles the event of selecting one layer as active.
-
void paintEvent(QPaintEvent *event) override
-
void setAlphaOfLayer(int index, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
-
IntelliImage * image
Definition: PaintingArea.h:25
-
void resizeEvent(QResizeEvent *event) override
+
int height
Definition: PaintingArea.h:28
+
void createFloodFillTool()
+
void slotActivateLayer(int a)
The slotActivateLayer method handles the event of selecting one layer as active.
+
void paintEvent(QPaintEvent *event) override
+
+
+
IntelliImage * image
Definition: PaintingArea.h:26
+
virtual bool loadImage(const QString &filePath)
A function that loads and sclaes an image to the fitting dimensions.
+
std::vector< QPoint > getPolygonDataOfRealLayer()
+
IntelliToolsettings Toolsettings
Definition: PaintingArea.h:174
+
void resizeEvent(QResizeEvent *event) override
+
+
void swapColors()
A function switching primary and secondary color.
The IntelliToolFloodFill class represents a tool to flood FIll a certian area.
+
void colorPickerSwapColors()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
The IntelliToolCircle class represents a tool to draw a circle.
-
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
-
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:24
-
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:41
+
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
+
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:19
+
virtual void onMouseMoved(int x, int y)
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliTool.cpp:42
The IntelliToolPolygon managed the Drawing of Polygonforms.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
-
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:46
-
The IntelliRasterImage manages a Rasterimage.
+
virtual void onWheelScrolled(int value)
A function managing the scroll event. A positive value means scrolling outwards. Call this in child c...
Definition: IntelliTool.cpp:47
+
The IntelliRasterImage manages a RASTERIMAGE.
-
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
-
The IntelliToolFloodFill class represents a tool to draw a line.
+
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)
The addLayer adds a layer to the current project/ painting area.
+
ImageType
The Types, which an Image can be.
Definition: IntelliImage.h:26
+
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.
+
+
The IntelliToolFloodFill class represents a tool to draw a line.
-Include dependency graph for PaintingArea.h:
-
-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
-

Go to the source code of this file.

diff --git a/docs/html/_painting_area_8h__incl.dot b/docs/html/_painting_area_8h__incl.dot index 8afac13..40d5420 100644 --- a/docs/html/_painting_area_8h__incl.dot +++ b/docs/html/_painting_area_8h__incl.dot @@ -15,34 +15,57 @@ digraph "intelliphoto/src/Layer/PaintingArea.h" Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node6 [label="QList",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="Image/IntelliImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_image_8h.html",tooltip=" "]; - Node7 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 [label="GUI/IntelliPhotoGui.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_photo_gui_8h.html",tooltip=" "]; Node7 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="QSize",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node7 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="QtWidgets",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node7 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node10 [label="Image/IntelliRasterImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8h.html",tooltip=" "]; - Node10 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node11 [label="Image/IntelliShapedImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8h.html",tooltip=" "]; - Node11 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node11 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node11 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 [label="IntelliHelper/IntelliHelper.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_helper_8h.html",tooltip=" "]; - Node12 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node13 [label="Tool/IntelliTool.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8h.html",tooltip=" "]; - Node13 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node14 [label="IntelliHelper/IntelliColor\lPicker.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_color_picker_8h.html",tooltip=" "]; - Node14 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node14 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node14 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node15 [label="QColorDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node13 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="QPixmap",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="QMainWindow",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="QGridLayout",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="QPushButton",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="QTextEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 [label="QLabel",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node15 [label="QLineEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 [label="Image/IntelliImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_image_8h.html",tooltip=" "]; + Node16 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 -> Node17 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node17 [label="QSize",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node16 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 -> Node18 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node18 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node16 -> Node19 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node19 [label="IntelliHelper/IntelliTriangulation.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_triangulation_8h.html",tooltip=" "]; + Node19 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node19 -> Node18 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 -> Node20 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node20 [label="IntelliHelper/IntelliRender\lSettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_render_settings_8h.html",tooltip=" "]; + Node1 -> Node21 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node21 [label="Image/IntelliRasterImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_raster_image_8h.html",tooltip=" "]; + Node21 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node22 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node22 [label="Image/IntelliShapedImage.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_shaped_image_8h.html",tooltip=" "]; + Node22 -> Node21 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node22 -> Node18 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node23 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node23 [label="Tool/IntelliTool.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_tool_8h.html",tooltip=" "]; + Node23 -> Node24 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node24 [label="IntelliHelper/IntelliColor\lPicker.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_color_picker_8h.html",tooltip=" "]; + Node24 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node24 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node24 -> Node25 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node25 [label="QColorDialog",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node23 -> Node26 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node26 [label="IntelliHelper/IntelliToolsettings.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_toolsettings_8h.html",tooltip=" "]; + Node23 -> Node18 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node24 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; } diff --git a/docs/html/_painting_area_8h_source.html b/docs/html/_painting_area_8h_source.html index 21a5b94..bddb4f6 100644 --- a/docs/html/_painting_area_8h_source.html +++ b/docs/html/_painting_area_8h_source.html @@ -99,158 +99,184 @@ $(document).ready(function(){initNavTree('_painting_area_8h_source.html','');});
7 #include <QPoint>
8 #include <QWidget>
9 #include <QList>
-
10 #include "Image/IntelliImage.h"
-
11 #include "Image/IntelliRasterImage.h"
-
12 #include "Image/IntelliShapedImage.h"
-
13 #include "Tool/IntelliTool.h"
-
14 #include "IntelliHelper/IntelliColorPicker.h"
-
15 
-
24 struct LayerObject{
-
25  IntelliImage* image;
-
26  int width;
-
27  int height;
-
28  int widthOffset;
-
29  int heightOffset;
-
30  int alpha=255;
-
31 };
-
32 
-
36 class PaintingArea : public QWidget
-
37 {
-
38  // Declares our class as a QObject which is the base class
-
39  // for all Qt objects
-
40  // QObjects handle events
-
41  Q_OBJECT
-
42  friend IntelliTool;
-
43 public:
-
50  PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent = nullptr);
-
51 
-
55  ~PaintingArea() override;
-
56 
-
57  // Handles all events
+
10 #include "GUI/IntelliPhotoGui.h"
+
11 #include "Image/IntelliImage.h"
+
12 #include "Image/IntelliRasterImage.h"
+
13 #include "Image/IntelliShapedImage.h"
+
14 #include "Tool/IntelliTool.h"
+
15 #include "IntelliHelper/IntelliColorPicker.h"
+
16 
+
25 struct LayerObject {
+
26  IntelliImage* image;
+
27  int width;
+
28  int height;
+
29  int widthOffset;
+
30  int heightOffset;
+
31  int alpha=255;
+
32 };
+
33 
+
37 class PaintingArea : public QWidget
+
38 {
+
39 // Declares our class as a QObject which is the base class
+
40 // for all Qt objects
+
41 // QObjects handle events
+
42 Q_OBJECT
+
43 friend IntelliTool;
+
44 friend IntelliPhotoGui;
+
45 public:
+
52 PaintingArea(int maxWidth=600, int maxHeight=600, QWidget*parent = nullptr);
+
53 
+
57 ~PaintingArea() override;
58 
-
64  bool open(const QString &fileName);
-
71  bool save(const QString &fileName, const char *fileFormat);
-
72 
-
82  int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, ImageType type = ImageType::Raster_Image);
-
93  int addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, ImageType type = ImageType::Raster_Image);
-
98  void deleteLayer(int index);
-
103  void setLayerToActive(int index);
-
109  void setAlphaOfLayer(int index, int alpha);
-
117  void floodFill(int r, int g, int b, int a);
-
123  void movePositionActive(int x, int y);
-
128  void moveActiveLayer(int idx);
-
129 
-
130  //change properties of colorPicker
-
134  void colorPickerSetFirstColor();
-
138  void colorPickerSetSecondColor();
-
142  void colorPickerSwitchColor();
-
143 
-
144  // Create tools
-
145  void createPenTool();
-
146  void createPlainTool();
-
147  void createLineTool();
-
148  void createRectangleTool();
-
149  void createCircleTool();
-
150  void createPolygonTool();
-
151  void createFloodFillTool();
-
152 
-
157  int getWidthOfActive();
-
162  int getHeightOfActive();
-
163 
-
164 public slots:
-
165  // Events to handle
-
170  void slotActivateLayer(int a);
-
174  void slotDeleteActiveLayer();
-
175 
-
176 protected:
-
177  void mousePressEvent(QMouseEvent *event) override;
-
178  void mouseMoveEvent(QMouseEvent *event) override;
-
179  void mouseReleaseEvent(QMouseEvent *event) override;
-
180 
-
181  void wheelEvent(QWheelEvent *event) override;
-
182  // Updates the painting area where we are painting
-
183  void paintEvent(QPaintEvent *event) override;
-
184 
-
185  // Makes sure the area we are drawing on remains
-
186  // as large as the widget
-
187  void resizeEvent(QResizeEvent *event) override;
+
59 // Handles all events
+
60 
+
66 bool open(const QString &filePath);
+
73 bool save(const QString &filePath, const char*fileFormat);
+
74 
+
84 int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type = IntelliImage::ImageType::RASTERIMAGE);
+
95 int addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type = IntelliImage::ImageType::RASTERIMAGE);
+
100 void deleteLayer(int idx);
+
105 void setLayerActive(int idx);
+
111 void setLayerAlpha(int idx, int alpha);
+
119 void floodFill(int r, int g, int b, int a);
+
125 void movePositionActive(int x, int y);
+
130 void moveActiveLayer(int idx);
+
131 
+
132 //change properties of colorPicker
+
136 void colorPickerSetFirstColor();
+
140 void colorPickerSetSecondColor();
+
144 void colorPickerSwapColors();
+
145 
+
146 // Create tools
+
147 void createPenTool();
+
148 void createPlainTool();
+
149 void createLineTool();
+
150 void createRectangleTool();
+
151 void createCircleTool();
+
152 void createPolygonTool();
+
153 void createFloodFillTool();
+
154 
+
159 int getWidthOfActive();
+
164 int getHeightOfActive();
+
165 
+
166 IntelliImage::ImageType getTypeOfImageRealLayer();
+
167 
+
168 std::vector<QPoint> getPolygonDataOfRealLayer();
+
169 
+
170 int getNumberOfActiveLayer();
+
171 
+
172 IntelliImage* getImageOfActiveLayer();
+
173 
+
174 IntelliToolsettings Toolsettings;
+
175 IntelliColorPicker colorPicker;
+
176 
+
177 public slots:
+
178 // Events to handle
+
183 void slotActivateLayer(int a);
+
187 void slotDeleteActiveLayer();
188 
-
189 private:
-
190  void setUp(int maxWidth, int maxHeight);
-
191  void activateUpperLayer();
-
192  void activateLowerLayer();
+
189 protected:
+
190 void mousePressEvent(QMouseEvent*event) override;
+
191 void mouseMoveEvent(QMouseEvent*event) override;
+
192 void mouseReleaseEvent(QMouseEvent*event) override;
193 
-
194  QImage* Canvas;
-
195  int maxWidth;
-
196  int maxHeight;
+
194 void wheelEvent(QWheelEvent*event) override;
+
195 // Updates the painting area where we are painting
+
196 void paintEvent(QPaintEvent*event) override;
197 
-
198  IntelliTool* Tool;
-
199  IntelliColorPicker colorPicker;
-
200 
-
201  std::vector<LayerObject> layerBundle;
-
202  int activeLayer=-1;
-
203 
-
204  void assembleLayers(bool forSaving=false);
-
205 
-
206  void resizeImage(QImage *image_res, const QSize &newSize);
+
198 // Makes sure the area we are drawing on remains
+
199 // as large as the widget
+
200 void resizeEvent(QResizeEvent*event) override;
+
201 
+
202 private:
+
203 void setLayerDimensions(int maxWidth, int maxHeight);
+
204 void selectLayerUp();
+
205 void selectLayerDown();
+
206 IntelliTool* copyActiveTool();
207 
-
208  // Helper for Tool
-
209  void createTempLayerAfter(int idx);
-
210 };
+
208 QImage* Canvas;
+
209 int maxWidth;
+
210 int maxHeight;
211 
-
212 #endif
+
212 IntelliRenderSettings renderSettings;
+
213 IntelliTool* Tool;
+
214 IntelliPhotoGui* DumpyGui;
+
215 
+
216 std::vector<LayerObject> layerBundle;
+
217 int activeLayer=-1;
+
218 
+
219 void drawLayers(bool forSaving=false);
+
220 
+
221 void resizeLayer(QImage*image_res, const QSize &newSize);
+
222 
+
223 // Helper for Tool
+
224 // TODO: Always create this layer on top and return the id here!
+
225 void createTempTopLayer(int idx);
+
226 };
+
227 
+
228 #endif
-
int getWidthOfActive()
The getWidthOfActive gets the horizontal dimensions of the active layer.
-
void createCircleTool()
-
ImageType
The Types, which an Image can be.
Definition: IntelliImage.h:14
-
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
The addLayer adds a layer to the current project/ painting area.
-
void mouseReleaseEvent(QMouseEvent *event) override
-
void createRectangleTool()
+
int getWidthOfActive()
The getWidthOfActive gets the horizontal dimensions of the active layer.
+
void createCircleTool()
+
IntelliImage * getImageOfActiveLayer()
+
void mouseReleaseEvent(QMouseEvent *event) override
+
void createRectangleTool()
-
bool open(const QString &fileName)
The open method is used for loading a picture into the current layer.
-
int widthOffset
Definition: PaintingArea.h:28
-
void setLayerToActive(int index)
The setLayerToActive method marks a specific layer as active.
-
void floodFill(int r, int g, int b, int a)
The floodFill method fills a the active layer with a given color.
-
int heightOffset
Definition: PaintingArea.h:29
-
bool save(const QString &fileName, const char *fileFormat)
The save method is used for exporting the current project as one picture.
-
int getHeightOfActive()
The getHeightOfActive gets the vertical dimensions of the active layer.
-
void createPlainTool()
-
void wheelEvent(QWheelEvent *event) override
-
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:36
-
The LayerObject struct holds all the information needed to construct a layer.
Definition: PaintingArea.h:24
-
void deleteLayer(int index)
The deleteLayer method removes a layer at a given index.
-
void createPenTool()
-
void mousePressEvent(QMouseEvent *event) override
-
+
bool save(const QString &filePath, const char *fileFormat)
The save method is used for exporting the current project as one picture.
+
void setLayerAlpha(int idx, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
+
+
void setLayerActive(int idx)
The setLayerToActive method marks a specific layer as active.
+
int widthOffset
Definition: PaintingArea.h:29
+
The IntelliPhotoGui class handles the graphical user interface for the intelliPhoto program.
+
void floodFill(int r, int g, int b, int a)
The floodFill method fills a the active layer with a given color.
+
int heightOffset
Definition: PaintingArea.h:30
+
void deleteLayer(int idx)
The deleteLayer method removes a layer at a given idx.
+
int getHeightOfActive()
The getHeightOfActive gets the vertical dimensions of the active layer.
+
void createPlainTool()
+
void wheelEvent(QWheelEvent *event) override
+
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:37
+
The LayerObject struct holds all the information needed to construct a layer.
Definition: PaintingArea.h:25
+
void createPenTool()
+
void mousePressEvent(QMouseEvent *event) override
-
int alpha
Definition: PaintingArea.h:30
-
void createLineTool()
-
void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
-
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
-
void colorPickerSwitchColor()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
+
int alpha
Definition: PaintingArea.h:31
+
void createLineTool()
+
void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
+
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
+
int addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)
The addLayerAt adds a layer to the current project/ painting area at a specific position in the layer...
-
int width
Definition: PaintingArea.h:26
+
IntelliImage::ImageType getTypeOfImageRealLayer()
+
int width
Definition: PaintingArea.h:27
~PaintingArea() override
This deconstructor is used to clear up the memory and remove the currently active window.
-
void mouseMoveEvent(QMouseEvent *event) override
-
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
-
void slotDeleteActiveLayer()
The slotDeleteActiveLayer method handles the deletion of the active layer.
-
void createPolygonTool()
-
int addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
The addLayerAt adds a layer to the current project/ painting area at a specific position in the layer...
-
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
+
void mouseMoveEvent(QMouseEvent *event) override
+
+
int getNumberOfActiveLayer()
+
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:14
+
void slotDeleteActiveLayer()
The slotDeleteActiveLayer method handles the deletion of the active layer.
+
bool open(const QString &filePath)
The open method is used for loading a picture into the current layer.
+
void createPolygonTool()
+
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
+
IntelliColorPicker colorPicker
Definition: PaintingArea.h:175
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)
PaintingArea is the constructor of the PaintingArea class, which initiates the working environment.
-
int height
Definition: PaintingArea.h:27
-
void createFloodFillTool()
-
void slotActivateLayer(int a)
The slotActivateLayer method handles the event of selecting one layer as active.
+
int height
Definition: PaintingArea.h:28
+
void createFloodFillTool()
+
void slotActivateLayer(int a)
The slotActivateLayer method handles the event of selecting one layer as active.
The IntelliColorPicker manages the selected colors for one whole project.
-
void paintEvent(QPaintEvent *event) override
-
void setAlphaOfLayer(int index, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
-
IntelliImage * image
Definition: PaintingArea.h:25
-
void resizeEvent(QResizeEvent *event) override
-
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
-
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:24
+
void paintEvent(QPaintEvent *event) override
+
+
IntelliImage * image
Definition: PaintingArea.h:26
+
std::vector< QPoint > getPolygonDataOfRealLayer()
+
IntelliToolsettings Toolsettings
Definition: PaintingArea.h:174
+
void resizeEvent(QResizeEvent *event) override
+
void colorPickerSwapColors()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
+
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
+
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:19
+
+
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)
The addLayer adds a layer to the current project/ painting area.
+
ImageType
The Types, which an Image can be.
Definition: IntelliImage.h:26
virtual ~IntelliColorPicker()
IntelliColorPicker destructor clears up his used memory, if there is some.
QColor getSecondColor()
A function to read the secondary selected color.
-
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:36
+
The PaintingArea class manages the methods and stores information about the current painting area,...
Definition: PaintingArea.h:37
-
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
+
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:14
QColor getFirstColor()
A function to read the primary selected color.
IntelliColorPicker()
IntelliColorPicker constructor, setting 2 preset colors, be careful, theese color may change in produ...
diff --git a/docs/html/annotated.html b/docs/html/annotated.html index 817bc92..ab6e5e8 100644 --- a/docs/html/annotated.html +++ b/docs/html/annotated.html @@ -95,19 +95,21 @@ $(document).ready(function(){initNavTree('annotated.html','');}); - - - - - - - - - - - - - + + + + + + + + + + + + + + +
 CIntelliColorPickerThe IntelliColorPicker manages the selected colors for one whole project
 CIntelliImageAn abstract class which manages the basic IntelliImage operations
 CIntelliPhotoGuiHandles the graphical user interface for the intelliPhoto program
 CIntelliRasterImageThe IntelliRasterImage manages a Rasterimage
 CIntelliShapedImageThe IntelliShapedImage manages a Shapedimage
 CIntelliToolAn abstract class that manages the basic events, like mouse clicks or scrolls events
 CIntelliToolCircleTool to draw a circle
 CIntelliToolFloodFillTool to flood FIll a certian area
 CIntelliToolLineThe IntelliToolFloodFill class represents a tool to draw a line
 CIntelliToolPenTool to draw a line
 CIntelliToolPlainToolTool to fill the whole canvas with one color
 CIntelliToolPolygonThe IntelliToolPolygon managed the Drawing of Polygonforms
 CIntelliToolRectangleTool to draw a rectangle
 CLayerObjectThe LayerObject struct holds all the information needed to construct a layer
 CPaintingAreaManages the methods and stores information about the current painting area, which is the currently opened project
 CTriangleThe Triangle struct holds the 3 vertices of a triangle
 CIntelliRasterImageThe IntelliRasterImage manages a RASTERIMAGE
 CIntelliRenderSettings
 CIntelliShapedImageThe IntelliShapedImage manages a Shapedimage
 CIntelliToolAn abstract class that manages the basic events, like mouse clicks or scrolls events
 CIntelliToolCircleTool to draw a circle
 CIntelliToolFloodFillTool to flood FIll a certian area
 CIntelliToolLineThe IntelliToolFloodFill class represents a tool to draw a line
 CIntelliToolPenTool to draw a line
 CIntelliToolPlainToolTool to fill the whole canvas with one color
 CIntelliToolPolygonThe IntelliToolPolygon managed the Drawing of Polygonforms
 CIntelliToolRectangleTool to draw a rectangle
 CIntelliToolsettings
 CLayerObjectThe LayerObject struct holds all the information needed to construct a layer
 CPaintingAreaManages the methods and stores information about the current painting area, which is the currently opened project
 CTriangleThe Triangle struct holds the 3 vertices of a triangle
diff --git a/docs/html/annotated_dup.js b/docs/html/annotated_dup.js index a58b9a8..091e80a 100644 --- a/docs/html/annotated_dup.js +++ b/docs/html/annotated_dup.js @@ -4,6 +4,7 @@ var annotated_dup = [ "IntelliImage", "class_intelli_image.html", "class_intelli_image" ], [ "IntelliPhotoGui", "class_intelli_photo_gui.html", "class_intelli_photo_gui" ], [ "IntelliRasterImage", "class_intelli_raster_image.html", "class_intelli_raster_image" ], + [ "IntelliRenderSettings", "class_intelli_render_settings.html", "class_intelli_render_settings" ], [ "IntelliShapedImage", "class_intelli_shaped_image.html", "class_intelli_shaped_image" ], [ "IntelliTool", "class_intelli_tool.html", "class_intelli_tool" ], [ "IntelliToolCircle", "class_intelli_tool_circle.html", "class_intelli_tool_circle" ], @@ -13,6 +14,7 @@ var annotated_dup = [ "IntelliToolPlainTool", "class_intelli_tool_plain_tool.html", "class_intelli_tool_plain_tool" ], [ "IntelliToolPolygon", "class_intelli_tool_polygon.html", "class_intelli_tool_polygon" ], [ "IntelliToolRectangle", "class_intelli_tool_rectangle.html", "class_intelli_tool_rectangle" ], + [ "IntelliToolsettings", "class_intelli_toolsettings.html", "class_intelli_toolsettings" ], [ "LayerObject", "struct_layer_object.html", "struct_layer_object" ], [ "PaintingArea", "class_painting_area.html", "class_painting_area" ], [ "Triangle", "struct_triangle.html", "struct_triangle" ] diff --git a/docs/html/class_intelli_color_picker-members.html b/docs/html/class_intelli_color_picker-members.html index 3548ba9..8b26608 100644 --- a/docs/html/class_intelli_color_picker-members.html +++ b/docs/html/class_intelli_color_picker-members.html @@ -98,7 +98,7 @@ $(document).ready(function(){initNavTree('class_intelli_color_picker.html','');} IntelliColorPicker()IntelliColorPicker setFirstColor(QColor Color)IntelliColorPicker setSecondColor(QColor Color)IntelliColorPicker - switchColors()IntelliColorPicker + swapColors()IntelliColorPicker ~IntelliColorPicker()IntelliColorPickervirtual diff --git a/docs/html/class_intelli_color_picker.html b/docs/html/class_intelli_color_picker.html index 087b636..6d692e6 100644 --- a/docs/html/class_intelli_color_picker.html +++ b/docs/html/class_intelli_color_picker.html @@ -107,9 +107,9 @@ Public Member Functions virtual ~IntelliColorPicker ()  IntelliColorPicker destructor clears up his used memory, if there is some. More...
  -void switchColors () - A function switching primary and secondary color. More...
-  +void swapColors () + A function switching primary and secondary color. More...
+  QColor getFirstColor ()  A function to read the primary selected color. More...
  @@ -198,11 +198,6 @@ Public Member Functions
Returns
Returns the primary color.

Definition at line 16 of file IntelliColorPicker.cpp.

-
-Here is the caller graph for this function:
-
-
-
@@ -225,11 +220,6 @@ Here is the caller graph for this function:
Returns
Returns the secondary color.

Definition at line 20 of file IntelliColorPicker.cpp.

-
-Here is the caller graph for this function:
-
-
-
@@ -258,11 +248,6 @@ Here is the caller graph for this function:

Definition at line 24 of file IntelliColorPicker.cpp.

-
-Here is the caller graph for this function:
-
-
-
@@ -291,22 +276,17 @@ Here is the caller graph for this function:

Definition at line 28 of file IntelliColorPicker.cpp.

-
-Here is the caller graph for this function:
-
-
-
- -

◆ switchColors()

+ +

◆ swapColors()

- + @@ -317,11 +297,6 @@ Here is the caller graph for this function:

A function switching primary and secondary color.

Definition at line 12 of file IntelliColorPicker.cpp.

-
-Here is the caller graph for this function:
-
-
-
diff --git a/docs/html/class_intelli_color_picker.js b/docs/html/class_intelli_color_picker.js index efec690..4d29d13 100644 --- a/docs/html/class_intelli_color_picker.js +++ b/docs/html/class_intelli_color_picker.js @@ -6,5 +6,5 @@ var class_intelli_color_picker = [ "getSecondColor", "class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415", null ], [ "setFirstColor", "class_intelli_color_picker.html#a7e2ddbbbfbed383f06b24e5bf6b27ae8", null ], [ "setSecondColor", "class_intelli_color_picker.html#a86bf4a940e4a0e465e30cbdf28748931", null ], - [ "switchColors", "class_intelli_color_picker.html#a437a6f20bf2fc0a4cbaf4c030c2a26d9", null ] + [ "swapColors", "class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e", null ] ]; \ No newline at end of file diff --git a/docs/html/class_intelli_color_picker_a55568fbf5dc783f06284b7031ffe9415_icgraph.dot b/docs/html/class_intelli_color_picker_a55568fbf5dc783f06284b7031ffe9415_icgraph.dot index 7857846..41eed46 100644 --- a/docs/html/class_intelli_color_picker_a55568fbf5dc783f06284b7031ffe9415_icgraph.dot +++ b/docs/html/class_intelli_color_picker_a55568fbf5dc783f06284b7031ffe9415_icgraph.dot @@ -9,4 +9,6 @@ digraph "IntelliColorPicker::getSecondColor" Node2 [label="PaintingArea::colorPicker\lSetSecondColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#ae261acaaa346610dfed489dbac17e789",tooltip="The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color."]; Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; + Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliPhotoGui::UpdateGui",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4",tooltip=" "]; } diff --git a/docs/html/class_intelli_color_picker_aae2eb27b928fe9388b9398b0556303b7_icgraph.dot b/docs/html/class_intelli_color_picker_aae2eb27b928fe9388b9398b0556303b7_icgraph.dot index 26e1cc5..ae35542 100644 --- a/docs/html/class_intelli_color_picker_aae2eb27b928fe9388b9398b0556303b7_icgraph.dot +++ b/docs/html/class_intelli_color_picker_aae2eb27b928fe9388b9398b0556303b7_icgraph.dot @@ -14,13 +14,15 @@ digraph "IntelliColorPicker::getFirstColor" Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node5 [label="IntelliToolPen::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205",tooltip="A function managing the left click pressed of a mouse. Starting the drawing procedure."]; Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; + Node6 [label="IntelliToolLine::onMouse\lLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846",tooltip="A function managing the left click pressed of a mouse. Sets the starting point of the line."]; Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="IntelliToolLine::onMouse\lLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846",tooltip="A function managing the left click pressed of a mouse. Sets the starting point of the line."]; + Node7 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; Node1 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node8 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; Node1 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 [label="IntelliToolPen::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a58d1d636497b630647ce0c4d652737c2",tooltip="A function managing the mouse moved event. To draw the line."]; Node1 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node10 [label="IntelliToolLine::onMouse\lMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b",tooltip="A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po..."]; + Node1 -> Node11 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="IntelliPhotoGui::UpdateGui",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4",tooltip=" "]; } diff --git a/docs/html/class_intelli_color_picker_aec499265ae28ce1b54be88222e74292e_icgraph.dot b/docs/html/class_intelli_color_picker_aec499265ae28ce1b54be88222e74292e_icgraph.dot new file mode 100644 index 0000000..a6c880e --- /dev/null +++ b/docs/html/class_intelli_color_picker_aec499265ae28ce1b54be88222e74292e_icgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliColorPicker::swapColors" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliColorPicker\l::swapColors",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function switching primary and secondary color."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="PaintingArea::colorPicker\lSwapColors",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#acff4563d006fda491469bd41778d07eb",tooltip="The colorPickerSwitchColor swaps the primary color with the secondary drawing color."]; +} diff --git a/docs/html/class_intelli_image-members.html b/docs/html/class_intelli_image-members.html index 1381841..0b2d551 100644 --- a/docs/html/class_intelli_image-members.html +++ b/docs/html/class_intelli_image-members.html @@ -98,16 +98,22 @@ $(document).ready(function(){initNavTree('class_intelli_image.html','');}); - - - + + + + + - - - + + + + + + +
void IntelliColorPicker::switchColors void IntelliColorPicker::swapColors ( )
drawPixel(const QPoint &p1, const QColor &color)IntelliImagevirtual
drawPlain(const QColor &color)IntelliImagevirtual
drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)IntelliImagevirtual
getDeepCopy()=0IntelliImagepure virtual
getDisplayable(const QSize &displaySize, int alpha)=0IntelliImagepure virtual
getDisplayable(int alpha=255)=0IntelliImagepure virtual
fastRendererIntelliImageprotected
getDeepCopy()=0IntelliImagepure virtual
getDisplayable(const QSize &displaySize, int alpha)=0IntelliImagepure virtual
getDisplayable(int alpha=255)=0IntelliImagepure virtual
getImageData()IntelliImagevirtual
getPixelColor(QPoint &point)IntelliImagevirtual
getPolygonData()IntelliImageinlinevirtual
imageDataIntelliImageprotected
IntelliImage(int weight, int height)IntelliImage
loadImage(const QString &fileName)IntelliImagevirtual
getTypeOfImage()IntelliImageinlinevirtual
imageDataIntelliImageprotected
ImageType enum nameIntelliImage
IntelliImage(int width, int height, bool fastRendererOn)IntelliImage
loadImage(const QString &filePath)IntelliImagevirtual
resizeImage(QImage *image, const QSize &newSize)IntelliImageprotected
setPolygon(const std::vector< QPoint > &polygonData)=0IntelliImagepure virtual
TypeOfImageIntelliImageprotected
updateRendererSetting(bool fastRendererOn)IntelliImagevirtual
~IntelliImage()=0IntelliImagepure virtual
diff --git a/docs/html/class_intelli_image.html b/docs/html/class_intelli_image.html index db8463b..2a1ec63 100644 --- a/docs/html/class_intelli_image.html +++ b/docs/html/class_intelli_image.html @@ -87,6 +87,7 @@ $(document).ready(function(){initNavTree('class_intelli_image.html','');});
+Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | @@ -103,14 +104,27 @@ $(document).ready(function(){initNavTree('class_intelli_image.html','');});
Inheritance diagram for IntelliImage:
-
Inheritance graph
-
[legend]
+
+ + +IntelliRasterImage +IntelliShapedImage + +
+ + + + +

+Public Types

enum  ImageType { ImageType::RASTERIMAGE, +ImageType::SHAPEDIMAGE + }
 The Types, which an Image can be. More...
 
- - - + + + @@ -144,12 +158,20 @@ Public Member Functions - - - + + + + + + + + + + +

Public Member Functions

 IntelliImage (int weight, int height)
 The Construcor of the IntelliImage. Given the Image dimensions. More...
 
 IntelliImage (int width, int height, bool fastRendererOn)
 The Construcor of the IntelliImage. Given the Image dimensions. More...
 
virtual ~IntelliImage ()=0
 An Abstract Destructor. More...
 
virtual std::vector< QPoint > getPolygonData ()
 A function that returns the Polygondata if existent. More...
 
virtual bool loadImage (const QString &fileName)
 A function that loads and sclaes an image to the fitting dimensions. More...
 
virtual ImageType getTypeOfImage ()
 
virtual bool loadImage (const QString &filePath)
 A function that loads and sclaes an image to the fitting dimensions. More...
 
virtual QColor getPixelColor (QPoint &point)
 A function that returns the pixelcolor at a certain point. More...
 
virtual void updateRendererSetting (bool fastRendererOn)
 updateRendererSetting updates the existing image format to the new format. More...
 
virtual QImage getImageData ()
 getImageData returns the data of the current image. More...
 
@@ -161,14 +183,51 @@ Protected Attributes + + + + + +

Protected Member Functions

QImage imageData
 The underlying image data. More...
 
ImageType TypeOfImage
 The Type, an Image is. More...
 
bool fastRenderer
 fastRenderer is the flag that represents the usage of 8bit pictures. More...
 

Detailed Description

An abstract class which manages the basic IntelliImage operations.

-

Definition at line 24 of file IntelliImage.h.

-

Constructor & Destructor Documentation

- -

◆ IntelliImage()

+

Definition at line 19 of file IntelliImage.h.

+

Member Enumeration Documentation

+ +

◆ ImageType

+ +
+
+ + + + + +
+ + + + +
enum IntelliImage::ImageType
+
+strong
+
+ +

The Types, which an Image can be.

+ + + +
Enumerator
RASTERIMAGE 
SHAPEDIMAGE 
+ +

Definition at line 26 of file IntelliImage.h.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ IntelliImage()

@@ -177,13 +236,19 @@ Protected Attributes IntelliImage::IntelliImage ( int  - weight, + width, int  - height  + height, + + + + + bool  + fastRendererOn  @@ -196,8 +261,9 @@ Protected Attributes

The Construcor of the IntelliImage. Given the Image dimensions.

Parameters
- + +
weight- The weight of the Image.
width- The width of the Image.
height- The height of the Image.
fastRendererOn- Represents the flag for 8bit picture handelling.
@@ -231,7 +297,7 @@ Protected Attributes

An Abstract Destructor.

-

Definition at line 10 of file IntelliImage.cpp.

+

Definition at line 18 of file IntelliImage.cpp.

@@ -262,11 +328,6 @@ Protected Attributes

An abstract function that calculates the visiblity of the Image data if needed.

Implemented in IntelliRasterImage.

-
-Here is the caller graph for this function:
-
-
-
@@ -327,12 +388,7 @@ Here is the caller graph for this function: -

Definition at line 65 of file IntelliImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 88 of file IntelliImage.cpp.

@@ -379,12 +435,7 @@ Here is the caller graph for this function: -

Definition at line 44 of file IntelliImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 55 of file IntelliImage.cpp.

@@ -420,12 +471,7 @@ Here is the caller graph for this function: -

Definition at line 76 of file IntelliImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 105 of file IntelliImage.cpp.

@@ -479,12 +525,7 @@ Here is the caller graph for this function: -

Definition at line 55 of file IntelliImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 72 of file IntelliImage.cpp.

@@ -512,7 +553,7 @@ Here is the caller graph for this function:

A function that copys all that returns a [allocated] Image.

-
Returns
A [allocated] Image with all the properties of the instance.
+
Returns
An [allocated] image with all the properties of the instance.

Implemented in IntelliShapedImage, and IntelliRasterImage.

@@ -601,6 +642,35 @@ Here is the caller graph for this function:

Implemented in IntelliShapedImage, and IntelliRasterImage.

+ + + +

◆ getImageData()

+ +
+
+ + + + + +
+ + + + + + + +
QImage IntelliImage::getImageData ()
+
+virtual
+
+ +

getImageData returns the data of the current image.

+ +

Definition at line 123 of file IntelliImage.cpp.

+
@@ -636,12 +706,7 @@ Here is the caller graph for this function:
Returns
The color of the Pixel as QColor.
-

Definition at line 80 of file IntelliImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 115 of file IntelliImage.cpp.

@@ -673,12 +738,39 @@ Here is the caller graph for this function:

Reimplemented in IntelliShapedImage.

-

Definition at line 113 of file IntelliImage.h.

+

Definition at line 130 of file IntelliImage.h.

- -

◆ loadImage()

+ +

◆ getTypeOfImage()

+ +
+
+ + + + + +
+ + + + + + + +
virtual ImageType IntelliImage::getTypeOfImage ()
+
+inlinevirtual
+
+ +

Definition at line 134 of file IntelliImage.h.

+ +
+
+ +

◆ loadImage()

@@ -690,7 +782,7 @@ Here is the caller graph for this function:
bool IntelliImage::loadImage ( const QString &  - fileName) + filePath) @@ -704,18 +796,13 @@ Here is the caller graph for this function:

A function that loads and sclaes an image to the fitting dimensions.

Parameters
- +
fileName- The path+name of the image which to loaded.
filePath- The path+name of the image which to loaded.
Returns
True if the image could be loaded, false otherwise.
-

Definition at line 14 of file IntelliImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 22 of file IntelliImage.cpp.

@@ -753,7 +840,7 @@ Here is the caller graph for this function:
-

Definition at line 29 of file IntelliImage.cpp.

+

Definition at line 37 of file IntelliImage.cpp.

@@ -791,9 +878,71 @@ Here is the caller graph for this function:

Implemented in IntelliShapedImage, and IntelliRasterImage.

+ + + +

◆ updateRendererSetting()

+ +
+
+ + + + + +
+ + + + + + + + +
void IntelliImage::updateRendererSetting (bool fastRendererOn)
+
+virtual
+
+ +

updateRendererSetting updates the existing image format to the new format.

+
Parameters
+ + +
fastRendererOnflag for the 8bit image handeling.
+
+
+ +

Definition at line 127 of file IntelliImage.cpp.

+

Member Data Documentation

+ +

◆ fastRenderer

+ +
+
+ + + + + +
+ + + + +
bool IntelliImage::fastRenderer
+
+protected
+
+ +

fastRenderer is the flag that represents the usage of 8bit pictures.

+ +

Definition at line 47 of file IntelliImage.h.

+ +
+

◆ imageData

@@ -816,7 +965,33 @@ Here is the caller graph for this function:

The underlying image data.

-

Definition at line 32 of file IntelliImage.h.

+

Definition at line 37 of file IntelliImage.h.

+ + + + +

◆ TypeOfImage

+ +
+
+ + + + + +
+ + + + +
ImageType IntelliImage::TypeOfImage
+
+protected
+
+ +

The Type, an Image is.

+ +

Definition at line 42 of file IntelliImage.h.

diff --git a/docs/html/class_intelli_image.js b/docs/html/class_intelli_image.js index 2f5a6ea..05ac417 100644 --- a/docs/html/class_intelli_image.js +++ b/docs/html/class_intelli_image.js @@ -1,6 +1,10 @@ var class_intelli_image = [ - [ "IntelliImage", "class_intelli_image.html#a47084f1cb668ea0242ab95162cf9e902", null ], + [ "ImageType", "class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680e", [ + [ "RASTERIMAGE", "class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eadd5823fd73c42c0154fa2abbd70283b9", null ], + [ "SHAPEDIMAGE", "class_intelli_image.html#a5274ce9fcdcb2659c148e7ff916b680eac065b60ec4cf443808263527bdc0df37", null ] + ] ], + [ "IntelliImage", "class_intelli_image.html#a2c6632ff35ee0a7094a8a289eb3a8652", null ], [ "~IntelliImage", "class_intelli_image.html#ac398bfa9ddd3185508a1e36ee15d80cc", null ], [ "calculateVisiblity", "class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2", null ], [ "drawLine", "class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31", null ], @@ -10,10 +14,15 @@ var class_intelli_image = [ "getDeepCopy", "class_intelli_image.html#af6381067bdf565669f856bb589008ae9", null ], [ "getDisplayable", "class_intelli_image.html#a21c7e65b59a26db45aac3880133ef21d", null ], [ "getDisplayable", "class_intelli_image.html#a9d4daf3c48c64695105689f61c21bae0", null ], + [ "getImageData", "class_intelli_image.html#ad66fbe380ffe0e073a8cd760f8285fe3", null ], [ "getPixelColor", "class_intelli_image.html#a4576ebb6d863321c816293d7b7f9fd3f", null ], [ "getPolygonData", "class_intelli_image.html#aaf9f3e8db8666850024bee9aad9966ba", null ], - [ "loadImage", "class_intelli_image.html#aec0e9c8184d89dee33fd9adefbd2f8aa", null ], + [ "getTypeOfImage", "class_intelli_image.html#af6b09c8d1d6b54a7e8a4e7286f3e503f", null ], + [ "loadImage", "class_intelli_image.html#ae231800aba38c96074bbe9bb6e341d4e", null ], [ "resizeImage", "class_intelli_image.html#a177403ab9585d4ba31984a644c54d310", null ], [ "setPolygon", "class_intelli_image.html#aa4b3f4631bd972456917275afb9fd309", null ], - [ "imageData", "class_intelli_image.html#a2431be82e9e85dd34b62a7f7cba053c2", null ] + [ "updateRendererSetting", "class_intelli_image.html#ae4dbaefabce4ec5bec37f5b95e2f62e2", null ], + [ "fastRenderer", "class_intelli_image.html#adade0f6990152f09d953067a51511b9c", null ], + [ "imageData", "class_intelli_image.html#a2431be82e9e85dd34b62a7f7cba053c2", null ], + [ "TypeOfImage", "class_intelli_image.html#ac460f75e1fa7e44b00a65e7fddac5b80", null ] ]; \ No newline at end of file diff --git a/docs/html/class_intelli_image.png b/docs/html/class_intelli_image.png new file mode 100644 index 0000000000000000000000000000000000000000..757436dc2418859a9075c9bef727b6cdec02fd10 GIT binary patch literal 754 zcmeAS@N?(olHy`uVBq!ia0vp^r9j-l!3-qdT?_F9QW60^A+G=b{|AY@dpCRboC!b{ z7#}!rfUoz!Qy`b4B*-tA0jLNBuAT}pVqjou^mK6ysbG9N_u-}03Op|SvnB8UpSVBF z(a~}3_5*V@byv5t@Nr)JchvIvEN=D-5zSly!T*&@H>>Wy#`eL*f8|Mm1Ma()?31~7 z{cDqQULt?@+qc%gb!;2ftXt{nCaaQrFF5OV6+`9Sj;}pZ@&%7R*}nRtb$DXt=ECAQ zpm43k>&P81c^9nEPu+2Cr&yN7sRE7l_3IKF{7cjKz7Nt5j#j_6`byt_nFh9BhO3It zZ52DsH=_gy~D>ybC;hq3))B;9c!ymU{IQFJGJ1&0qQa`@EOp9Q#(s zo2+*5)$r?zF06?()7em{eDUp?S#tBUCszHB(a*ZE+okR%Px~jUwTYgq7CugnnZ3(9cXfpE z`->m_)jdnUCWjbrzQ$Csf^)&nT>;BivTx)5%KEn9t@GcNQgR^;tE562X5qluGiTaf zPD%UbGegDn+5)d2-_m8fN;Q6NHQ9Mx-O%$=;JxTcex=P)ZFxFBTVBN}o=yDOJ!jjq zxz9dcmHB>e?gQCnD$_394i@&h_0e$ov*yoL(d84O4t={E(H(NWS4}N$r={wC;a5Sn zzrU;#4ljPCvwTVF-*d^fE!9G?D=gIC-n#g{u8sT3rJZThcAopNvF-75(~!r1bgvYc z=uQdW*QWZ?`EHfT=6$*=j&F~e9I^dMU%i!Q)&lv(vu19+CeOc3e@|Ue%06HMW$<+M Kb6Mw<&;$TbhH%CJ literal 0 HcmV?d00001 diff --git a/docs/html/class_intelli_image__inherit__graph.dot b/docs/html/class_intelli_image__inherit__graph.dot index 229af0f..54f1a50 100644 --- a/docs/html/class_intelli_image__inherit__graph.dot +++ b/docs/html/class_intelli_image__inherit__graph.dot @@ -5,7 +5,7 @@ digraph "IntelliImage" node [fontname="Helvetica",fontsize="10",shape=record]; Node1 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="An abstract class which manages the basic IntelliImage operations."]; Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html",tooltip="The IntelliRasterImage manages a Rasterimage."]; + Node2 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html",tooltip="The IntelliRasterImage manages a RASTERIMAGE."]; Node2 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="IntelliShapedImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_shaped_image.html",tooltip="The IntelliShapedImage manages a Shapedimage."]; } diff --git a/docs/html/class_intelli_image_a2e787f1b333b59401643936ebb3dcfe1_icgraph.dot b/docs/html/class_intelli_image_a2e787f1b333b59401643936ebb3dcfe1_icgraph.dot index 40e51a4..e10d367 100644 --- a/docs/html/class_intelli_image_a2e787f1b333b59401643936ebb3dcfe1_icgraph.dot +++ b/docs/html/class_intelli_image_a2e787f1b333b59401643936ebb3dcfe1_icgraph.dot @@ -6,7 +6,9 @@ digraph "IntelliImage::drawPoint" rankdir="RL"; Node1 [label="IntelliImage::drawPoint",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A."]; Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; + Node2 [label="IntelliToolPen::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205",tooltip="A function managing the left click pressed of a mouse. Starting the drawing procedure."]; Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="IntelliToolLine::onMouse\lLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846",tooltip="A function managing the left click pressed of a mouse. Sets the starting point of the line."]; + Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; } diff --git a/docs/html/class_intelli_image_a6be622810dc2bc756054bb5769becb06_icgraph.dot b/docs/html/class_intelli_image_a6be622810dc2bc756054bb5769becb06_icgraph.dot index ac57cc0..976550d 100644 --- a/docs/html/class_intelli_image_a6be622810dc2bc756054bb5769becb06_icgraph.dot +++ b/docs/html/class_intelli_image_a6be622810dc2bc756054bb5769becb06_icgraph.dot @@ -10,9 +10,9 @@ digraph "IntelliImage::drawPlain" Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="IntelliToolPlainTool\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_plain_tool.html#ab786dd5fa80af863246013d43c4b7ac9",tooltip="A function managing the left click pressed of a mouse. Filling the whole canvas."]; Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="IntelliToolRectangle\l::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a4b5931071e21eb6949ffe357315e408b",tooltip="A function managing the mouse moved event.Drawing a rectangle to currrent mouse position."]; + Node4 [label="IntelliToolLine::onMouse\lMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b",tooltip="A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po..."]; Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliToolCircle::\lonMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#a90ee58c5390a86afc75c14ca79b91d7b",tooltip="A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse posit..."]; + Node5 [label="IntelliToolRectangle\l::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a4b5931071e21eb6949ffe357315e408b",tooltip="A function managing the mouse moved event.Drawing a rectangle to currrent mouse position."]; Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolLine::onMouse\lMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b",tooltip="A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po..."]; + Node6 [label="IntelliToolCircle::\lonMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#a90ee58c5390a86afc75c14ca79b91d7b",tooltip="A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse posit..."]; } diff --git a/docs/html/class_intelli_image_ad66fbe380ffe0e073a8cd760f8285fe3_icgraph.dot b/docs/html/class_intelli_image_ad66fbe380ffe0e073a8cd760f8285fe3_icgraph.dot new file mode 100644 index 0000000..211f7b5 --- /dev/null +++ b/docs/html/class_intelli_image_ad66fbe380ffe0e073a8cd760f8285fe3_icgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliImage::getImageData" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliImage::getImageData",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="getImageData returns the data of the current image."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliPhotoGui::UpdateGui",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4",tooltip=" "]; +} diff --git a/docs/html/class_intelli_image_ae231800aba38c96074bbe9bb6e341d4e_icgraph.dot b/docs/html/class_intelli_image_ae231800aba38c96074bbe9bb6e341d4e_icgraph.dot new file mode 100644 index 0000000..001acf9 --- /dev/null +++ b/docs/html/class_intelli_image_ae231800aba38c96074bbe9bb6e341d4e_icgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliImage::loadImage" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliImage::loadImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function that loads and sclaes an image to the fitting dimensions."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="PaintingArea::open",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a88c7e759aa8375a56129791645f46ea5",tooltip="The open method is used for loading a picture into the current layer."]; +} diff --git a/docs/html/class_intelli_image_aebbced93f4744fad81b7f141b21f4ab2_icgraph.dot b/docs/html/class_intelli_image_aebbced93f4744fad81b7f141b21f4ab2_icgraph.dot index 8765154..386f3b5 100644 --- a/docs/html/class_intelli_image_aebbced93f4744fad81b7f141b21f4ab2_icgraph.dot +++ b/docs/html/class_intelli_image_aebbced93f4744fad81b7f141b21f4ab2_icgraph.dot @@ -12,13 +12,13 @@ digraph "IntelliImage::calculateVisiblity" Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="IntelliToolPen::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205",tooltip="A function managing the left click pressed of a mouse. Starting the drawing procedure."]; Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliToolRectangle\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#ae03c307ccf66cbe3fd59e3657712368d",tooltip="A function managing the left click pressed of a mouse. Setting the originCorner and draws a rectangle..."]; + Node5 [label="IntelliToolLine::onMouse\lLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846",tooltip="A function managing the left click pressed of a mouse. Sets the starting point of the line."]; Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; + Node6 [label="IntelliToolRectangle\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#ae03c307ccf66cbe3fd59e3657712368d",tooltip="A function managing the left click pressed of a mouse. Setting the originCorner and draws a rectangle..."]; Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node7 [label="IntelliToolCircle::\lonMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ae883b8ae833c78a8867e626c600f9639",tooltip="A function managing the left click pressed of a mouse. Sets the middle point of the cricle."]; Node1 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="IntelliToolLine::onMouse\lLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846",tooltip="A function managing the left click pressed of a mouse. Sets the starting point of the line."]; + Node8 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; Node1 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 [label="IntelliTool::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c",tooltip="A function managing the left click Pressed of a Mouse. Resetting the current draw...."]; Node9 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; @@ -27,8 +27,8 @@ digraph "IntelliImage::calculateVisiblity" Node9 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node1 -> Node11 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node11 [label="IntelliTool::onMouseLeft\lReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b",tooltip="A function managing the left click Released of a Mouse. Call this in child classes!"]; @@ -41,13 +41,13 @@ digraph "IntelliImage::calculateVisiblity" Node11 -> Node15 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node15 [label="IntelliToolPen::onMouseLeft\lReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#abda7a22b9766fa4ad254324a53cab94d",tooltip="A function managing the left click released of a mouse. Merging the drawing to the active layer."]; Node11 -> Node16 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node16 [label="IntelliToolRectangle\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a94460e3ff1c19e80bde922c55f53cc43",tooltip="A function managing the left click released of a mouse. Merging the draw to the active layer."]; + Node16 [label="IntelliToolLine::onMouse\lLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#ac93f76ff20a1c111a403b298bab02482",tooltip="A function managing the left click released of a mouse."]; Node11 -> Node17 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node17 [label="IntelliToolCircle::\lonMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ad8e438ec997c57262b5efc2db4cee1a3",tooltip="A function managing the left click released of a mouse."]; + Node17 [label="IntelliToolRectangle\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a94460e3ff1c19e80bde922c55f53cc43",tooltip="A function managing the left click released of a mouse. Merging the draw to the active layer."]; Node11 -> Node18 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node18 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; + Node18 [label="IntelliToolCircle::\lonMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ad8e438ec997c57262b5efc2db4cee1a3",tooltip="A function managing the left click released of a mouse."]; Node11 -> Node19 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node19 [label="IntelliToolLine::onMouse\lLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#ac93f76ff20a1c111a403b298bab02482",tooltip="A function managing the left click released of a mouse."]; + Node19 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; Node1 -> Node20 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node20 [label="IntelliTool::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639",tooltip="A function managing the mouse moved event. Call this in child classes!"]; Node20 -> Node21 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; @@ -59,13 +59,13 @@ digraph "IntelliImage::calculateVisiblity" Node20 -> Node24 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node24 [label="IntelliToolPen::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a58d1d636497b630647ce0c4d652737c2",tooltip="A function managing the mouse moved event. To draw the line."]; Node20 -> Node25 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node25 [label="IntelliToolRectangle\l::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a4b5931071e21eb6949ffe357315e408b",tooltip="A function managing the mouse moved event.Drawing a rectangle to currrent mouse position."]; + Node25 [label="IntelliToolLine::onMouse\lMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b",tooltip="A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po..."]; Node20 -> Node26 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node26 [label="IntelliToolCircle::\lonMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#a90ee58c5390a86afc75c14ca79b91d7b",tooltip="A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse posit..."]; + Node26 [label="IntelliToolRectangle\l::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a4b5931071e21eb6949ffe357315e408b",tooltip="A function managing the mouse moved event.Drawing a rectangle to currrent mouse position."]; Node20 -> Node27 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node27 [label="IntelliToolLine::onMouse\lMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b",tooltip="A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po..."]; + Node27 [label="IntelliToolCircle::\lonMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#a90ee58c5390a86afc75c14ca79b91d7b",tooltip="A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse posit..."]; Node20 -> Node28 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node28 [label="IntelliToolPolygon\l::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922",tooltip="A function managing the mouse moved event."]; Node1 -> Node29 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node29 [label="PaintingArea::open",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a1f597740b4d7b4bc2e24c51f8cb0b6eb",tooltip="The open method is used for loading a picture into the current layer."]; + Node29 [label="PaintingArea::open",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a88c7e759aa8375a56129791645f46ea5",tooltip="The open method is used for loading a picture into the current layer."]; } diff --git a/docs/html/class_intelli_image_af3c859f5c409e37051edfd9e9fbca056_icgraph.dot b/docs/html/class_intelli_image_af3c859f5c409e37051edfd9e9fbca056_icgraph.dot index 09a88c6..6aecc8a 100644 --- a/docs/html/class_intelli_image_af3c859f5c409e37051edfd9e9fbca056_icgraph.dot +++ b/docs/html/class_intelli_image_af3c859f5c409e37051edfd9e9fbca056_icgraph.dot @@ -8,7 +8,5 @@ digraph "IntelliImage::drawPixel" Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 [label="IntelliToolFloodFill\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_flood_fill.html#ac85e3cb6233508ff9612833a8d9e3961",tooltip="A function managing the left click pressed of a mouse. Sets the point to flood fill around and does t..."]; Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node3 [label="IntelliToolPen::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205",tooltip="A function managing the left click pressed of a mouse. Starting the drawing procedure."]; - Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; + Node3 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; } diff --git a/docs/html/class_intelli_photo_gui-members.html b/docs/html/class_intelli_photo_gui-members.html index bbb5fa7..a0aab34 100644 --- a/docs/html/class_intelli_photo_gui-members.html +++ b/docs/html/class_intelli_photo_gui-members.html @@ -95,6 +95,7 @@ $(document).ready(function(){initNavTree('class_intelli_photo_gui.html','');}); +
closeEvent(QCloseEvent *event) overrideIntelliPhotoGuiprotected
IntelliPhotoGui()IntelliPhotoGui
UpdateGui()IntelliPhotoGui
diff --git a/docs/html/class_intelli_photo_gui.html b/docs/html/class_intelli_photo_gui.html index 1ea221b..5fdc6aa 100644 --- a/docs/html/class_intelli_photo_gui.html +++ b/docs/html/class_intelli_photo_gui.html @@ -102,19 +102,17 @@ $(document).ready(function(){initNavTree('class_intelli_photo_gui.html','');});
Inheritance diagram for IntelliPhotoGui:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliPhotoGui:
-
-
Collaboration graph
-
[legend]
+
+ +
+ +

Public Member Functions

 IntelliPhotoGui ()
 The IntelliPhotoGui method is the constructor and is used to create a new instance of the main program window. More...
 
void UpdateGui ()
 
@@ -124,7 +122,7 @@ Protected Member Functions

Detailed Description

The IntelliPhotoGui class handles the graphical user interface for the intelliPhoto program.

-

Definition at line 22 of file IntelliPhotoGui.h.

+

Definition at line 24 of file IntelliPhotoGui.h.

Constructor & Destructor Documentation

◆ IntelliPhotoGui()

@@ -143,7 +141,7 @@ Protected Member Functions

The IntelliPhotoGui method is the constructor and is used to create a new instance of the main program window.

-

Definition at line 10 of file IntelliPhotoGui.cpp.

+

Definition at line 7 of file IntelliPhotoGui.cpp.

@@ -172,7 +170,26 @@ Protected Member Functions

Protected Member Functions

-

Definition at line 26 of file IntelliPhotoGui.cpp.

+

Definition at line 23 of file IntelliPhotoGui.cpp.

+ +
+ + +

◆ UpdateGui()

+ +
+
+ + + + + + + +
void IntelliPhotoGui::UpdateGui ()
+
+ +

Definition at line 694 of file IntelliPhotoGui.cpp.

diff --git a/docs/html/class_intelli_photo_gui.js b/docs/html/class_intelli_photo_gui.js index 2c41940..da7c4b8 100644 --- a/docs/html/class_intelli_photo_gui.js +++ b/docs/html/class_intelli_photo_gui.js @@ -1,5 +1,6 @@ var class_intelli_photo_gui = [ [ "IntelliPhotoGui", "class_intelli_photo_gui.html#ad2aaec3c1517a9aaa461b54e341b97e0", null ], - [ "closeEvent", "class_intelli_photo_gui.html#a2cf48070236ae8b35245e7f30482ef13", null ] + [ "closeEvent", "class_intelli_photo_gui.html#a2cf48070236ae8b35245e7f30482ef13", null ], + [ "UpdateGui", "class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4", null ] ]; \ No newline at end of file diff --git a/docs/html/class_intelli_photo_gui.png b/docs/html/class_intelli_photo_gui.png new file mode 100644 index 0000000000000000000000000000000000000000..762c3403eb098b14817c1908ef65a0c35fa1775a GIT binary patch literal 471 zcmeAS@N?(olHy`uVBq!ia0vp^aX=iv!3-pqvl;0CDTx4|5ZC|z{{xxt-o2YWd(H$P z3ycpOIKbC?;3<&HQ4-`A%m7pb0#{Fk7%?y~rg^$JhEy=VoqMzIumOiFzy8Dj|0`}) zFsqwLYKBPlhUR@}>fhM=tEavvKG95c%Ogo?`!go>q4Ji=9(n)qfc+P z$?{dlc;Z5PV;{C}{!z5R_WCuWo7WG1-_HJ<<=ltTsw3BIb+7a7dU^lB?~cgOy1eN( zd#4vx7~ec}yK(-3@;4ufzpWE|5Y6QH^v9#!t@Gu#IxpWf|M0hk++K*A}t3 zP}2*CRex6eX=Ufw@`0gIOitm# zA!e4SiUtR6et{SD4_#e8wJ@Y)K4fI7<+a~dxHhX=^oFKE literal 0 HcmV?d00001 diff --git a/docs/html/class_intelli_photo_gui_a1dbef8d4688227aa9455aea52db00bf4_cgraph.dot b/docs/html/class_intelli_photo_gui_a1dbef8d4688227aa9455aea52db00bf4_cgraph.dot new file mode 100644 index 0000000..d1638a7 --- /dev/null +++ b/docs/html/class_intelli_photo_gui_a1dbef8d4688227aa9455aea52db00bf4_cgraph.dot @@ -0,0 +1,18 @@ +digraph "IntelliPhotoGui::UpdateGui" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="IntelliPhotoGui::UpdateGui",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliColorPicker\l::getFirstColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7",tooltip="A function to read the primary selected color."]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliImage::getImageData",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#ad66fbe380ffe0e073a8cd760f8285fe3",tooltip="getImageData returns the data of the current image."]; + Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="PaintingArea::getImageOf\lActiveLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#acab11ad35d07e9081203d8217d2c0855",tooltip=" "]; + Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="PaintingArea::getNumberOf\lActiveLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a24280454ebb80db7feba2fd621513353",tooltip=" "]; + Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="IntelliColorPicker\l::getSecondColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415",tooltip="A function to read the secondary selected color."]; +} diff --git a/docs/html/class_intelli_raster_image-members.html b/docs/html/class_intelli_raster_image-members.html index b029ead..b492ded 100644 --- a/docs/html/class_intelli_raster_image-members.html +++ b/docs/html/class_intelli_raster_image-members.html @@ -98,17 +98,23 @@ $(document).ready(function(){initNavTree('class_intelli_raster_image.html','');} drawPixel(const QPoint &p1, const QColor &color)IntelliImagevirtual drawPlain(const QColor &color)IntelliImagevirtual drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)IntelliImagevirtual - getDeepCopy() overrideIntelliRasterImagevirtual - getDisplayable(const QSize &displaySize, int alpha) overrideIntelliRasterImagevirtual - getDisplayable(int alpha=255) overrideIntelliRasterImagevirtual + fastRendererIntelliImageprotected + getDeepCopy() overrideIntelliRasterImagevirtual + getDisplayable(const QSize &displaySize, int alpha) overrideIntelliRasterImagevirtual + getDisplayable(int alpha=255) overrideIntelliRasterImagevirtual + getImageData()IntelliImagevirtual getPixelColor(QPoint &point)IntelliImagevirtual getPolygonData()IntelliImageinlinevirtual - imageDataIntelliImageprotected - IntelliImage(int weight, int height)IntelliImage - IntelliRasterImage(int weight, int height)IntelliRasterImage - loadImage(const QString &fileName)IntelliImagevirtual + getTypeOfImage()IntelliImageinlinevirtual + imageDataIntelliImageprotected + ImageType enum nameIntelliImage + IntelliImage(int width, int height, bool fastRendererOn)IntelliImage + IntelliRasterImage(int width, int height, bool fastRendererOn)IntelliRasterImage + loadImage(const QString &filePath)IntelliImagevirtual resizeImage(QImage *image, const QSize &newSize)IntelliImageprotected setPolygon(const std::vector< QPoint > &polygonData) overrideIntelliRasterImagevirtual + TypeOfImageIntelliImageprotected + updateRendererSetting(bool fastRendererOn)IntelliImagevirtual ~IntelliImage()=0IntelliImagepure virtual ~IntelliRasterImage() overrideIntelliRasterImagevirtual diff --git a/docs/html/class_intelli_raster_image.html b/docs/html/class_intelli_raster_image.html index 010eecb..cacb3a5 100644 --- a/docs/html/class_intelli_raster_image.html +++ b/docs/html/class_intelli_raster_image.html @@ -95,26 +95,26 @@ $(document).ready(function(){initNavTree('class_intelli_raster_image.html','');}
-

The IntelliRasterImage manages a Rasterimage. +

The IntelliRasterImage manages a RASTERIMAGE. More...

#include <IntelliRasterImage.h>

Inheritance diagram for IntelliRasterImage:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliRasterImage:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliImage +IntelliShapedImage + +
- - - + + + @@ -131,9 +131,9 @@ Public Member Functions - - - + + + @@ -152,17 +152,25 @@ Public Member Functions - - - + + + + + + + + + + +

Public Member Functions

 IntelliRasterImage (int weight, int height)
 The Construcor of the IntelliRasterImage. Given the Image dimensions. More...
 
 IntelliRasterImage (int width, int height, bool fastRendererOn)
 The Construcor of the IntelliRasterImage. Given the Image dimensions. More...
 
virtual ~IntelliRasterImage () override
 An Destructor. More...
 
 An abstract function that sets the data of the visible Polygon, if needed. More...
 
- Public Member Functions inherited from IntelliImage
 IntelliImage (int weight, int height)
 The Construcor of the IntelliImage. Given the Image dimensions. More...
 
 IntelliImage (int width, int height, bool fastRendererOn)
 The Construcor of the IntelliImage. Given the Image dimensions. More...
 
virtual ~IntelliImage ()=0
 An Abstract Destructor. More...
 
virtual std::vector< QPoint > getPolygonData ()
 A function that returns the Polygondata if existent. More...
 
virtual bool loadImage (const QString &fileName)
 A function that loads and sclaes an image to the fitting dimensions. More...
 
virtual ImageType getTypeOfImage ()
 
virtual bool loadImage (const QString &filePath)
 A function that loads and sclaes an image to the fitting dimensions. More...
 
virtual QColor getPixelColor (QPoint &point)
 A function that returns the pixelcolor at a certain point. More...
 
virtual void updateRendererSetting (bool fastRendererOn)
 updateRendererSetting updates the existing image format to the new format. More...
 
virtual QImage getImageData ()
 getImageData returns the data of the current image. More...
 
- + @@ -170,18 +178,30 @@ Protected Member Functions

Protected Member Functions

virtual void calculateVisiblity () override
 A function that calculates the visibility of the image if a polygon is given. [does nothing in Rasterimage]. More...
 A function that calculates the visibility of the image if a polygon is given. [does nothing in RASTERIMAGE]. More...
 
- Protected Member Functions inherited from IntelliImage
void resizeImage (QImage *image, const QSize &newSize)
+ + + + + + + + + +

Additional Inherited Members

- Public Types inherited from IntelliImage
enum  ImageType { ImageType::RASTERIMAGE, +ImageType::SHAPEDIMAGE + }
 The Types, which an Image can be. More...
 
- Protected Attributes inherited from IntelliImage
QImage imageData
 The underlying image data. More...
 
ImageType TypeOfImage
 The Type, an Image is. More...
 
bool fastRenderer
 fastRenderer is the flag that represents the usage of 8bit pictures. More...
 

Detailed Description

-

The IntelliRasterImage manages a Rasterimage.

+

The IntelliRasterImage manages a RASTERIMAGE.

Definition at line 9 of file IntelliRasterImage.h.

Constructor & Destructor Documentation

- -

◆ IntelliRasterImage()

+ +

◆ IntelliRasterImage()

@@ -190,13 +210,19 @@ Additional Inherited Members IntelliRasterImage::IntelliRasterImage ( int  - weight, + width, int  - height  + height, + + + + + bool  + fastRendererOn  @@ -206,21 +232,17 @@ Additional Inherited Members
-

The Construcor of the IntelliRasterImage. Given the Image dimensions.

+

The Construcor of the IntelliRasterImage. Given the Image dimensions.

Parameters
- + +
weight- The weight of the Image.
width- The width of the Image.
height- The height of the Image.
fastRendererOn- Represents the flag for 8bit picture handelling.

Definition at line 6 of file IntelliRasterImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
@@ -249,7 +271,7 @@ Here is the caller graph for this function:

An Destructor.

-

Definition at line 11 of file IntelliRasterImage.cpp.

+

Definition at line 12 of file IntelliRasterImage.cpp.

@@ -277,11 +299,11 @@ Here is the caller graph for this function:
-

A function that calculates the visibility of the image if a polygon is given. [does nothing in Rasterimage].

+

A function that calculates the visibility of the image if a polygon is given. [does nothing in RASTERIMAGE].

Implements IntelliImage.

-

Definition at line 21 of file IntelliRasterImage.cpp.

+

Definition at line 23 of file IntelliRasterImage.cpp.

@@ -315,12 +337,7 @@ Here is the caller graph for this function:

Reimplemented in IntelliShapedImage.

-

Definition at line 15 of file IntelliRasterImage.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 16 of file IntelliRasterImage.cpp.

@@ -372,12 +389,7 @@ Here is the call graph for this function:

Reimplemented in IntelliShapedImage.

-

Definition at line 29 of file IntelliRasterImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 31 of file IntelliRasterImage.cpp.

@@ -418,12 +430,7 @@ Here is the caller graph for this function:

Reimplemented in IntelliShapedImage.

-

Definition at line 25 of file IntelliRasterImage.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 27 of file IntelliRasterImage.cpp.

@@ -463,7 +470,7 @@ Here is the call graph for this function:

Reimplemented in IntelliShapedImage.

-

Definition at line 41 of file IntelliRasterImage.cpp.

+

Definition at line 49 of file IntelliRasterImage.cpp.

diff --git a/docs/html/class_intelli_raster_image.js b/docs/html/class_intelli_raster_image.js index 10b0061..6de583e 100644 --- a/docs/html/class_intelli_raster_image.js +++ b/docs/html/class_intelli_raster_image.js @@ -1,6 +1,6 @@ var class_intelli_raster_image = [ - [ "IntelliRasterImage", "class_intelli_raster_image.html#aad9b561fe499a4da3c6ef98971aa3468", null ], + [ "IntelliRasterImage", "class_intelli_raster_image.html#ae779b571372296f1922af818ba003413", null ], [ "~IntelliRasterImage", "class_intelli_raster_image.html#a844a2b58c43f7e01f2ca116286371bc8", null ], [ "calculateVisiblity", "class_intelli_raster_image.html#a87cf2d360c129d64a5db0db85818eb60", null ], [ "getDeepCopy", "class_intelli_raster_image.html#a8f901301b106504de3c27308ade897dc", null ], diff --git a/docs/html/class_intelli_raster_image.png b/docs/html/class_intelli_raster_image.png new file mode 100644 index 0000000000000000000000000000000000000000..c56da4b1cac502c8f9a0e0f1b610ef4727d6edf6 GIT binary patch literal 747 zcmeAS@N?(olHy`uVBq!ia0vp^r9j-l!3-qdT?_F9QW60^A+G=b{|AY@dpCRboC!b{ z7#}!rfUoz!Qy`b4B*-tA0jLNBuAT}pVqjpZ@^o}_IIHGB=jrb&-uI_i&Sp1% zzEst-vR2}CJJ56*2 z=TU`iN&h#kiBEXwQa3SN^O};W)pd)vja43J@@7_FX)Wr=l#592E-zlt_H$;GO|NPB zy4&l7_Xj;&Jb!amRn0orSAUE5u6TG=_0#FJ8`H06@-kn!Ffm~EF7Mpc5yt-)KlWu0 z2)B1LHO|&;XrIL}Yc+T2tg3|F0r403ZrEL!zv`hQ>xxxCyb?R!F|GKV?d2zPiqE%9 zUIO%;=c<+GLbzj3-c8zcU0rh0lEq>9o>o_RSH0i0@rm%Ny-u?ZN9h~oZnHZ3H_;+* zuk^j!{+@0%+5Wy7naRDDvUV2j^EWh?9Lcxu-Rcp$^Wu>s+UCojlsm<)N}qqvz>sJ8 zIV06+U#)N=lT-up7ZRfcU8`~Z~zZ(AdkM5NMle5#q_qD0M zbiP|l+CyD%vvD7*y?#q_FqQF&j!U0_HWw_OqmRxu6{1-oD!M< D+%0bc literal 0 HcmV?d00001 diff --git a/docs/html/class_intelli_raster_image__coll__graph.dot b/docs/html/class_intelli_raster_image__coll__graph.dot index 2a1af2b..7a7f252 100644 --- a/docs/html/class_intelli_raster_image__coll__graph.dot +++ b/docs/html/class_intelli_raster_image__coll__graph.dot @@ -3,7 +3,7 @@ digraph "IntelliRasterImage" // LATEX_PDF_SIZE edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The IntelliRasterImage manages a Rasterimage."]; + Node1 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The IntelliRasterImage manages a RASTERIMAGE."]; Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_raster_image__inherit__graph.dot b/docs/html/class_intelli_raster_image__inherit__graph.dot index c758aae..f2bc33b 100644 --- a/docs/html/class_intelli_raster_image__inherit__graph.dot +++ b/docs/html/class_intelli_raster_image__inherit__graph.dot @@ -3,7 +3,7 @@ digraph "IntelliRasterImage" // LATEX_PDF_SIZE edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The IntelliRasterImage manages a Rasterimage."]; + Node1 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The IntelliRasterImage manages a RASTERIMAGE."]; Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; diff --git a/docs/html/class_intelli_raster_image_a8f901301b106504de3c27308ade897dc_cgraph.dot b/docs/html/class_intelli_raster_image_a8f901301b106504de3c27308ade897dc_cgraph.dot index 72001d8..1dd7f4f 100644 --- a/docs/html/class_intelli_raster_image_a8f901301b106504de3c27308ade897dc_cgraph.dot +++ b/docs/html/class_intelli_raster_image_a8f901301b106504de3c27308ade897dc_cgraph.dot @@ -6,5 +6,5 @@ digraph "IntelliRasterImage::getDeepCopy" rankdir="LR"; Node1 [label="IntelliRasterImage\l::getDeepCopy",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function that copys all that returns a [allocated] Image."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliRasterImage\l::IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html#aad9b561fe499a4da3c6ef98971aa3468",tooltip="The Construcor of the IntelliRasterImage. Given the Image dimensions."]; + Node2 [label="IntelliRasterImage\l::IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html#ae779b571372296f1922af818ba003413",tooltip="The Construcor of the IntelliRasterImage. Given the Image dimensions."]; } diff --git a/docs/html/class_intelli_raster_image_ae779b571372296f1922af818ba003413_icgraph.dot b/docs/html/class_intelli_raster_image_ae779b571372296f1922af818ba003413_icgraph.dot new file mode 100644 index 0000000..0fdfdea --- /dev/null +++ b/docs/html/class_intelli_raster_image_ae779b571372296f1922af818ba003413_icgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliRasterImage::IntelliRasterImage" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliRasterImage\l::IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The Construcor of the IntelliRasterImage. Given the Image dimensions."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliRasterImage\l::getDeepCopy",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html#a8f901301b106504de3c27308ade897dc",tooltip="A function that copys all that returns a [allocated] Image."]; +} diff --git a/docs/html/class_intelli_render_settings-members.html b/docs/html/class_intelli_render_settings-members.html new file mode 100644 index 0000000..5702f49 --- /dev/null +++ b/docs/html/class_intelli_render_settings-members.html @@ -0,0 +1,109 @@ + + + + + + + +IntelliPhoto: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
IntelliRenderSettings Member List
+
+
+ +

This is the complete list of members for IntelliRenderSettings, including all inherited members.

+ + + +
getFastRenderer()IntelliRenderSettings
IntelliRenderSettings()IntelliRenderSettings
+
+ + + + diff --git a/docs/html/class_intelli_render_settings.html b/docs/html/class_intelli_render_settings.html new file mode 100644 index 0000000..06a03e7 --- /dev/null +++ b/docs/html/class_intelli_render_settings.html @@ -0,0 +1,169 @@ + + + + + + + +IntelliPhoto: IntelliRenderSettings Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
IntelliRenderSettings Class Reference
+
+
+ +

#include <IntelliRenderSettings.h>

+ + + + + + + +

+Public Member Functions

 IntelliRenderSettings ()
 
bool getFastRenderer ()
 The getfastRenderer gets the value of the flag for the fastRenderer setting. More...
 
+

Detailed Description

+
+

Definition at line 5 of file IntelliRenderSettings.h.

+

Constructor & Destructor Documentation

+ +

◆ IntelliRenderSettings()

+ +
+
+ + + + + + + +
IntelliRenderSettings::IntelliRenderSettings ()
+
+ +

Definition at line 3 of file IntelliRenderSettings.cpp.

+ +
+
+

Member Function Documentation

+ +

◆ getFastRenderer()

+ +
+
+ + + + + + + +
bool IntelliRenderSettings::getFastRenderer ()
+
+ +

The getfastRenderer gets the value of the flag for the fastRenderer setting.

+
Returns
Returns true if fastRenderer is active else false
+ +

Definition at line 8 of file IntelliRenderSettings.cpp.

+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/docs/html/class_intelli_render_settings.js b/docs/html/class_intelli_render_settings.js new file mode 100644 index 0000000..0a6c973 --- /dev/null +++ b/docs/html/class_intelli_render_settings.js @@ -0,0 +1,5 @@ +var class_intelli_render_settings = +[ + [ "IntelliRenderSettings", "class_intelli_render_settings.html#a4a01de6e5e8e516a7eae51d6f1f66529", null ], + [ "getFastRenderer", "class_intelli_render_settings.html#a5a74e7d7ed3a2e944883dddbe8bbf5e8", null ] +]; \ No newline at end of file diff --git a/docs/html/class_intelli_render_settings_a5a74e7d7ed3a2e944883dddbe8bbf5e8_icgraph.dot b/docs/html/class_intelli_render_settings_a5a74e7d7ed3a2e944883dddbe8bbf5e8_icgraph.dot new file mode 100644 index 0000000..f413d45 --- /dev/null +++ b/docs/html/class_intelli_render_settings_a5a74e7d7ed3a2e944883dddbe8bbf5e8_icgraph.dot @@ -0,0 +1,12 @@ +digraph "IntelliRenderSettings::getFastRenderer" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliRenderSettings\l::getFastRenderer",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The getfastRenderer gets the value of the flag for the fastRenderer setting."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="PaintingArea::addLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a6e9207612cef104d39013564696fe989",tooltip="The addLayer adds a layer to the current project/ painting area."]; + Node2 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="PaintingArea::PaintingArea",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a4fa0ec23e78cc59f28c823584c721460",tooltip="PaintingArea is the constructor of the PaintingArea class, which initiates the working environment."]; +} diff --git a/docs/html/class_intelli_shaped_image-members.html b/docs/html/class_intelli_shaped_image-members.html index b2a018f..05f9fec 100644 --- a/docs/html/class_intelli_shaped_image-members.html +++ b/docs/html/class_intelli_shaped_image-members.html @@ -97,19 +97,25 @@ $(document).ready(function(){initNavTree('class_intelli_shaped_image.html','');} drawPixel(const QPoint &p1, const QColor &color)IntelliImagevirtual drawPlain(const QColor &color)IntelliImagevirtual drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)IntelliImagevirtual - getDeepCopy() overrideIntelliShapedImagevirtual - getDisplayable(const QSize &displaySize, int alpha=255) overrideIntelliShapedImagevirtual - getDisplayable(int alpha=255) overrideIntelliShapedImagevirtual + fastRendererIntelliImageprotected + getDeepCopy() overrideIntelliShapedImagevirtual + getDisplayable(const QSize &displaySize, int alpha=255) overrideIntelliShapedImagevirtual + getDisplayable(int alpha=255) overrideIntelliShapedImagevirtual + getImageData()IntelliImagevirtual getPixelColor(QPoint &point)IntelliImagevirtual getPolygonData() overrideIntelliShapedImageinlinevirtual - imageDataIntelliImageprotected - IntelliImage(int weight, int height)IntelliImage - IntelliRasterImage(int weight, int height)IntelliRasterImage - IntelliShapedImage(int weight, int height)IntelliShapedImage - loadImage(const QString &fileName)IntelliImagevirtual + getTypeOfImage()IntelliImageinlinevirtual + imageDataIntelliImageprotected + ImageType enum nameIntelliImage + IntelliImage(int width, int height, bool fastRendererOn)IntelliImage + IntelliRasterImage(int width, int height, bool fastRendererOn)IntelliRasterImage + IntelliShapedImage(int width, int height, bool fastRendererOn)IntelliShapedImage + loadImage(const QString &filePath)IntelliImagevirtual polygonDataIntelliShapedImageprotected resizeImage(QImage *image, const QSize &newSize)IntelliImageprotected setPolygon(const std::vector< QPoint > &polygonData) overrideIntelliShapedImagevirtual + TypeOfImageIntelliImageprotected + updateRendererSetting(bool fastRendererOn)IntelliImagevirtual ~IntelliImage()=0IntelliImagepure virtual ~IntelliRasterImage() overrideIntelliRasterImagevirtual ~IntelliShapedImage() overrideIntelliShapedImagevirtual diff --git a/docs/html/class_intelli_shaped_image.html b/docs/html/class_intelli_shaped_image.html index 6fed452..ce5eda4 100644 --- a/docs/html/class_intelli_shaped_image.html +++ b/docs/html/class_intelli_shaped_image.html @@ -102,19 +102,19 @@ $(document).ready(function(){initNavTree('class_intelli_shaped_image.html','');}
Inheritance diagram for IntelliShapedImage:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliShapedImage:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliRasterImage +IntelliImage + +
- - - + + + @@ -134,16 +134,16 @@ Public Member Functions - - - + + + - - - + + + @@ -159,12 +159,20 @@ Public Member Functions - - - + + + + + + + + + + +

Public Member Functions

 IntelliShapedImage (int weight, int height)
 The Construcor of the IntelliShapedImage. Given the Image dimensions. More...
 
 IntelliShapedImage (int width, int height, bool fastRendererOn)
 The Construcor of the IntelliShapedImage. Given the Image dimensions. More...
 
virtual ~IntelliShapedImage () override
 An Destructor. More...
 
 A function that sets the data of the visible Polygon. More...
 
- Public Member Functions inherited from IntelliRasterImage
 IntelliRasterImage (int weight, int height)
 The Construcor of the IntelliRasterImage. Given the Image dimensions. More...
 
 IntelliRasterImage (int width, int height, bool fastRendererOn)
 The Construcor of the IntelliRasterImage. Given the Image dimensions. More...
 
virtual ~IntelliRasterImage () override
 An Destructor. More...
 
- Public Member Functions inherited from IntelliImage
 IntelliImage (int weight, int height)
 The Construcor of the IntelliImage. Given the Image dimensions. More...
 
 IntelliImage (int width, int height, bool fastRendererOn)
 The Construcor of the IntelliImage. Given the Image dimensions. More...
 
virtual ~IntelliImage ()=0
 An Abstract Destructor. More...
 
virtual void drawPlain (const QColor &color)
 A function that clears the whole image in a given Color. More...
 
virtual bool loadImage (const QString &fileName)
 A function that loads and sclaes an image to the fitting dimensions. More...
 
virtual ImageType getTypeOfImage ()
 
virtual bool loadImage (const QString &filePath)
 A function that loads and sclaes an image to the fitting dimensions. More...
 
virtual QColor getPixelColor (QPoint &point)
 A function that returns the pixelcolor at a certain point. More...
 
virtual void updateRendererSetting (bool fastRendererOn)
 updateRendererSetting updates the existing image format to the new format. More...
 
virtual QImage getImageData ()
 getImageData returns the data of the current image. More...
 
@@ -175,9 +183,21 @@ Protected Attributes + + + + + +

Protected Attributes

QImage imageData
 The underlying image data. More...
 
ImageType TypeOfImage
 The Type, an Image is. More...
 
bool fastRenderer
 fastRenderer is the flag that represents the usage of 8bit pictures. More...
 
+ + + + @@ -185,10 +205,10 @@ Additional Inherited Members

Detailed Description

The IntelliShapedImage manages a Shapedimage.

-

Definition at line 11 of file IntelliShapedImage.h.

+

Definition at line 10 of file IntelliShapedImage.h.

Constructor & Destructor Documentation

- -

◆ IntelliShapedImage()

+ +

◆ IntelliShapedImage()

@@ -197,13 +217,19 @@ Additional Inherited Members
- + - + + + + + + + @@ -216,18 +242,14 @@ Additional Inherited Members

The Construcor of the IntelliShapedImage. Given the Image dimensions.

Parameters

Additional Inherited Members

- Public Types inherited from IntelliImage
enum  ImageType { ImageType::RASTERIMAGE, +ImageType::SHAPEDIMAGE + }
 The Types, which an Image can be. More...
 
- Protected Member Functions inherited from IntelliImage
void resizeImage (QImage *image, const QSize &newSize)
 
IntelliShapedImage::IntelliShapedImage ( int weight, width,
int height height,
bool fastRendererOn 
- + +
weight- The weight of the Image.
width- The width of the Image.
height- The height of the Image.
fastRendererOn- Represents the flag for 8bit picture handelling.

Definition at line 7 of file IntelliShapedImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
@@ -256,7 +278,7 @@ Here is the caller graph for this function:

An Destructor.

-

Definition at line 11 of file IntelliShapedImage.cpp.

+

Definition at line 13 of file IntelliShapedImage.cpp.

@@ -289,12 +311,7 @@ Here is the caller graph for this function:

Reimplemented from IntelliRasterImage.

-

Definition at line 19 of file IntelliShapedImage.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 21 of file IntelliShapedImage.cpp.

@@ -344,12 +361,7 @@ Here is the call graph for this function:

Reimplemented from IntelliRasterImage.

-

Definition at line 54 of file IntelliShapedImage.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 67 of file IntelliShapedImage.cpp.

@@ -388,12 +400,7 @@ Here is the caller graph for this function:

Reimplemented from IntelliRasterImage.

-

Definition at line 15 of file IntelliShapedImage.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 17 of file IntelliShapedImage.cpp.

@@ -463,17 +470,7 @@ Here is the call graph for this function:

Reimplemented from IntelliRasterImage.

-

Definition at line 66 of file IntelliShapedImage.cpp.

-
-Here is the call graph for this function:
-
-
-
-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 85 of file IntelliShapedImage.cpp.

@@ -500,7 +497,7 @@ Here is the caller graph for this function:

The Vertices of The Polygon. Needs to be a planar Polygon.

-

Definition at line 28 of file IntelliShapedImage.h.

+

Definition at line 27 of file IntelliShapedImage.h.

diff --git a/docs/html/class_intelli_shaped_image.js b/docs/html/class_intelli_shaped_image.js index dead858..c8654d6 100644 --- a/docs/html/class_intelli_shaped_image.js +++ b/docs/html/class_intelli_shaped_image.js @@ -1,6 +1,6 @@ var class_intelli_shaped_image = [ - [ "IntelliShapedImage", "class_intelli_shaped_image.html#a0f834c3f255baeb50c98ef335a6d0ea9", null ], + [ "IntelliShapedImage", "class_intelli_shaped_image.html#ae2e612a1fa52d7f878b34a7a7022d8e9", null ], [ "~IntelliShapedImage", "class_intelli_shaped_image.html#a43d63d8a814852d377ee2030658fbab9", null ], [ "getDeepCopy", "class_intelli_shaped_image.html#aed0b31e0fa771104399d1f5ff39a0337", null ], [ "getDisplayable", "class_intelli_shaped_image.html#a68cf374247c16f07fd84d50e4cd05630", null ], diff --git a/docs/html/class_intelli_shaped_image.png b/docs/html/class_intelli_shaped_image.png new file mode 100644 index 0000000000000000000000000000000000000000..d255aa9989cccd4740e2bbcd09f96ece1469bd74 GIT binary patch literal 742 zcmeAS@N?(olHy`uVBq!ia0vp^r9j-l!3-qdT?_F9QW60^A+G=b{|AY@dpCRboC!b{ z7#}!rfUoz!Qy`b4B*-tA0jLNBuAT}pVqjn@^>lFzsbG9N_w}XK3OugjvnB8UpSZuu z(a|B-ztQ;emYX3e8$3F`>ffurA6w!1N@uZGkoVvIknnxCd?(pmTz=)rG?l$eqgPFy zeS7c3;G9JM*Einm{;|f^Q|r~dSt(aMJ9VqQj`z(|nfg`Xns!#rfzH$4SA2FaQjKQg zf4)`SGj*@z>(Cu9`&B}}F6G&7b=`~CU6SwV*Yl=2p6_3sO#T!5DmUx)k*euY)z3YG z*#Amgt$tt4{lM9m;jU?mm9O#!=N0-d7~V*{^1r$vka5d!8MHejX z;kppy#+sqInCZ^x>i4_3^*!gNhInSJ{0MS>&OZ;YHzmr_)0a$|7kGH>=S}g8c7^+R z$3!bHKYT5X`{xt$^LNBJ_U(>0S?%Pj;n%gcsy^0CXG4+F{u8UkvZqST&7SjZ?kv@3 zTh182@;aFm#kTFnqq`|rYU>t?=_l*XeZBGZk@eGlzIeWBmYv;ot*<|K-n;VQnb1#B zW0_O0H?^s*Z2fe6hw0ZTx8gR6{d0fotL~ZmH96${-uJo<{HBa0*9Bgg^d8__xNiaT zhU69Yp@)I~&|1v2WlA7p6s9)|^qkS)>}a@P6{}zJ1hMlh=0Yy zYt5?m3-_&iUY1`VBev%{Z_eSu{C6zx4OAsL_ZpinTryYpS&2pQz4~vmOO)Al`nG!A z-Es2BiPa{{pOrhtu6{n}UhN~hIaZH7*1RZ}%@%v-TC(tw%p9HX)$<;5Z7o~Zn)=Ro z&h>&nd)l&M_Dz-QTh{tX>$<^#*;VOjuWmQb`oFrg^Q*_&y)PN8UL0R>&hmP6{lV=9 Vb8Z)uUI8Xb22WQ%mvv4FO#rQFW&{8L literal 0 HcmV?d00001 diff --git a/docs/html/class_intelli_shaped_image__coll__graph.dot b/docs/html/class_intelli_shaped_image__coll__graph.dot index 580bcac..1c59a61 100644 --- a/docs/html/class_intelli_shaped_image__coll__graph.dot +++ b/docs/html/class_intelli_shaped_image__coll__graph.dot @@ -5,7 +5,7 @@ digraph "IntelliShapedImage" node [fontname="Helvetica",fontsize="10",shape=record]; Node1 [label="IntelliShapedImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The IntelliShapedImage manages a Shapedimage."]; Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html",tooltip="The IntelliRasterImage manages a Rasterimage."]; + Node2 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html",tooltip="The IntelliRasterImage manages a RASTERIMAGE."]; Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_shaped_image__inherit__graph.dot b/docs/html/class_intelli_shaped_image__inherit__graph.dot index 580bcac..1c59a61 100644 --- a/docs/html/class_intelli_shaped_image__inherit__graph.dot +++ b/docs/html/class_intelli_shaped_image__inherit__graph.dot @@ -5,7 +5,7 @@ digraph "IntelliShapedImage" node [fontname="Helvetica",fontsize="10",shape=record]; Node1 [label="IntelliShapedImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The IntelliShapedImage manages a Shapedimage."]; Node2 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html",tooltip="The IntelliRasterImage manages a Rasterimage."]; + Node2 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html",tooltip="The IntelliRasterImage manages a RASTERIMAGE."]; Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_shaped_image_a4b69d75de7a3b85032482982f249458e_cgraph.dot b/docs/html/class_intelli_shaped_image_a4b69d75de7a3b85032482982f249458e_cgraph.dot index 2523308..55bb17d 100644 --- a/docs/html/class_intelli_shaped_image_a4b69d75de7a3b85032482982f249458e_cgraph.dot +++ b/docs/html/class_intelli_shaped_image_a4b69d75de7a3b85032482982f249458e_cgraph.dot @@ -6,5 +6,5 @@ digraph "IntelliShapedImage::setPolygon" rankdir="LR"; Node1 [label="IntelliShapedImage\l::setPolygon",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function that sets the data of the visible Polygon."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliHelper::calculate\lTriangles",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_helper.html#a214dc3624ba4562a03dc922e3dd7b617",tooltip="A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ..."]; + Node2 [label="IntelliTriangulation\l::calculateTriangles",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5",tooltip="A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ..."]; } diff --git a/docs/html/class_intelli_shaped_image_ae2e612a1fa52d7f878b34a7a7022d8e9_icgraph.dot b/docs/html/class_intelli_shaped_image_ae2e612a1fa52d7f878b34a7a7022d8e9_icgraph.dot new file mode 100644 index 0000000..8d5448d --- /dev/null +++ b/docs/html/class_intelli_shaped_image_ae2e612a1fa52d7f878b34a7a7022d8e9_icgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliShapedImage::IntelliShapedImage" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliShapedImage\l::IntelliShapedImage",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The Construcor of the IntelliShapedImage. Given the Image dimensions."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliShapedImage\l::getDeepCopy",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_shaped_image.html#aed0b31e0fa771104399d1f5ff39a0337",tooltip="A function that copys all that returns a [allocated] Image."]; +} diff --git a/docs/html/class_intelli_shaped_image_aed0b31e0fa771104399d1f5ff39a0337_cgraph.dot b/docs/html/class_intelli_shaped_image_aed0b31e0fa771104399d1f5ff39a0337_cgraph.dot index 37121ac..62314e1 100644 --- a/docs/html/class_intelli_shaped_image_aed0b31e0fa771104399d1f5ff39a0337_cgraph.dot +++ b/docs/html/class_intelli_shaped_image_aed0b31e0fa771104399d1f5ff39a0337_cgraph.dot @@ -6,9 +6,9 @@ digraph "IntelliShapedImage::getDeepCopy" rankdir="LR"; Node1 [label="IntelliShapedImage\l::getDeepCopy",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function that copys all that returns a [allocated] Image."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliShapedImage\l::IntelliShapedImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_shaped_image.html#a0f834c3f255baeb50c98ef335a6d0ea9",tooltip="The Construcor of the IntelliShapedImage. Given the Image dimensions."]; + Node2 [label="IntelliShapedImage\l::IntelliShapedImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_shaped_image.html#ae2e612a1fa52d7f878b34a7a7022d8e9",tooltip="The Construcor of the IntelliShapedImage. Given the Image dimensions."]; Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="IntelliShapedImage\l::setPolygon",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_shaped_image.html#a4b69d75de7a3b85032482982f249458e",tooltip="A function that sets the data of the visible Polygon."]; Node3 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="IntelliHelper::calculate\lTriangles",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_helper.html#a214dc3624ba4562a03dc922e3dd7b617",tooltip="A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ..."]; + Node4 [label="IntelliTriangulation\l::calculateTriangles",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5",tooltip="A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ..."]; } diff --git a/docs/html/class_intelli_tool-members.html b/docs/html/class_intelli_tool-members.html index 8072345..c8b42e9 100644 --- a/docs/html/class_intelli_tool-members.html +++ b/docs/html/class_intelli_tool-members.html @@ -93,19 +93,24 @@ $(document).ready(function(){initNavTree('class_intelli_tool.html','');});

This is the complete list of members for IntelliTool, including all inherited members.

- - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +
ActiveIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
drawingIntelliToolprotected
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliTool
onMouseLeftPressed(int x, int y)IntelliToolvirtual
onMouseLeftReleased(int x, int y)IntelliToolvirtual
onMouseMoved(int x, int y)IntelliToolvirtual
onMouseRightPressed(int x, int y)IntelliToolvirtual
onMouseRightReleased(int x, int y)IntelliToolvirtual
onWheelScrolled(int value)IntelliToolvirtual
~IntelliTool()=0IntelliToolpure virtual
activeLayerIntelliToolprotected
ActiveTypeIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
getIsDrawing()IntelliTool
getTooltype()IntelliTool
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliTool
isDrawingIntelliToolprotected
onMouseLeftPressed(int x, int y)IntelliToolvirtual
onMouseLeftReleased(int x, int y)IntelliToolvirtual
onMouseMoved(int x, int y)IntelliToolvirtual
onMouseRightPressed(int x, int y)IntelliToolvirtual
onMouseRightReleased(int x, int y)IntelliToolvirtual
onWheelScrolled(int value)IntelliToolvirtual
ToolsettingsIntelliToolprotected
Tooltype enum nameIntelliTool
~IntelliTool()=0IntelliToolpure virtual
diff --git a/docs/html/class_intelli_tool.html b/docs/html/class_intelli_tool.html index a5f8194..58e4dd1 100644 --- a/docs/html/class_intelli_tool.html +++ b/docs/html/class_intelli_tool.html @@ -87,6 +87,7 @@ $(document).ready(function(){initNavTree('class_intelli_tool.html','');});
@@ -102,19 +103,39 @@ $(document).ready(function(){initNavTree('class_intelli_tool.html','');});
Inheritance diagram for IntelliTool:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliTool:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliToolCircle +IntelliToolFloodFill +IntelliToolLine +IntelliToolPen +IntelliToolPlainTool +IntelliToolPolygon +IntelliToolRectangle + +
+ + + +

+Public Types

enum  Tooltype {
+  Tooltype::CIRCLE, +Tooltype::FLOODFILL, +Tooltype::LINE, +Tooltype::PEN, +
+  Tooltype::PLAIN, +Tooltype::POLYGON, +Tooltype::RECTANGLE +
+ }
 
- - - + + + @@ -136,32 +157,74 @@ Public Member Functions + + + +

Public Member Functions

 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 
virtual void onMouseMoved (int x, int y)
 A function managing the mouse moved event. Call this in child classes! More...
 
Tooltype getTooltype ()
 
bool getIsDrawing ()
 
+ + - - - + + + + + - - - + + +

Protected Attributes

PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
Tooltype ActiveType
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
IntelliToolsettingsToolsettings
 
LayerObjectactiveLayer
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 A pointer to the drawing canvas of the tool, work on this. More...
 
bool drawing = false
 A flag checking if the user is currently drawing or not. More...
 
bool isDrawing = false
 A flag checking if the user is currently drawing or not. More...
 

Detailed Description

An abstract class that manages the basic events, like mouse clicks or scrolls events.

-

Definition at line 13 of file IntelliTool.h.

-

Constructor & Destructor Documentation

- -

◆ IntelliTool()

+

Definition at line 14 of file IntelliTool.h.

+

Member Enumeration Documentation

+ +

◆ Tooltype

+ +
+
+ + + + + +
+ + + + +
enum IntelliTool::Tooltype
+
+strong
+
+ + + + + + + + +
Enumerator
CIRCLE 
FLOODFILL 
LINE 
PEN 
PLAIN 
POLYGON 
RECTANGLE 
+ +

Definition at line 16 of file IntelliTool.h.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ IntelliTool()

@@ -176,7 +239,13 @@ Protected Attributes IntelliColorPicker *  - colorPicker  + colorPicker, + + + + + IntelliToolsettings *  + Toolsettings  @@ -224,11 +293,49 @@ Protected Attributes

An abstract Destructor.

-

Definition at line 10 of file IntelliTool.cpp.

+

Definition at line 11 of file IntelliTool.cpp.

Member Function Documentation

+ +

◆ getIsDrawing()

+ +
+
+ + + + + + + +
bool IntelliTool::getIsDrawing ()
+
+ +

Definition at line 89 of file IntelliTool.cpp.

+ +
+
+ +

◆ getTooltype()

+ +
+
+ + + + + + + +
IntelliTool::Tooltype IntelliTool::getTooltype ()
+
+ +

Definition at line 85 of file IntelliTool.cpp.

+ +
+

◆ onMouseLeftPressed()

@@ -272,19 +379,9 @@ Protected Attributes -

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

+

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

-

Definition at line 25 of file IntelliTool.cpp.

-
-Here is the call graph for this function:
-
-
-
-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 26 of file IntelliTool.cpp.

@@ -331,19 +428,9 @@ Here is the caller graph for this function: -

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

+

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

-

Definition at line 32 of file IntelliTool.cpp.

-
-Here is the call graph for this function:
-
-
-
-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 33 of file IntelliTool.cpp.

@@ -390,19 +477,9 @@ Here is the caller graph for this function: -

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

+

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

-

Definition at line 41 of file IntelliTool.cpp.

-
-Here is the call graph for this function:
-
-
-
-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 42 of file IntelliTool.cpp.

@@ -449,14 +526,9 @@ Here is the caller graph for this function: -

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

+

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

-

Definition at line 14 of file IntelliTool.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 15 of file IntelliTool.cpp.

@@ -503,14 +575,9 @@ Here is the caller graph for this function: -

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

+

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

-

Definition at line 21 of file IntelliTool.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 22 of file IntelliTool.cpp.

@@ -546,20 +613,15 @@ Here is the caller graph for this function: -

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

+

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

-

Definition at line 46 of file IntelliTool.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 47 of file IntelliTool.cpp.

Member Data Documentation

- -

◆ Active

+ +

◆ activeLayer

@@ -568,7 +630,7 @@ Here is the caller graph for this function:
- +
LayerObject* IntelliTool::ActiveLayerObject* IntelliTool::activeLayer
@@ -580,7 +642,31 @@ Here is the caller graph for this function:

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

-

Definition at line 43 of file IntelliTool.h.

+

Definition at line 58 of file IntelliTool.h.

+ + + + +

◆ ActiveType

+ +
+
+ + + + + +
+ + + + +
Tooltype IntelliTool::ActiveType
+
+protected
+
+ +

Definition at line 46 of file IntelliTool.h.

@@ -606,7 +692,7 @@ Here is the caller graph for this function:

A pointer to the general PaintingArea to interact with.

-

Definition at line 33 of file IntelliTool.h.

+

Definition at line 44 of file IntelliTool.h.

@@ -632,7 +718,7 @@ Here is the caller graph for this function:

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

-

Definition at line 48 of file IntelliTool.h.

+

Definition at line 63 of file IntelliTool.h.

@@ -658,12 +744,12 @@ Here is the caller graph for this function:

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

-

Definition at line 38 of file IntelliTool.h.

+

Definition at line 51 of file IntelliTool.h.

- -

◆ drawing

+ +

◆ isDrawing

@@ -672,7 +758,7 @@ Here is the caller graph for this function:
- +
bool IntelliTool::drawing = falsebool IntelliTool::isDrawing = false
@@ -684,6 +770,30 @@ Here is the caller graph for this function:

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

+

Definition at line 68 of file IntelliTool.h.

+ + + + +

◆ Toolsettings

+ +
+
+ + + + + +
+ + + + +
IntelliToolsettings* IntelliTool::Toolsettings
+
+protected
+
+

Definition at line 53 of file IntelliTool.h.

diff --git a/docs/html/class_intelli_tool.js b/docs/html/class_intelli_tool.js index 66bfe15..bbfbb28 100644 --- a/docs/html/class_intelli_tool.js +++ b/docs/html/class_intelli_tool.js @@ -1,16 +1,29 @@ var class_intelli_tool = [ - [ "IntelliTool", "class_intelli_tool.html#a346dd55d489fced38e7bb46f9168af91", null ], + [ "Tooltype", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8f", [ + [ "CIRCLE", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa0af50777920c1401ab975cab64c4d491", null ], + [ "FLOODFILL", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa526904ea67131c56718f9882518b5d93", null ], + [ "LINE", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa17b8ef2c330f1430e00c9de5469fc7e7", null ], + [ "PEN", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fad3fa1aa45b9fe56e1fc1b558d8ed6678", null ], + [ "PLAIN", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8faf62eb0bf5e5c72e80983fbbac1cb70e5", null ], + [ "POLYGON", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8faecdc92bf56d960b73b02ee40125758bc", null ], + [ "RECTANGLE", "class_intelli_tool.html#a3fbd2584566b3cefcf3c070ae0b69d8fa8e8e58fe94ab307a826e087028a7c01a", null ] + ] ], + [ "IntelliTool", "class_intelli_tool.html#a08ef094271ce6248b42f888472463526", null ], [ "~IntelliTool", "class_intelli_tool.html#a57fb1b27d364c9e3696eb928b75fa9f2", null ], + [ "getIsDrawing", "class_intelli_tool.html#a0020fad2e26315d5c4d96dbc95d1dceb", null ], + [ "getTooltype", "class_intelli_tool.html#aae2a11c5bae4973ed827c60e0c1352b1", null ], [ "onMouseLeftPressed", "class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c", null ], [ "onMouseLeftReleased", "class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b", null ], [ "onMouseMoved", "class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639", null ], [ "onMouseRightPressed", "class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966", null ], [ "onMouseRightReleased", "class_intelli_tool.html#a16189b00307c6d7e89f28198f54404b0", null ], [ "onWheelScrolled", "class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574", null ], - [ "Active", "class_intelli_tool.html#a13512e95d21a9934ecb36d73b118c25f", null ], + [ "activeLayer", "class_intelli_tool.html#aedccdad01b2bc6ec84fad3582251ff5d", null ], + [ "ActiveType", "class_intelli_tool.html#a631388999f36013628e13b9de87a6f7b", null ], [ "Area", "class_intelli_tool.html#ab4c2698a0f9f25fb6639ec760d2d0289", null ], [ "Canvas", "class_intelli_tool.html#a144d469cc03584f501194529a1b53c77", null ], [ "colorPicker", "class_intelli_tool.html#ae2e0ac394611a361ab4ef2fe55c03fef", null ], - [ "drawing", "class_intelli_tool.html#af256de16e9825922d20a23d11617b51b", null ] + [ "isDrawing", "class_intelli_tool.html#a555aa8a74992327f740dd69b3bb0ccca", null ], + [ "Toolsettings", "class_intelli_tool.html#a55f6b45b416b7d790fa8bc09603bf67f", null ] ]; \ No newline at end of file diff --git a/docs/html/class_intelli_tool.png b/docs/html/class_intelli_tool.png new file mode 100644 index 0000000000000000000000000000000000000000..c7ba7c67b5332d9d4118f314e90957fd1cf36cc1 GIT binary patch literal 1396 zcmZ`(X;4#F6ixs&ff1Pug9dc)Y6{;+rE-uK<_ob#P?X6|{s zy^&!{ZCBc2Fqoy3UF7{3j5QzNy*O)da%K3n;N!G6{6MJLYz9!P)d~bfc>vAthK2_F zoQ7d=#ij0#q+)=RWj%j-U<(Gbz?wq-^1xZF=H>WR!FGJ8yffmLLGzV8Cs@|267b<) zq*cX~Q?i%zpRQI(@x{KPZgtNB9Dc28m`vkf+~D8~m`6N5er-^of@p*LD_4xeT1_3x za?BNmn+)tC*fl#h!Z!bdB2OUWa2WgG< zcJe+oqD3S%(#$pfu3t+ScGbPNk+H2Qg!J}pDSAQTW>PwY6vukvIQ1nn4Vr+t;z~cv@Zv^~}BSpgWxPj_AamH|=~eTDLUd57~5 z8-;dTsaMWH z4ux~-g}H+IH#w+8+=;f>48+I+-u0fmWmBOXm{r(AgUgRl>9T$K4vPzB6*srh=}kHC zntN~0oL5rm{>9o9xXlOYgkzH=t!TUiS-E;6P3HIRVUz4wvES*NReJM?L zetAu^2jtsfsv;!&I(e(Y7~1p4IzT7FlPFw{7%9u-uDpqf`^f16DLw1j=iu3!41~Lz z-avJJg7vURqj^VTVz)4|m1NS8+K%%qBOqNLJSN0}L7|$#D2WR{!rzdtE4XNg8|U=h m=0hJgF9~q~1C+6kW5zJuYMFUMvkSp55<>}%B;O4_^20yY7NI== literal 0 HcmV?d00001 diff --git a/docs/html/class_intelli_tool__coll__graph.dot b/docs/html/class_intelli_tool__coll__graph.dot index 39aefd0..67bf4ac 100644 --- a/docs/html/class_intelli_tool__coll__graph.dot +++ b/docs/html/class_intelli_tool__coll__graph.dot @@ -8,10 +8,14 @@ digraph "IntelliTool" Node2 [label="PaintingArea",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html",tooltip="The PaintingArea class manages the methods and stores information about the current painting area,..."]; Node3 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node4 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node4 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; Node4 [label="IntelliColorPicker",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html",tooltip="The IntelliColorPicker manages the selected colors for one whole project."]; - Node5 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nActive" ,fontname="Helvetica"]; - Node5 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; - Node6 -> Node5 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; - Node6 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; + Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node5 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; + Node5 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node4 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node6 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nactiveLayer" ,fontname="Helvetica"]; + Node6 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; + Node7 -> Node6 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; + Node7 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_tool_a0020fad2e26315d5c4d96dbc95d1dceb_icgraph.dot b/docs/html/class_intelli_tool_a0020fad2e26315d5c4d96dbc95d1dceb_icgraph.dot new file mode 100644 index 0000000..5e6ffe0 --- /dev/null +++ b/docs/html/class_intelli_tool_a0020fad2e26315d5c4d96dbc95d1dceb_icgraph.dot @@ -0,0 +1,14 @@ +digraph "IntelliTool::getIsDrawing" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliTool::getIsDrawing",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="PaintingArea::moveActive\lLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#ae05f6893fb44bfcb34018573a609cd1a",tooltip="The moveActiveLayer moves the active layer to a specific position in the layer stack."]; + Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="PaintingArea::movePosition\lActive",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#ac6d089f4357b22d9a9906fd4771de3e7",tooltip="The movePositionActive method moves the active layer to certain position."]; + Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="PaintingArea::slotActivate\lLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a71ac281e0de263208d4a3b9de74258ec",tooltip="The slotActivateLayer method handles the event of selecting one layer as active."]; +} diff --git a/docs/html/class_intelli_tool_a16189b00307c6d7e89f28198f54404b0_icgraph.dot b/docs/html/class_intelli_tool_a16189b00307c6d7e89f28198f54404b0_icgraph.dot index f5999ab..db4d50f 100644 --- a/docs/html/class_intelli_tool_a16189b00307c6d7e89f28198f54404b0_icgraph.dot +++ b/docs/html/class_intelli_tool_a16189b00307c6d7e89f28198f54404b0_icgraph.dot @@ -14,11 +14,11 @@ digraph "IntelliTool::onMouseRightReleased" Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node5 [label="IntelliToolPen::onMouseRight\lReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#abf8562e8cd2da586afdf4d47b3a4ff13",tooltip="A function managing the right click released of a mouse."]; Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolRectangle\l::onMouseRightReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#ad43f653256a6516b9398f82054be0d7f",tooltip="A function managing the right click released of a mouse."]; + Node6 [label="IntelliToolLine::onMouse\lRightReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a6214918cba5753f89d97de4559a2b9b2",tooltip="A function managing the right click released of a mouse."]; Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="IntelliToolCircle::\lonMouseRightReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#aca07540f2f7ccb3d2c0b84890c1afc4c",tooltip="A function managing the right click released of a mouse."]; + Node7 [label="IntelliToolRectangle\l::onMouseRightReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#ad43f653256a6516b9398f82054be0d7f",tooltip="A function managing the right click released of a mouse."]; Node1 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="IntelliToolLine::onMouse\lRightReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a6214918cba5753f89d97de4559a2b9b2",tooltip="A function managing the right click released of a mouse."]; + Node8 [label="IntelliToolCircle::\lonMouseRightReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#aca07540f2f7ccb3d2c0b84890c1afc4c",tooltip="A function managing the right click released of a mouse."]; Node1 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 [label="IntelliToolPolygon\l::onMouseRightReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a47cad87cd02b128b02dc929713bd1d1b",tooltip="A function managing the right click released of a mouse."]; } diff --git a/docs/html/class_intelli_tool_a1e6aa68ac5f3c2ca02319e5ef3f0c966_icgraph.dot b/docs/html/class_intelli_tool_a1e6aa68ac5f3c2ca02319e5ef3f0c966_icgraph.dot index d2bf790..a6e1859 100644 --- a/docs/html/class_intelli_tool_a1e6aa68ac5f3c2ca02319e5ef3f0c966_icgraph.dot +++ b/docs/html/class_intelli_tool_a1e6aa68ac5f3c2ca02319e5ef3f0c966_icgraph.dot @@ -8,17 +8,33 @@ digraph "IntelliTool::onMouseRightPressed" Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 [label="PaintingArea::mousePress\lEvent",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#abfe445f8d9b70ae42bfeda874127dd15",tooltip=" "]; Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node3 [label="IntelliToolPlainTool\l::onMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_plain_tool.html#acb0c46e16d2c09370a2244a936de38b1",tooltip="A function managing the right click pressed of a mouse. Resetting the current fill."]; + Node3 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="IntelliToolFloodFill\l::onMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_flood_fill.html#ada0f7154d119102410a55038763a17e4",tooltip="A function managing the right click pressed of a mouse. Clearing the canvas."]; + Node4 [label="IntelliToolPlainTool\l::onMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_plain_tool.html#acb0c46e16d2c09370a2244a936de38b1",tooltip="A function managing the right click pressed of a mouse. Resetting the current fill."]; Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliToolPen::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a1751e3864a0d36ef42ca55021cae73ce",tooltip="A function managing the right click pressed of a mouse. Resetting the current draw."]; + Node5 [label="IntelliToolFloodFill\l::onMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_flood_fill.html#ada0f7154d119102410a55038763a17e4",tooltip="A function managing the right click pressed of a mouse. Clearing the canvas."]; Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolRectangle\l::onMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a480c6804a4963c5a1c3f7ef84b63c1a8",tooltip="A function managing the right click pressed of a mouse.Resetting the current draw."]; + Node6 [label="IntelliToolPen::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a1751e3864a0d36ef42ca55021cae73ce",tooltip="A function managing the right click pressed of a mouse. Resetting the current draw."]; Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="IntelliToolCircle::\lonMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#a29d7b9ed4960e6fe1f31ff620363e429",tooltip="A function managing the right click pressed of a mouse. Clearing the canvas layer."]; + Node7 [label="IntelliToolLine::onMouse\lRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a6cce59f3017936214b10b47252a898a3",tooltip="A function managing the right click pressed of a mouse. Clearing the canvas."]; Node1 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="IntelliToolLine::onMouse\lRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a6cce59f3017936214b10b47252a898a3",tooltip="A function managing the right click pressed of a mouse. Clearing the canvas."]; + Node8 [label="IntelliToolRectangle\l::onMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a480c6804a4963c5a1c3f7ef84b63c1a8",tooltip="A function managing the right click pressed of a mouse.Resetting the current draw."]; Node1 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 [label="IntelliToolPolygon\l::onMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427",tooltip="A function managing the right click pressed of a mouse. Resetting the current fill."]; + Node9 [label="IntelliToolCircle::\lonMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#a29d7b9ed4960e6fe1f31ff620363e429",tooltip="A function managing the right click pressed of a mouse. Clearing the canvas layer."]; + Node1 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="IntelliToolPolygon\l::onMouseRightPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#aa36b012b48311c36e7cd6771a5081427",tooltip="A function managing the right click pressed of a mouse. Resetting the current fill."]; + Node1 -> Node11 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="IntelliToolCircle::\l~IntelliToolCircle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#a7a03b65b95d7b5d72e6a92c95f068954",tooltip="A Destructor."]; + Node1 -> Node12 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="IntelliToolFloodFill\l::~IntelliToolFloodFill",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_flood_fill.html#a83b1bd8be0cbb32cdf61a9597ec849ba",tooltip="A Destructor."]; + Node1 -> Node13 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="IntelliToolLine::~Intelli\lToolLine",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#acb600b0f4e9225ebce2937c2b7abb4c2",tooltip="An abstract Destructor."]; + Node1 -> Node14 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 [label="IntelliToolPen::~Intelli\lToolPen",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#ac77a025515d0fed6954556fe2b444818",tooltip="A Destructor."]; + Node1 -> Node15 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node15 [label="IntelliToolPlainTool\l::~IntelliToolPlainTool",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_plain_tool.html#a91fe568be05c075814d67440472bb658",tooltip="A Destructor."]; + Node1 -> Node16 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 [label="IntelliToolPolygon\l::~IntelliToolPolygon",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499",tooltip="A Destructor."]; + Node1 -> Node17 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node17 [label="IntelliToolRectangle\l::~IntelliToolRectangle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a7dc1463e726a21255e6297241dc71fb1",tooltip="A Destructor."]; } diff --git a/docs/html/class_intelli_tool_a34b7ef1dde96b94a0ce450a25ae1778c_icgraph.dot b/docs/html/class_intelli_tool_a34b7ef1dde96b94a0ce450a25ae1778c_icgraph.dot index 2c9eec4..eb66746 100644 --- a/docs/html/class_intelli_tool_a34b7ef1dde96b94a0ce450a25ae1778c_icgraph.dot +++ b/docs/html/class_intelli_tool_a34b7ef1dde96b94a0ce450a25ae1778c_icgraph.dot @@ -14,11 +14,11 @@ digraph "IntelliTool::onMouseLeftPressed" Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node5 [label="IntelliToolPen::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205",tooltip="A function managing the left click pressed of a mouse. Starting the drawing procedure."]; Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolRectangle\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#ae03c307ccf66cbe3fd59e3657712368d",tooltip="A function managing the left click pressed of a mouse. Setting the originCorner and draws a rectangle..."]; + Node6 [label="IntelliToolLine::onMouse\lLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846",tooltip="A function managing the left click pressed of a mouse. Sets the starting point of the line."]; Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="IntelliToolCircle::\lonMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ae883b8ae833c78a8867e626c600f9639",tooltip="A function managing the left click pressed of a mouse. Sets the middle point of the cricle."]; + Node7 [label="IntelliToolRectangle\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#ae03c307ccf66cbe3fd59e3657712368d",tooltip="A function managing the left click pressed of a mouse. Setting the originCorner and draws a rectangle..."]; Node1 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; + Node8 [label="IntelliToolCircle::\lonMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ae883b8ae833c78a8867e626c600f9639",tooltip="A function managing the left click pressed of a mouse. Sets the middle point of the cricle."]; Node1 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 [label="IntelliToolLine::onMouse\lLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846",tooltip="A function managing the left click pressed of a mouse. Sets the starting point of the line."]; + Node9 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; } diff --git a/docs/html/class_intelli_tool_a4dccfd4460255ccb866f336406a33574_icgraph.dot b/docs/html/class_intelli_tool_a4dccfd4460255ccb866f336406a33574_icgraph.dot index 5120fd4..313d57e 100644 --- a/docs/html/class_intelli_tool_a4dccfd4460255ccb866f336406a33574_icgraph.dot +++ b/docs/html/class_intelli_tool_a4dccfd4460255ccb866f336406a33574_icgraph.dot @@ -12,11 +12,11 @@ digraph "IntelliTool::onWheelScrolled" Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="IntelliToolPen::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#afe3626ddff440ab125f4a2465c45427a",tooltip="A function managing the scroll event. Changing penWidth relativ to value."]; Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliToolRectangle\l::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a445c53a56e859f970e59f5036e221e0c",tooltip="A function managing the scroll event.Changing edgeWidth relativ to value."]; + Node5 [label="IntelliToolLine::onWheel\lScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#aaf1d686e1ec43f41b5186ccfd806b125",tooltip="A function managing the scroll event. Changing the lineWidth relative to value."]; Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolCircle::\lonWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ae2d9b0fb6695c184c4cb507a5fb75506",tooltip="A function managing the scroll event. Changing the edge Width relative to value."]; + Node6 [label="IntelliToolRectangle\l::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a445c53a56e859f970e59f5036e221e0c",tooltip="A function managing the scroll event.Changing edgeWidth relativ to value."]; Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="IntelliToolLine::onWheel\lScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#aaf1d686e1ec43f41b5186ccfd806b125",tooltip="A function managing the scroll event. Changing the lineWidth relative to value."]; + Node7 [label="IntelliToolCircle::\lonWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ae2d9b0fb6695c184c4cb507a5fb75506",tooltip="A function managing the scroll event. Changing the edge Width relative to value."]; Node1 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node8 [label="IntelliToolPolygon\l::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17",tooltip="A function managing the scroll event. CHanging the lineWidth relative to value."]; Node1 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; diff --git a/docs/html/class_intelli_tool_a906a2575c16c8a33cb2a5197f8d8cc5b_icgraph.dot b/docs/html/class_intelli_tool_a906a2575c16c8a33cb2a5197f8d8cc5b_icgraph.dot index a8fd3c5..e2cce2e 100644 --- a/docs/html/class_intelli_tool_a906a2575c16c8a33cb2a5197f8d8cc5b_icgraph.dot +++ b/docs/html/class_intelli_tool_a906a2575c16c8a33cb2a5197f8d8cc5b_icgraph.dot @@ -14,11 +14,11 @@ digraph "IntelliTool::onMouseLeftReleased" Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node5 [label="IntelliToolPen::onMouseLeft\lReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#abda7a22b9766fa4ad254324a53cab94d",tooltip="A function managing the left click released of a mouse. Merging the drawing to the active layer."]; Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolRectangle\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a94460e3ff1c19e80bde922c55f53cc43",tooltip="A function managing the left click released of a mouse. Merging the draw to the active layer."]; + Node6 [label="IntelliToolLine::onMouse\lLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#ac93f76ff20a1c111a403b298bab02482",tooltip="A function managing the left click released of a mouse."]; Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="IntelliToolCircle::\lonMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ad8e438ec997c57262b5efc2db4cee1a3",tooltip="A function managing the left click released of a mouse."]; + Node7 [label="IntelliToolRectangle\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a94460e3ff1c19e80bde922c55f53cc43",tooltip="A function managing the left click released of a mouse. Merging the draw to the active layer."]; Node1 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; + Node8 [label="IntelliToolCircle::\lonMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ad8e438ec997c57262b5efc2db4cee1a3",tooltip="A function managing the left click released of a mouse."]; Node1 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 [label="IntelliToolLine::onMouse\lLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#ac93f76ff20a1c111a403b298bab02482",tooltip="A function managing the left click released of a mouse."]; + Node9 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; } diff --git a/docs/html/class_intelli_tool_ac10e20414cd8855a2f9b103fb6408639_icgraph.dot b/docs/html/class_intelli_tool_ac10e20414cd8855a2f9b103fb6408639_icgraph.dot index 965ae9b..fd39439 100644 --- a/docs/html/class_intelli_tool_ac10e20414cd8855a2f9b103fb6408639_icgraph.dot +++ b/docs/html/class_intelli_tool_ac10e20414cd8855a2f9b103fb6408639_icgraph.dot @@ -14,11 +14,11 @@ digraph "IntelliTool::onMouseMoved" Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node5 [label="IntelliToolPen::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a58d1d636497b630647ce0c4d652737c2",tooltip="A function managing the mouse moved event. To draw the line."]; Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolRectangle\l::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a4b5931071e21eb6949ffe357315e408b",tooltip="A function managing the mouse moved event.Drawing a rectangle to currrent mouse position."]; + Node6 [label="IntelliToolLine::onMouse\lMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b",tooltip="A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po..."]; Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="IntelliToolCircle::\lonMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#a90ee58c5390a86afc75c14ca79b91d7b",tooltip="A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse posit..."]; + Node7 [label="IntelliToolRectangle\l::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a4b5931071e21eb6949ffe357315e408b",tooltip="A function managing the mouse moved event.Drawing a rectangle to currrent mouse position."]; Node1 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="IntelliToolLine::onMouse\lMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b",tooltip="A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po..."]; + Node8 [label="IntelliToolCircle::\lonMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#a90ee58c5390a86afc75c14ca79b91d7b",tooltip="A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse posit..."]; Node1 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node9 [label="IntelliToolPolygon\l::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a0e3a1135f04c73c159137ae219a38922",tooltip="A function managing the mouse moved event."]; } diff --git a/docs/html/class_intelli_tool_circle-members.html b/docs/html/class_intelli_tool_circle-members.html index b783ca6..5e0d837 100644 --- a/docs/html/class_intelli_tool_circle-members.html +++ b/docs/html/class_intelli_tool_circle-members.html @@ -93,21 +93,26 @@ $(document).ready(function(){initNavTree('class_intelli_tool_circle.html','');})

This is the complete list of members for IntelliToolCircle, including all inherited members.

- - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
ActiveIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
drawingIntelliToolprotected
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliTool
IntelliToolCircle(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliToolCircle
onMouseLeftPressed(int x, int y) overrideIntelliToolCirclevirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolCirclevirtual
onMouseMoved(int x, int y) overrideIntelliToolCirclevirtual
onMouseRightPressed(int x, int y) overrideIntelliToolCirclevirtual
onMouseRightReleased(int x, int y) overrideIntelliToolCirclevirtual
onWheelScrolled(int value) overrideIntelliToolCirclevirtual
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolCircle() overrideIntelliToolCirclevirtual
activeLayerIntelliToolprotected
ActiveTypeIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
getIsDrawing()IntelliTool
getTooltype()IntelliTool
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliTool
IntelliToolCircle(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliToolCircle
isDrawingIntelliToolprotected
onMouseLeftPressed(int x, int y) overrideIntelliToolCirclevirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolCirclevirtual
onMouseMoved(int x, int y) overrideIntelliToolCirclevirtual
onMouseRightPressed(int x, int y) overrideIntelliToolCirclevirtual
onMouseRightReleased(int x, int y) overrideIntelliToolCirclevirtual
onWheelScrolled(int value) overrideIntelliToolCirclevirtual
ToolsettingsIntelliToolprotected
Tooltype enum nameIntelliTool
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolCircle() overrideIntelliToolCirclevirtual
diff --git a/docs/html/class_intelli_tool_circle.html b/docs/html/class_intelli_tool_circle.html index 9462b65..e6ce048 100644 --- a/docs/html/class_intelli_tool_circle.html +++ b/docs/html/class_intelli_tool_circle.html @@ -101,19 +101,18 @@ $(document).ready(function(){initNavTree('class_intelli_tool_circle.html','');})
Inheritance diagram for IntelliToolCircle:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliToolCircle:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliTool + +
- - - + + + @@ -136,39 +135,60 @@ Public Member Functions - - - + + + + + + +

Public Member Functions

 IntelliToolCircle (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general paintingArea and colorPicker. And reading in the inner alpha and edgeWidth. More...
 
 IntelliToolCircle (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general paintingArea and colorPicker. And reading in the inner alpha and edgeWidth. More...
 
virtual ~IntelliToolCircle () override
 A Destructor. More...
 
 A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse position and the middle point. More...
 
- Public Member Functions inherited from IntelliTool
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 
Tooltype getTooltype ()
 
bool getIsDrawing ()
 
+ + + + + - - - + + + + + - - - + + +

Additional Inherited Members

- Public Types inherited from IntelliTool
enum  Tooltype {
+  Tooltype::CIRCLE, +Tooltype::FLOODFILL, +Tooltype::LINE, +Tooltype::PEN, +
+  Tooltype::PLAIN, +Tooltype::POLYGON, +Tooltype::RECTANGLE +
+ }
 
- Protected Attributes inherited from IntelliTool
PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
Tooltype ActiveType
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
IntelliToolsettingsToolsettings
 
LayerObjectactiveLayer
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 A pointer to the drawing canvas of the tool, work on this. More...
 
bool drawing = false
 A flag checking if the user is currently drawing or not. More...
 
bool isDrawing = false
 A flag checking if the user is currently drawing or not. More...
 

Detailed Description

The IntelliToolCircle class represents a tool to draw a circle.

Definition at line 10 of file IntelliToolCircle.h.

Constructor & Destructor Documentation

- -

◆ IntelliToolCircle()

+ +

◆ IntelliToolCircle()

@@ -183,7 +203,13 @@ Additional Inherited Members IntelliColorPicker *  - colorPicker  + colorPicker, + + + + + IntelliToolsettings *  + Toolsettings  @@ -231,7 +257,7 @@ Additional Inherited Members

A Destructor.

-

Definition at line 12 of file IntelliToolCircle.cpp.

+

Definition at line 11 of file IntelliToolCircle.cpp.

@@ -281,12 +307,7 @@ Additional Inherited Members

Reimplemented from IntelliTool.

-

Definition at line 59 of file IntelliToolCircle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 58 of file IntelliToolCircle.cpp.

@@ -335,12 +356,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 67 of file IntelliToolCircle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 66 of file IntelliToolCircle.cpp.

@@ -389,12 +405,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 79 of file IntelliToolCircle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 75 of file IntelliToolCircle.cpp.

@@ -443,12 +454,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 51 of file IntelliToolCircle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 50 of file IntelliToolCircle.cpp.

@@ -497,12 +503,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 55 of file IntelliToolCircle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 54 of file IntelliToolCircle.cpp.

@@ -540,12 +541,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 71 of file IntelliToolCircle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 70 of file IntelliToolCircle.cpp.

diff --git a/docs/html/class_intelli_tool_circle.js b/docs/html/class_intelli_tool_circle.js index bf59fab..b0989fb 100644 --- a/docs/html/class_intelli_tool_circle.js +++ b/docs/html/class_intelli_tool_circle.js @@ -1,6 +1,6 @@ var class_intelli_tool_circle = [ - [ "IntelliToolCircle", "class_intelli_tool_circle.html#a9b185b9d327f8602d0b7f667b8d1d32a", null ], + [ "IntelliToolCircle", "class_intelli_tool_circle.html#a835327842fb71cb6a505e260ac5b69c8", null ], [ "~IntelliToolCircle", "class_intelli_tool_circle.html#a7a03b65b95d7b5d72e6a92c95f068954", null ], [ "onMouseLeftPressed", "class_intelli_tool_circle.html#ae883b8ae833c78a8867e626c600f9639", null ], [ "onMouseLeftReleased", "class_intelli_tool_circle.html#ad8e438ec997c57262b5efc2db4cee1a3", null ], diff --git a/docs/html/class_intelli_tool_circle.png b/docs/html/class_intelli_tool_circle.png new file mode 100644 index 0000000000000000000000000000000000000000..f828daa358dc34d70800f86622c538ad1619e1e9 GIT binary patch literal 425 zcmeAS@N?(olHy`uVBq!ia0vp^$v_;y!3-p=xUH7}DTx4|5ZC|z{{xxt-o2YWd(H$P z3ycpOIKbC?;3<&HQ4-`A%m7pb0#{Fk7%?y~T6nrRhEy=Vo%=BFumTTTKmW@2|4(F3 zzS7u}ch1N-xA^G7rfz+{clB9oO(j;Tv`*sl{Pb~ipV7Z(I0{*n4#Yt4F93^j_AWll704%xb z%x?X<)qMWGob0sC!f*Q2iiJ0w*gaus-s>IDGB#Vuybg^kdK3F;SKq Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node5 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; Node5 [label="IntelliColorPicker",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html",tooltip="The IntelliColorPicker manages the selected colors for one whole project."]; - Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nActive" ,fontname="Helvetica"]; - Node6 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; - Node7 -> Node6 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; - Node7 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; + Node6 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node6 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; + Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node7 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nactiveLayer" ,fontname="Helvetica"]; + Node7 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; + Node8 -> Node7 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; + Node8 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_tool_circle_a7a03b65b95d7b5d72e6a92c95f068954_cgraph.dot b/docs/html/class_intelli_tool_circle_a7a03b65b95d7b5d72e6a92c95f068954_cgraph.dot new file mode 100644 index 0000000..3edbae4 --- /dev/null +++ b/docs/html/class_intelli_tool_circle_a7a03b65b95d7b5d72e6a92c95f068954_cgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliToolCircle::~IntelliToolCircle" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="IntelliToolCircle::\l~IntelliToolCircle",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A Destructor."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTool::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966",tooltip="A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on...."]; +} diff --git a/docs/html/class_intelli_tool_circle_ae2d9b0fb6695c184c4cb507a5fb75506_cgraph.dot b/docs/html/class_intelli_tool_circle_ae2d9b0fb6695c184c4cb507a5fb75506_cgraph.dot index b82aca3..784caf2 100644 --- a/docs/html/class_intelli_tool_circle_ae2d9b0fb6695c184c4cb507a5fb75506_cgraph.dot +++ b/docs/html/class_intelli_tool_circle_ae2d9b0fb6695c184c4cb507a5fb75506_cgraph.dot @@ -6,5 +6,9 @@ digraph "IntelliToolCircle::onWheelScrolled" rankdir="LR"; Node1 [label="IntelliToolCircle::\lonWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function managing the scroll event. Changing the edge Width relative to value."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node2 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliToolsettings\l::setLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a906d37de6ee94b433d53fe3e598cc9fa",tooltip=" "]; } diff --git a/docs/html/class_intelli_tool_flood_fill-members.html b/docs/html/class_intelli_tool_flood_fill-members.html index a3929a0..468a95e 100644 --- a/docs/html/class_intelli_tool_flood_fill-members.html +++ b/docs/html/class_intelli_tool_flood_fill-members.html @@ -93,21 +93,26 @@ $(document).ready(function(){initNavTree('class_intelli_tool_flood_fill.html',''

This is the complete list of members for IntelliToolFloodFill, including all inherited members.

- - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
ActiveIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
drawingIntelliToolprotected
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliTool
IntelliToolFloodFill(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliToolFloodFill
onMouseLeftPressed(int x, int y) overrideIntelliToolFloodFillvirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolFloodFillvirtual
onMouseMoved(int x, int y) overrideIntelliToolFloodFillvirtual
onMouseRightPressed(int x, int y) overrideIntelliToolFloodFillvirtual
onMouseRightReleased(int x, int y) overrideIntelliToolFloodFillvirtual
onWheelScrolled(int value) overrideIntelliToolFloodFillvirtual
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolFloodFill() overrideIntelliToolFloodFillvirtual
activeLayerIntelliToolprotected
ActiveTypeIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
getIsDrawing()IntelliTool
getTooltype()IntelliTool
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliTool
IntelliToolFloodFill(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliToolFloodFill
isDrawingIntelliToolprotected
onMouseLeftPressed(int x, int y) overrideIntelliToolFloodFillvirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolFloodFillvirtual
onMouseMoved(int x, int y) overrideIntelliToolFloodFillvirtual
onMouseRightPressed(int x, int y) overrideIntelliToolFloodFillvirtual
onMouseRightReleased(int x, int y) overrideIntelliToolFloodFillvirtual
onWheelScrolled(int value) overrideIntelliToolFloodFillvirtual
ToolsettingsIntelliToolprotected
Tooltype enum nameIntelliTool
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolFloodFill() overrideIntelliToolFloodFillvirtual
diff --git a/docs/html/class_intelli_tool_flood_fill.html b/docs/html/class_intelli_tool_flood_fill.html index b2f7ad6..ad0beb0 100644 --- a/docs/html/class_intelli_tool_flood_fill.html +++ b/docs/html/class_intelli_tool_flood_fill.html @@ -101,19 +101,18 @@ $(document).ready(function(){initNavTree('class_intelli_tool_flood_fill.html',''
Inheritance diagram for IntelliToolFloodFill:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliToolFloodFill:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliTool + +
- - - + + + @@ -136,39 +135,60 @@ Public Member Functions - - - + + + + + + +

Public Member Functions

 IntelliToolFloodFill (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general paintingArea and colorPicker. More...
 
 IntelliToolFloodFill (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general paintingArea and colorPicker. More...
 
virtual ~IntelliToolFloodFill () override
 A Destructor. More...
 
 A function managing the mouse moved event. More...
 
- Public Member Functions inherited from IntelliTool
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 
Tooltype getTooltype ()
 
bool getIsDrawing ()
 
+ + + + + - - - + + + + + - - - + + +

Additional Inherited Members

- Public Types inherited from IntelliTool
enum  Tooltype {
+  Tooltype::CIRCLE, +Tooltype::FLOODFILL, +Tooltype::LINE, +Tooltype::PEN, +
+  Tooltype::PLAIN, +Tooltype::POLYGON, +Tooltype::RECTANGLE +
+ }
 
- Protected Attributes inherited from IntelliTool
PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
Tooltype ActiveType
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
IntelliToolsettingsToolsettings
 
LayerObjectactiveLayer
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 A pointer to the drawing canvas of the tool, work on this. More...
 
bool drawing = false
 A flag checking if the user is currently drawing or not. More...
 
bool isDrawing = false
 A flag checking if the user is currently drawing or not. More...
 

Detailed Description

The IntelliToolFloodFill class represents a tool to flood FIll a certian area.

Definition at line 10 of file IntelliToolFloodFill.h.

Constructor & Destructor Documentation

- -

◆ IntelliToolFloodFill()

+ +

◆ IntelliToolFloodFill()

@@ -183,7 +203,13 @@ Additional Inherited Members IntelliColorPicker *  - colorPicker  + colorPicker, + + + + + IntelliToolsettings *  + Toolsettings  @@ -231,7 +257,7 @@ Additional Inherited Members

A Destructor.

-

Definition at line 12 of file IntelliToolFloodFill.cpp.

+

Definition at line 13 of file IntelliToolFloodFill.cpp.

@@ -281,12 +307,7 @@ Additional Inherited Members

Reimplemented from IntelliTool.

-

Definition at line 24 of file IntelliToolFloodFill.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 25 of file IntelliToolFloodFill.cpp.

@@ -335,12 +356,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 68 of file IntelliToolFloodFill.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 69 of file IntelliToolFloodFill.cpp.

@@ -389,12 +405,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 77 of file IntelliToolFloodFill.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 78 of file IntelliToolFloodFill.cpp.

@@ -443,12 +454,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 16 of file IntelliToolFloodFill.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 17 of file IntelliToolFloodFill.cpp.

@@ -497,12 +503,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 20 of file IntelliToolFloodFill.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 21 of file IntelliToolFloodFill.cpp.

@@ -540,12 +541,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 72 of file IntelliToolFloodFill.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 73 of file IntelliToolFloodFill.cpp.

diff --git a/docs/html/class_intelli_tool_flood_fill.js b/docs/html/class_intelli_tool_flood_fill.js index b410d56..d215069 100644 --- a/docs/html/class_intelli_tool_flood_fill.js +++ b/docs/html/class_intelli_tool_flood_fill.js @@ -1,6 +1,6 @@ var class_intelli_tool_flood_fill = [ - [ "IntelliToolFloodFill", "class_intelli_tool_flood_fill.html#a83b51838da304e274bf866cf2fd5407a", null ], + [ "IntelliToolFloodFill", "class_intelli_tool_flood_fill.html#a0b283b1b0135ff909a7199be9da9c076", null ], [ "~IntelliToolFloodFill", "class_intelli_tool_flood_fill.html#a83b1bd8be0cbb32cdf61a9597ec849ba", null ], [ "onMouseLeftPressed", "class_intelli_tool_flood_fill.html#ac85e3cb6233508ff9612833a8d9e3961", null ], [ "onMouseLeftReleased", "class_intelli_tool_flood_fill.html#a7438ef96c6c36068bce76e2364e8594c", null ], diff --git a/docs/html/class_intelli_tool_flood_fill.png b/docs/html/class_intelli_tool_flood_fill.png new file mode 100644 index 0000000000000000000000000000000000000000..8b73510271b339de448d1323dcbe053db2279c62 GIT binary patch literal 418 zcmeAS@N?(olHy`uVBq!ia0vp^ML-t<74`jZ3_ipy=ITL^^ zFg|eL0AKHcr$8=8NswPK15gnNTs;+H#K6F4=;`7ZQo;CkE_dD$1s>M+_9?&RE6wK% z?eWyQwQlaJ(jyC6#0@1Z7`9%M;trjp;{i0Tpnub~C}+kWa>5QeA5Ud+l^@fde=OrU@2UEt Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node5 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; Node5 [label="IntelliColorPicker",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html",tooltip="The IntelliColorPicker manages the selected colors for one whole project."]; - Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nActive" ,fontname="Helvetica"]; - Node6 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; - Node7 -> Node6 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; - Node7 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; + Node6 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node6 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; + Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node7 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nactiveLayer" ,fontname="Helvetica"]; + Node7 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; + Node8 -> Node7 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; + Node8 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_tool_flood_fill_a83b1bd8be0cbb32cdf61a9597ec849ba_cgraph.dot b/docs/html/class_intelli_tool_flood_fill_a83b1bd8be0cbb32cdf61a9597ec849ba_cgraph.dot new file mode 100644 index 0000000..ec5fca4 --- /dev/null +++ b/docs/html/class_intelli_tool_flood_fill_a83b1bd8be0cbb32cdf61a9597ec849ba_cgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliToolFloodFill::~IntelliToolFloodFill" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="IntelliToolFloodFill\l::~IntelliToolFloodFill",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A Destructor."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTool::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966",tooltip="A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on...."]; +} diff --git a/docs/html/class_intelli_tool_line-members.html b/docs/html/class_intelli_tool_line-members.html index af26209..096960c 100644 --- a/docs/html/class_intelli_tool_line-members.html +++ b/docs/html/class_intelli_tool_line-members.html @@ -93,21 +93,26 @@ $(document).ready(function(){initNavTree('class_intelli_tool_line.html','');});

This is the complete list of members for IntelliToolLine, including all inherited members.

- - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
ActiveIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
drawingIntelliToolprotected
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliTool
IntelliToolLine(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliToolLine
onMouseLeftPressed(int x, int y) overrideIntelliToolLinevirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolLinevirtual
onMouseMoved(int x, int y) overrideIntelliToolLinevirtual
onMouseRightPressed(int x, int y) overrideIntelliToolLinevirtual
onMouseRightReleased(int x, int y) overrideIntelliToolLinevirtual
onWheelScrolled(int value) overrideIntelliToolLinevirtual
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolLine() overrideIntelliToolLinevirtual
activeLayerIntelliToolprotected
ActiveTypeIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
getIsDrawing()IntelliTool
getTooltype()IntelliTool
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliTool
IntelliToolLine(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliToolLine
isDrawingIntelliToolprotected
onMouseLeftPressed(int x, int y) overrideIntelliToolLinevirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolLinevirtual
onMouseMoved(int x, int y) overrideIntelliToolLinevirtual
onMouseRightPressed(int x, int y) overrideIntelliToolLinevirtual
onMouseRightReleased(int x, int y) overrideIntelliToolLinevirtual
onWheelScrolled(int value) overrideIntelliToolLinevirtual
ToolsettingsIntelliToolprotected
Tooltype enum nameIntelliTool
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolLine() overrideIntelliToolLinevirtual
diff --git a/docs/html/class_intelli_tool_line.html b/docs/html/class_intelli_tool_line.html index 6f85211..1b7d28a 100644 --- a/docs/html/class_intelli_tool_line.html +++ b/docs/html/class_intelli_tool_line.html @@ -101,19 +101,18 @@ $(document).ready(function(){initNavTree('class_intelli_tool_line.html','');});
Inheritance diagram for IntelliToolLine:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliToolLine:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliTool + +
- - - + + + @@ -136,39 +135,60 @@ Public Member Functions - - - + + + + + + +

Public Member Functions

 IntelliToolLine (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general paintingArea and colorPicker. And reading in the lineWidth and lineStyle. More...
 
 IntelliToolLine (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general paintingArea and colorPicker. And reading in the lineWidth and lineStyle. More...
 
virtual ~IntelliToolLine () override
 An abstract Destructor. More...
 
 A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse position. More...
 
- Public Member Functions inherited from IntelliTool
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 
Tooltype getTooltype ()
 
bool getIsDrawing ()
 
+ + + + + - - - + + + + + - - - + + +

Additional Inherited Members

- Public Types inherited from IntelliTool
enum  Tooltype {
+  Tooltype::CIRCLE, +Tooltype::FLOODFILL, +Tooltype::LINE, +Tooltype::PEN, +
+  Tooltype::PLAIN, +Tooltype::POLYGON, +Tooltype::RECTANGLE +
+ }
 
- Protected Attributes inherited from IntelliTool
PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
Tooltype ActiveType
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
IntelliToolsettingsToolsettings
 
LayerObjectactiveLayer
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 A pointer to the drawing canvas of the tool, work on this. More...
 
bool drawing = false
 A flag checking if the user is currently drawing or not. More...
 
bool isDrawing = false
 A flag checking if the user is currently drawing or not. More...
 

Detailed Description

The IntelliToolFloodFill class represents a tool to draw a line.

-

Definition at line 18 of file IntelliToolLine.h.

+

Definition at line 10 of file IntelliToolLine.h.

Constructor & Destructor Documentation

- -

◆ IntelliToolLine()

+ +

◆ IntelliToolLine()

@@ -183,7 +203,13 @@ Additional Inherited Members IntelliColorPicker *  - colorPicker  + colorPicker, + + + + + IntelliToolsettings *  + Toolsettings  @@ -231,7 +257,7 @@ Additional Inherited Members

An abstract Destructor.

-

Definition at line 13 of file IntelliToolLine.cpp.

+

Definition at line 11 of file IntelliToolLine.cpp.

@@ -281,12 +307,7 @@ Additional Inherited Members

Reimplemented from IntelliTool.

-

Definition at line 25 of file IntelliToolLine.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 23 of file IntelliToolLine.cpp.

@@ -335,12 +356,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 32 of file IntelliToolLine.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 30 of file IntelliToolLine.cpp.

@@ -389,12 +405,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 44 of file IntelliToolLine.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 39 of file IntelliToolLine.cpp.

@@ -443,12 +454,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 17 of file IntelliToolLine.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 15 of file IntelliToolLine.cpp.

@@ -497,12 +503,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 21 of file IntelliToolLine.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 19 of file IntelliToolLine.cpp.

@@ -540,12 +541,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 36 of file IntelliToolLine.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 34 of file IntelliToolLine.cpp.

diff --git a/docs/html/class_intelli_tool_line.js b/docs/html/class_intelli_tool_line.js index 30bab7f..08808b7 100644 --- a/docs/html/class_intelli_tool_line.js +++ b/docs/html/class_intelli_tool_line.js @@ -1,6 +1,6 @@ var class_intelli_tool_line = [ - [ "IntelliToolLine", "class_intelli_tool_line.html#a9b2d4bcd69409a21f6080edfea4ae2a2", null ], + [ "IntelliToolLine", "class_intelli_tool_line.html#a111e83e0f0fec7d4ff773ba9f235e4dc", null ], [ "~IntelliToolLine", "class_intelli_tool_line.html#acb600b0f4e9225ebce2937c2b7abb4c2", null ], [ "onMouseLeftPressed", "class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846", null ], [ "onMouseLeftReleased", "class_intelli_tool_line.html#ac93f76ff20a1c111a403b298bab02482", null ], diff --git a/docs/html/class_intelli_tool_line.png b/docs/html/class_intelli_tool_line.png new file mode 100644 index 0000000000000000000000000000000000000000..94372dec6dea2b4f1484b13ef582e6641ee74c28 GIT binary patch literal 386 zcmeAS@N?(olHy`uVBq!ia0vp^kw6^4!3-o_Z)t`CDTx4|5ZC|z{{xxt-o2YWd(H$P z3ycpOIKbC?;3<&HQ4-`A%m7pb0#{Fk7%?y~3VOOYhEy=Vy~~?-$bhHq;q`4-e#=W{ z>^k!D&Pv%Ce@~o<*KDyd_2g@q8R=yZdbMTBpXN;vlU%$I!2@9i# z$I1L@$C;Py-fCwiU2xUyx#aaHi%;f>B*^RA&x$_(z3ioJd1dyUe!t@1`rnGCtCgKN zSM0od=VR~xchsM}e9OHv_lEhCjhBzxvcIlb_q>38bNJ&!H$SYt_UUI1!yXfmm8zj) cf+tV#&hZmo(`2W+3K(Dvp00i_>zopr04x--ssI20 literal 0 HcmV?d00001 diff --git a/docs/html/class_intelli_tool_line__coll__graph.dot b/docs/html/class_intelli_tool_line__coll__graph.dot index be334ec..9b3338a 100644 --- a/docs/html/class_intelli_tool_line__coll__graph.dot +++ b/docs/html/class_intelli_tool_line__coll__graph.dot @@ -10,10 +10,14 @@ digraph "IntelliToolLine" Node3 [label="PaintingArea",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html",tooltip="The PaintingArea class manages the methods and stores information about the current painting area,..."]; Node4 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node5 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; Node5 [label="IntelliColorPicker",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html",tooltip="The IntelliColorPicker manages the selected colors for one whole project."]; - Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nActive" ,fontname="Helvetica"]; - Node6 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; - Node7 -> Node6 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; - Node7 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; + Node6 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node6 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; + Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node7 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nactiveLayer" ,fontname="Helvetica"]; + Node7 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; + Node8 -> Node7 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; + Node8 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_tool_line_a155d676a5f98311217eb095be4759846_cgraph.dot b/docs/html/class_intelli_tool_line_a155d676a5f98311217eb095be4759846_cgraph.dot index 58d157e..68183ee 100644 --- a/docs/html/class_intelli_tool_line_a155d676a5f98311217eb095be4759846_cgraph.dot +++ b/docs/html/class_intelli_tool_line_a155d676a5f98311217eb095be4759846_cgraph.dot @@ -12,6 +12,8 @@ digraph "IntelliToolLine::onMouseLeftPressed" Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="IntelliColorPicker\l::getFirstColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7",tooltip="A function to read the primary selected color."]; Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliTool::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c",tooltip="A function managing the left click Pressed of a Mouse. Resetting the current draw...."]; - Node5 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="IntelliTool::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c",tooltip="A function managing the left click Pressed of a Mouse. Resetting the current draw...."]; + Node6 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; } diff --git a/docs/html/class_intelli_tool_line_aaf1d686e1ec43f41b5186ccfd806b125_cgraph.dot b/docs/html/class_intelli_tool_line_aaf1d686e1ec43f41b5186ccfd806b125_cgraph.dot index 4946e13..b42b674 100644 --- a/docs/html/class_intelli_tool_line_aaf1d686e1ec43f41b5186ccfd806b125_cgraph.dot +++ b/docs/html/class_intelli_tool_line_aaf1d686e1ec43f41b5186ccfd806b125_cgraph.dot @@ -6,5 +6,9 @@ digraph "IntelliToolLine::onWheelScrolled" rankdir="LR"; Node1 [label="IntelliToolLine::onWheel\lScrolled",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function managing the scroll event. Changing the lineWidth relative to value."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node2 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliToolsettings\l::setLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a906d37de6ee94b433d53fe3e598cc9fa",tooltip=" "]; } diff --git a/docs/html/class_intelli_tool_line_abc6324ef0778823fe7e35aef8ae37f9b_cgraph.dot b/docs/html/class_intelli_tool_line_abc6324ef0778823fe7e35aef8ae37f9b_cgraph.dot index aaf6ac9..00952dc 100644 --- a/docs/html/class_intelli_tool_line_abc6324ef0778823fe7e35aef8ae37f9b_cgraph.dot +++ b/docs/html/class_intelli_tool_line_abc6324ef0778823fe7e35aef8ae37f9b_cgraph.dot @@ -12,7 +12,11 @@ digraph "IntelliToolLine::onMouseMoved" Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="IntelliColorPicker\l::getFirstColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7",tooltip="A function to read the primary selected color."]; Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliTool::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639",tooltip="A function managing the mouse moved event. Call this in child classes!"]; - Node5 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; + Node5 [label="IntelliToolsettings\l::getLinestyle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a5beb193b25e0665516244c61c5e65aa6",tooltip=" "]; + Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 [label="IntelliTool::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639",tooltip="A function managing the mouse moved event. Call this in child classes!"]; + Node7 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; } diff --git a/docs/html/class_intelli_tool_line_acb600b0f4e9225ebce2937c2b7abb4c2_cgraph.dot b/docs/html/class_intelli_tool_line_acb600b0f4e9225ebce2937c2b7abb4c2_cgraph.dot new file mode 100644 index 0000000..e06bd53 --- /dev/null +++ b/docs/html/class_intelli_tool_line_acb600b0f4e9225ebce2937c2b7abb4c2_cgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliToolLine::~IntelliToolLine" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="IntelliToolLine::~Intelli\lToolLine",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="An abstract Destructor."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTool::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966",tooltip="A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on...."]; +} diff --git a/docs/html/class_intelli_tool_pen-members.html b/docs/html/class_intelli_tool_pen-members.html index 1f749b0..f97cedc 100644 --- a/docs/html/class_intelli_tool_pen-members.html +++ b/docs/html/class_intelli_tool_pen-members.html @@ -93,21 +93,26 @@ $(document).ready(function(){initNavTree('class_intelli_tool_pen.html','');});

This is the complete list of members for IntelliToolPen, including all inherited members.

- - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
ActiveIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
drawingIntelliToolprotected
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliTool
IntelliToolPen(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliToolPen
onMouseLeftPressed(int x, int y) overrideIntelliToolPenvirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolPenvirtual
onMouseMoved(int x, int y) overrideIntelliToolPenvirtual
onMouseRightPressed(int x, int y) overrideIntelliToolPenvirtual
onMouseRightReleased(int x, int y) overrideIntelliToolPenvirtual
onWheelScrolled(int value) overrideIntelliToolPenvirtual
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolPen() overrideIntelliToolPenvirtual
activeLayerIntelliToolprotected
ActiveTypeIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
getIsDrawing()IntelliTool
getTooltype()IntelliTool
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliTool
IntelliToolPen(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliToolPen
isDrawingIntelliToolprotected
onMouseLeftPressed(int x, int y) overrideIntelliToolPenvirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolPenvirtual
onMouseMoved(int x, int y) overrideIntelliToolPenvirtual
onMouseRightPressed(int x, int y) overrideIntelliToolPenvirtual
onMouseRightReleased(int x, int y) overrideIntelliToolPenvirtual
onWheelScrolled(int value) overrideIntelliToolPenvirtual
ToolsettingsIntelliToolprotected
Tooltype enum nameIntelliTool
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolPen() overrideIntelliToolPenvirtual
diff --git a/docs/html/class_intelli_tool_pen.html b/docs/html/class_intelli_tool_pen.html index 70b6112..910bfe0 100644 --- a/docs/html/class_intelli_tool_pen.html +++ b/docs/html/class_intelli_tool_pen.html @@ -101,19 +101,18 @@ $(document).ready(function(){initNavTree('class_intelli_tool_pen.html','');});
Inheritance diagram for IntelliToolPen:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliToolPen:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliTool + +
- - - + + + @@ -136,39 +135,60 @@ Public Member Functions - - - + + + + + + +

Public Member Functions

 IntelliToolPen (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general paintingArea and colorPicker. Reading the penWidth. More...
 
 IntelliToolPen (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general paintingArea and colorPicker. Reading the penWidth. More...
 
virtual ~IntelliToolPen () override
 A Destructor. More...
 
 A function managing the mouse moved event. To draw the line. More...
 
- Public Member Functions inherited from IntelliTool
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 
Tooltype getTooltype ()
 
bool getIsDrawing ()
 
+ + + + + - - - + + + + + - - - + + +

Additional Inherited Members

- Public Types inherited from IntelliTool
enum  Tooltype {
+  Tooltype::CIRCLE, +Tooltype::FLOODFILL, +Tooltype::LINE, +Tooltype::PEN, +
+  Tooltype::PLAIN, +Tooltype::POLYGON, +Tooltype::RECTANGLE +
+ }
 
- Protected Attributes inherited from IntelliTool
PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
Tooltype ActiveType
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
IntelliToolsettingsToolsettings
 
LayerObjectactiveLayer
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 A pointer to the drawing canvas of the tool, work on this. More...
 
bool drawing = false
 A flag checking if the user is currently drawing or not. More...
 
bool isDrawing = false
 A flag checking if the user is currently drawing or not. More...
 

Detailed Description

The IntelliToolPen class represents a tool to draw a line.

-

Definition at line 10 of file IntelliToolPen.h.

+

Definition at line 11 of file IntelliToolPen.h.

Constructor & Destructor Documentation

- -

◆ IntelliToolPen()

+ +

◆ IntelliToolPen()

@@ -183,7 +203,13 @@ Additional Inherited Members IntelliColorPicker *  - colorPicker  + colorPicker, + + + + + IntelliToolsettings *  + Toolsettings  @@ -282,11 +308,6 @@ Additional Inherited Members

Reimplemented from IntelliTool.

Definition at line 24 of file IntelliToolPen.cpp.

-
-Here is the call graph for this function:
-
-
-
@@ -336,11 +357,6 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

Definition at line 31 of file IntelliToolPen.cpp.

-
-Here is the call graph for this function:
-
-
-
@@ -390,11 +406,6 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

Definition at line 35 of file IntelliToolPen.cpp.

-
-Here is the call graph for this function:
-
-
-
@@ -444,11 +455,6 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

Definition at line 16 of file IntelliToolPen.cpp.

-
-Here is the call graph for this function:
-
-
-
@@ -498,11 +504,6 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

Definition at line 20 of file IntelliToolPen.cpp.

-
-Here is the call graph for this function:
-
-
-
@@ -541,11 +542,6 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

Definition at line 44 of file IntelliToolPen.cpp.

-
-Here is the call graph for this function:
-
-
-
diff --git a/docs/html/class_intelli_tool_pen.js b/docs/html/class_intelli_tool_pen.js index 011662d..19b29f0 100644 --- a/docs/html/class_intelli_tool_pen.js +++ b/docs/html/class_intelli_tool_pen.js @@ -1,6 +1,6 @@ var class_intelli_tool_pen = [ - [ "IntelliToolPen", "class_intelli_tool_pen.html#a889891b3ae7cdefb881aed2e7fff9b47", null ], + [ "IntelliToolPen", "class_intelli_tool_pen.html#a9f885143d6bb7adda3dcd3707d59e14d", null ], [ "~IntelliToolPen", "class_intelli_tool_pen.html#ac77a025515d0fed6954556fe2b444818", null ], [ "onMouseLeftPressed", "class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205", null ], [ "onMouseLeftReleased", "class_intelli_tool_pen.html#abda7a22b9766fa4ad254324a53cab94d", null ], diff --git a/docs/html/class_intelli_tool_pen.png b/docs/html/class_intelli_tool_pen.png new file mode 100644 index 0000000000000000000000000000000000000000..6de00273919a8514135ac4a3ed6ae32428ad6224 GIT binary patch literal 376 zcmeAS@N?(olHy`uVBq!ia0vp^;XoX~!3-p$g(aT>DTx4|5ZC|z{{xxt-o2YWd(H$P z3ycpOIKbC?;3<&HQ4-`A%m7pb0#{Fk7%?y~vU|EXhEy=Vz59^wkOB|OgY4OF{>n$1 zF9=9IrKBpAt#NKqd|uBFX(c5-*2J`VaSzv(udFZS@zPJrJO23j>UW$*@7^7Jx7lx2 z_(Ykg@R>Vh)7M$Ct-U$)FPq1n_RL@VPJ#GNC8f{Y3~t%X z4DCfl+t0F>6}?}>{pRVvJCz*fF$|?G(s?@=5`YT-A5&E-(hy+qSr61R)ja&TM!$rE z@wcUZ)i-K0?ADe&ymq%)R`S!5%CE;QV|UM5cIo1mW1+_vT+KDv9b)yBE%)B(ynFGx zKOFMCFMm4vAGcdfwcNekUvtmdnY{bGNBn&AOPiex1{)9YmQVC{G1;H@?1!*( Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node5 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; Node5 [label="IntelliColorPicker",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html",tooltip="The IntelliColorPicker manages the selected colors for one whole project."]; - Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nActive" ,fontname="Helvetica"]; - Node6 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; - Node7 -> Node6 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; - Node7 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; + Node6 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node6 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; + Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node7 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nactiveLayer" ,fontname="Helvetica"]; + Node7 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; + Node8 -> Node7 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; + Node8 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_tool_pen_a58d1d636497b630647ce0c4d652737c2_cgraph.dot b/docs/html/class_intelli_tool_pen_a58d1d636497b630647ce0c4d652737c2_cgraph.dot index 4451173..91f55e9 100644 --- a/docs/html/class_intelli_tool_pen_a58d1d636497b630647ce0c4d652737c2_cgraph.dot +++ b/docs/html/class_intelli_tool_pen_a58d1d636497b630647ce0c4d652737c2_cgraph.dot @@ -10,7 +10,9 @@ digraph "IntelliToolPen::onMouseMoved" Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="IntelliColorPicker\l::getFirstColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7",tooltip="A function to read the primary selected color."]; Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="IntelliTool::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639",tooltip="A function managing the mouse moved event. Call this in child classes!"]; - Node4 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; + Node4 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="IntelliTool::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#ac10e20414cd8855a2f9b103fb6408639",tooltip="A function managing the mouse moved event. Call this in child classes!"]; + Node5 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; } diff --git a/docs/html/class_intelli_tool_pen_a8ff40aef6d38eb55af31a19322429205_cgraph.dot b/docs/html/class_intelli_tool_pen_a8ff40aef6d38eb55af31a19322429205_cgraph.dot index bcb3d63..cd8772b 100644 --- a/docs/html/class_intelli_tool_pen_a8ff40aef6d38eb55af31a19322429205_cgraph.dot +++ b/docs/html/class_intelli_tool_pen_a8ff40aef6d38eb55af31a19322429205_cgraph.dot @@ -8,10 +8,12 @@ digraph "IntelliToolPen::onMouseLeftPressed" Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node3 [label="IntelliImage::drawPixel",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#af3c859f5c409e37051edfd9e9fbca056",tooltip="A funtcion used to draw a pixel on the Image with the given Color."]; + Node3 [label="IntelliImage::drawPoint",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1",tooltip="A."]; Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="IntelliColorPicker\l::getFirstColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7",tooltip="A function to read the primary selected color."]; Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliTool::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c",tooltip="A function managing the left click Pressed of a Mouse. Resetting the current draw...."]; - Node5 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="IntelliTool::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c",tooltip="A function managing the left click Pressed of a Mouse. Resetting the current draw...."]; + Node6 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; } diff --git a/docs/html/class_intelli_tool_pen_ac77a025515d0fed6954556fe2b444818_cgraph.dot b/docs/html/class_intelli_tool_pen_ac77a025515d0fed6954556fe2b444818_cgraph.dot new file mode 100644 index 0000000..56f030a --- /dev/null +++ b/docs/html/class_intelli_tool_pen_ac77a025515d0fed6954556fe2b444818_cgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliToolPen::~IntelliToolPen" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="IntelliToolPen::~Intelli\lToolPen",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A Destructor."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTool::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966",tooltip="A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on...."]; +} diff --git a/docs/html/class_intelli_tool_pen_afe3626ddff440ab125f4a2465c45427a_cgraph.dot b/docs/html/class_intelli_tool_pen_afe3626ddff440ab125f4a2465c45427a_cgraph.dot index 44ced84..70fa525 100644 --- a/docs/html/class_intelli_tool_pen_afe3626ddff440ab125f4a2465c45427a_cgraph.dot +++ b/docs/html/class_intelli_tool_pen_afe3626ddff440ab125f4a2465c45427a_cgraph.dot @@ -6,5 +6,9 @@ digraph "IntelliToolPen::onWheelScrolled" rankdir="LR"; Node1 [label="IntelliToolPen::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function managing the scroll event. Changing penWidth relativ to value."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node2 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliToolsettings\l::setLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a906d37de6ee94b433d53fe3e598cc9fa",tooltip=" "]; } diff --git a/docs/html/class_intelli_tool_plain_tool-members.html b/docs/html/class_intelli_tool_plain_tool-members.html index 7ef7717..cc21cb3 100644 --- a/docs/html/class_intelli_tool_plain_tool-members.html +++ b/docs/html/class_intelli_tool_plain_tool-members.html @@ -93,21 +93,26 @@ $(document).ready(function(){initNavTree('class_intelli_tool_plain_tool.html',''

This is the complete list of members for IntelliToolPlainTool, including all inherited members.

- - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
ActiveIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
drawingIntelliToolprotected
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliTool
IntelliToolPlainTool(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliToolPlainTool
onMouseLeftPressed(int x, int y) overrideIntelliToolPlainToolvirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolPlainToolvirtual
onMouseMoved(int x, int y) overrideIntelliToolPlainToolvirtual
onMouseRightPressed(int x, int y) overrideIntelliToolPlainToolvirtual
onMouseRightReleased(int x, int y) overrideIntelliToolPlainToolvirtual
onWheelScrolled(int value) overrideIntelliToolPlainToolvirtual
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolPlainTool() overrideIntelliToolPlainToolvirtual
activeLayerIntelliToolprotected
ActiveTypeIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
getIsDrawing()IntelliTool
getTooltype()IntelliTool
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliTool
IntelliToolPlainTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliToolPlainTool
isDrawingIntelliToolprotected
onMouseLeftPressed(int x, int y) overrideIntelliToolPlainToolvirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolPlainToolvirtual
onMouseMoved(int x, int y) overrideIntelliToolPlainToolvirtual
onMouseRightPressed(int x, int y) overrideIntelliToolPlainToolvirtual
onMouseRightReleased(int x, int y) overrideIntelliToolPlainToolvirtual
onWheelScrolled(int value) overrideIntelliToolPlainToolvirtual
ToolsettingsIntelliToolprotected
Tooltype enum nameIntelliTool
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolPlainTool() overrideIntelliToolPlainToolvirtual
diff --git a/docs/html/class_intelli_tool_plain_tool.html b/docs/html/class_intelli_tool_plain_tool.html index 4de1bac..7cda6a5 100644 --- a/docs/html/class_intelli_tool_plain_tool.html +++ b/docs/html/class_intelli_tool_plain_tool.html @@ -101,19 +101,18 @@ $(document).ready(function(){initNavTree('class_intelli_tool_plain_tool.html',''
Inheritance diagram for IntelliToolPlainTool:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliToolPlainTool:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliTool + +
- - - + + + @@ -136,39 +135,60 @@ Public Member Functions - - - + + + + + + +

Public Member Functions

 IntelliToolPlainTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general paintingArea and colorPicker. More...
 
 IntelliToolPlainTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general paintingArea and colorPicker. More...
 
virtual ~IntelliToolPlainTool () override
 A Destructor. More...
 
 A function managing the mouse moved event. More...
 
- Public Member Functions inherited from IntelliTool
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 
Tooltype getTooltype ()
 
bool getIsDrawing ()
 
+ + + + + - - - + + + + + - - - + + +

Additional Inherited Members

- Public Types inherited from IntelliTool
enum  Tooltype {
+  Tooltype::CIRCLE, +Tooltype::FLOODFILL, +Tooltype::LINE, +Tooltype::PEN, +
+  Tooltype::PLAIN, +Tooltype::POLYGON, +Tooltype::RECTANGLE +
+ }
 
- Protected Attributes inherited from IntelliTool
PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
Tooltype ActiveType
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
IntelliToolsettingsToolsettings
 
LayerObjectactiveLayer
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 A pointer to the drawing canvas of the tool, work on this. More...
 
bool drawing = false
 A flag checking if the user is currently drawing or not. More...
 
bool isDrawing = false
 A flag checking if the user is currently drawing or not. More...
 

Detailed Description

The IntelliToolPlainTool class represents a tool to fill the whole canvas with one color.

Definition at line 9 of file IntelliToolPlain.h.

Constructor & Destructor Documentation

- -

◆ IntelliToolPlainTool()

+ +

◆ IntelliToolPlainTool()

@@ -183,7 +203,13 @@ Additional Inherited Members IntelliColorPicker *  - colorPicker  + colorPicker, + + + + + IntelliToolsettings *  + Toolsettings  @@ -231,7 +257,7 @@ Additional Inherited Members

A Destructor.

-

Definition at line 9 of file IntelliToolPlain.cpp.

+

Definition at line 10 of file IntelliToolPlain.cpp.

@@ -281,12 +307,7 @@ Additional Inherited Members

Reimplemented from IntelliTool.

-

Definition at line 13 of file IntelliToolPlain.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 14 of file IntelliToolPlain.cpp.

@@ -335,12 +356,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 19 of file IntelliToolPlain.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 20 of file IntelliToolPlain.cpp.

@@ -389,12 +405,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 31 of file IntelliToolPlain.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 32 of file IntelliToolPlain.cpp.

@@ -443,12 +454,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 23 of file IntelliToolPlain.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 24 of file IntelliToolPlain.cpp.

@@ -497,12 +503,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 27 of file IntelliToolPlain.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 28 of file IntelliToolPlain.cpp.

@@ -540,12 +541,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 35 of file IntelliToolPlain.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 36 of file IntelliToolPlain.cpp.

diff --git a/docs/html/class_intelli_tool_plain_tool.js b/docs/html/class_intelli_tool_plain_tool.js index a3b2395..4fd627b 100644 --- a/docs/html/class_intelli_tool_plain_tool.js +++ b/docs/html/class_intelli_tool_plain_tool.js @@ -1,6 +1,6 @@ var class_intelli_tool_plain_tool = [ - [ "IntelliToolPlainTool", "class_intelli_tool_plain_tool.html#a0ff0b9f7b78b763683076e4417236859", null ], + [ "IntelliToolPlainTool", "class_intelli_tool_plain_tool.html#a816bcd6aea046994420969bed8b139d2", null ], [ "~IntelliToolPlainTool", "class_intelli_tool_plain_tool.html#a91fe568be05c075814d67440472bb658", null ], [ "onMouseLeftPressed", "class_intelli_tool_plain_tool.html#ab786dd5fa80af863246013d43c4b7ac9", null ], [ "onMouseLeftReleased", "class_intelli_tool_plain_tool.html#ac23f5d0f07e42fd7c2ea3fc1347da400", null ], diff --git a/docs/html/class_intelli_tool_plain_tool.png b/docs/html/class_intelli_tool_plain_tool.png new file mode 100644 index 0000000000000000000000000000000000000000..098101431e0ed4a6f68560d929ef795ef2b52ac9 GIT binary patch literal 435 zcmeAS@N?(olHy`uVBq!ia0vp^r9d3O!3-n?cAw$~QW60^A+G=b{|7SPy?Zx%_M8bo z78oBmaDcD(z*8WXqa?^Lm;tB=1g@S6F=Aj~bnisMvx` z658%HN%ig;!(%t38fNn_oPC)j+a`BQ@7nY&&D;9F#(&)q&FE98-JqJsy5Y!LhG{!Q z4+w2%ig*;p;C+YdgRNrA1sNuXBLGkCiCxvX Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node5 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; Node5 [label="IntelliColorPicker",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html",tooltip="The IntelliColorPicker manages the selected colors for one whole project."]; - Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nActive" ,fontname="Helvetica"]; - Node6 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; - Node7 -> Node6 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; - Node7 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; + Node6 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node6 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; + Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node7 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nactiveLayer" ,fontname="Helvetica"]; + Node7 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; + Node8 -> Node7 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; + Node8 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_tool_plain_tool_a91fe568be05c075814d67440472bb658_cgraph.dot b/docs/html/class_intelli_tool_plain_tool_a91fe568be05c075814d67440472bb658_cgraph.dot new file mode 100644 index 0000000..3f08fe6 --- /dev/null +++ b/docs/html/class_intelli_tool_plain_tool_a91fe568be05c075814d67440472bb658_cgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliToolPlainTool::~IntelliToolPlainTool" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="IntelliToolPlainTool\l::~IntelliToolPlainTool",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A Destructor."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTool::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966",tooltip="A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on...."]; +} diff --git a/docs/html/class_intelli_tool_polygon-members.html b/docs/html/class_intelli_tool_polygon-members.html index 975fc52..4d69fcd 100644 --- a/docs/html/class_intelli_tool_polygon-members.html +++ b/docs/html/class_intelli_tool_polygon-members.html @@ -93,19 +93,23 @@ $(document).ready(function(){initNavTree('class_intelli_tool_polygon.html','');}

This is the complete list of members for IntelliToolPolygon, including all inherited members.

- - - - - - - + + + + + + + + + + +
ActiveIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
drawingIntelliToolprotected
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliTool
IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliToolPolygon
activeLayerIntelliToolprotected
ActiveTypeIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
getIsDrawing()IntelliTool
getTooltype()IntelliTool
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliTool
IntelliToolPolygon(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliToolPolygon
onMouseLeftPressed(int x, int y) overrideIntelliToolPolygonvirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolPolygonvirtual
onMouseMoved(int x, int y) overrideIntelliToolPolygonvirtual
onMouseRightPressed(int x, int y) overrideIntelliToolPolygonvirtual
onMouseRightReleased(int x, int y) overrideIntelliToolPolygonvirtual
onWheelScrolled(int value) overrideIntelliToolPolygonvirtual
ToolsettingsIntelliToolprotected
Tooltype enum nameIntelliTool
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolPolygon() overrideIntelliToolPolygon
diff --git a/docs/html/class_intelli_tool_polygon.html b/docs/html/class_intelli_tool_polygon.html index f9de686..fcc8109 100644 --- a/docs/html/class_intelli_tool_polygon.html +++ b/docs/html/class_intelli_tool_polygon.html @@ -101,19 +101,18 @@ $(document).ready(function(){initNavTree('class_intelli_tool_polygon.html','');}
Inheritance diagram for IntelliToolPolygon:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliToolPolygon:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliTool + +
- - - + + + @@ -136,39 +135,60 @@ Public Member Functions - - - + + + + + + +

Public Member Functions

 IntelliToolPolygon (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general paintingArea and colorPicker. More...
 
 IntelliToolPolygon (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general paintingArea and colorPicker. More...
 
 ~IntelliToolPolygon () override
 A Destructor. More...
 
 A function managing the mouse moved event. More...
 
- Public Member Functions inherited from IntelliTool
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 
Tooltype getTooltype ()
 
bool getIsDrawing ()
 
+ + + + + - - - + + + + + - - - + + +

Additional Inherited Members

- Public Types inherited from IntelliTool
enum  Tooltype {
+  Tooltype::CIRCLE, +Tooltype::FLOODFILL, +Tooltype::LINE, +Tooltype::PEN, +
+  Tooltype::PLAIN, +Tooltype::POLYGON, +Tooltype::RECTANGLE +
+ }
 
- Protected Attributes inherited from IntelliTool
PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
Tooltype ActiveType
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
IntelliToolsettingsToolsettings
 
LayerObjectactiveLayer
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 A pointer to the drawing canvas of the tool, work on this. More...
 
bool drawing = false
 A flag checking if the user is currently drawing or not. More...
 
bool isDrawing = false
 A flag checking if the user is currently drawing or not. More...
 

Detailed Description

The IntelliToolPolygon managed the Drawing of Polygonforms.

Definition at line 11 of file IntelliToolPolygon.h.

Constructor & Destructor Documentation

- -

◆ IntelliToolPolygon()

+ +

◆ IntelliToolPolygon()

@@ -183,7 +203,13 @@ Additional Inherited Members IntelliColorPicker *  - colorPicker  + colorPicker, + + + + + IntelliToolsettings *  + Toolsettings  @@ -281,12 +307,7 @@ Additional Inherited Members

Reimplemented from IntelliTool.

-

Definition at line 19 of file IntelliToolPolygon.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 21 of file IntelliToolPolygon.cpp.

@@ -335,12 +356,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 50 of file IntelliToolPolygon.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 71 of file IntelliToolPolygon.cpp.

@@ -389,12 +405,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 91 of file IntelliToolPolygon.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 108 of file IntelliToolPolygon.cpp.

@@ -443,12 +454,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 43 of file IntelliToolPolygon.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 63 of file IntelliToolPolygon.cpp.

@@ -497,12 +503,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 75 of file IntelliToolPolygon.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 97 of file IntelliToolPolygon.cpp.

@@ -540,12 +541,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 79 of file IntelliToolPolygon.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 101 of file IntelliToolPolygon.cpp.

diff --git a/docs/html/class_intelli_tool_polygon.js b/docs/html/class_intelli_tool_polygon.js index b8a0c43..fc4c508 100644 --- a/docs/html/class_intelli_tool_polygon.js +++ b/docs/html/class_intelli_tool_polygon.js @@ -1,6 +1,6 @@ var class_intelli_tool_polygon = [ - [ "IntelliToolPolygon", "class_intelli_tool_polygon.html#ae6e5f07fdf88d12029410a032dc4921d", null ], + [ "IntelliToolPolygon", "class_intelli_tool_polygon.html#a3c39299dfffa5b8a45e72a4c0b48b32c", null ], [ "~IntelliToolPolygon", "class_intelli_tool_polygon.html#a087cbf2254010989df6106a357471499", null ], [ "onMouseLeftPressed", "class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d", null ], [ "onMouseLeftReleased", "class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21", null ], diff --git a/docs/html/class_intelli_tool_polygon.png b/docs/html/class_intelli_tool_polygon.png new file mode 100644 index 0000000000000000000000000000000000000000..15b5f937beefe91ac6b422b20f0d976e84d74e64 GIT binary patch literal 456 zcmV;(0XP1MP)B;Nm#2Q(xxEvR&sJ26kW&^oIxZY=mqt+fV1m83AzCrN(%HDB4j zx{tE_Nt(y=y`*Uz_q|H~Yu~Mq>)fYaUr*kO?5mRWf<3;T-^hk$&V9!wbmL3z!5G0fdu<5msnx2@2U$GM*F_LKhp=` zNcsT$NFRV7=>za1eE@!>55SM~0r-(VfDKA1B@hZg80iD><22vUnydSGv=%Up+ma3M z*!m9Nt5lEGttSCCnSHlH?t5-iudkOY5SIkxb0000 Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node5 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; Node5 [label="IntelliColorPicker",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html",tooltip="The IntelliColorPicker manages the selected colors for one whole project."]; - Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nActive" ,fontname="Helvetica"]; - Node6 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; - Node7 -> Node6 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; - Node7 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; + Node6 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node6 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; + Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node7 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nactiveLayer" ,fontname="Helvetica"]; + Node7 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; + Node8 -> Node7 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; + Node8 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_tool_polygon_a087cbf2254010989df6106a357471499_cgraph.dot b/docs/html/class_intelli_tool_polygon_a087cbf2254010989df6106a357471499_cgraph.dot new file mode 100644 index 0000000..04ae44e --- /dev/null +++ b/docs/html/class_intelli_tool_polygon_a087cbf2254010989df6106a357471499_cgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliToolPolygon::~IntelliToolPolygon" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="IntelliToolPolygon\l::~IntelliToolPolygon",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A Destructor."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTool::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966",tooltip="A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on...."]; +} diff --git a/docs/html/class_intelli_tool_polygon_a4e1473ff408ae2e11cf6a43f6f575f21_cgraph.dot b/docs/html/class_intelli_tool_polygon_a4e1473ff408ae2e11cf6a43f6f575f21_cgraph.dot index f8717dc..798ebb4 100644 --- a/docs/html/class_intelli_tool_polygon_a4e1473ff408ae2e11cf6a43f6f575f21_cgraph.dot +++ b/docs/html/class_intelli_tool_polygon_a4e1473ff408ae2e11cf6a43f6f575f21_cgraph.dot @@ -6,7 +6,7 @@ digraph "IntelliToolPolygon::onMouseLeftReleased" rankdir="LR"; Node1 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliHelper::calculate\lTriangles",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_helper.html#a214dc3624ba4562a03dc922e3dd7b617",tooltip="A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ..."]; + Node2 [label="IntelliTriangulation\l::calculateTriangles",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5",tooltip="A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ..."]; Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node3 [label="IntelliImage::drawLine",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31",tooltip="A function that draws A Line between two given Points in a given color."]; Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; @@ -14,15 +14,19 @@ digraph "IntelliToolPolygon::onMouseLeftReleased" Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node5 [label="IntelliColorPicker\l::getFirstColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7",tooltip="A function to read the primary selected color."]; Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliColorPicker\l::getSecondColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415",tooltip="A function to read the secondary selected color."]; + Node6 [label="IntelliToolsettings\l::getInnerAlpha",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a7d6ce2054ec4bcba7629dc2b514b6b5c",tooltip=" "]; Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="IntelliHelper::isInPolygon",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_helper.html#a44d516b3e619e2a743e9c98dd75cf901",tooltip="A function to check if a point lies in a polygon by checking its spanning triangles."]; - Node7 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="IntelliHelper::isInTriangle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_helper.html#a9fcfe72f00e870be4a8ab9f2e17483c9",tooltip="A function to check if a given point is in a triangle."]; - Node8 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 [label="IntelliHelper::sign",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_helper.html#afdd9fe78cc5d21b59642910220768149",tooltip="A function to get the 2*area of a traingle, using its determinat."]; - Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node10 [label="IntelliTool::onMouseLeft\lReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b",tooltip="A function managing the left click Released of a Mouse. Call this in child classes!"]; + Node7 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="IntelliColorPicker\l::getSecondColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#a55568fbf5dc783f06284b7031ffe9415",tooltip="A function to read the secondary selected color."]; + Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="IntelliTriangulation\l::isInPolygon",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#a00621e2d8708fe2e8966d7d79b64e186",tooltip="A function to check if a point lies in a polygon by checking its spanning triangles."]; + Node9 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="IntelliTriangulation\l::isInTriangle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#ac150fee67fd41a451bd2592f10e00197",tooltip="A function to check if a given point is in a triangle."]; Node10 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node11 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; + Node11 [label="IntelliTriangulation\l::sign",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#af9af549a7faff35a74c1265b290ea0ca",tooltip="A function to get the 2*area of a traingle, using its determinat."]; + Node1 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="IntelliTool::onMouseLeft\lReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a906a2575c16c8a33cb2a5197f8d8cc5b",tooltip="A function managing the left click Released of a Mouse. Call this in child classes!"]; + Node12 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; } diff --git a/docs/html/class_intelli_tool_polygon_a713103300c9f023d64d9eec5ac05dd17_cgraph.dot b/docs/html/class_intelli_tool_polygon_a713103300c9f023d64d9eec5ac05dd17_cgraph.dot index ecdef01..a022779 100644 --- a/docs/html/class_intelli_tool_polygon_a713103300c9f023d64d9eec5ac05dd17_cgraph.dot +++ b/docs/html/class_intelli_tool_polygon_a713103300c9f023d64d9eec5ac05dd17_cgraph.dot @@ -6,5 +6,9 @@ digraph "IntelliToolPolygon::onWheelScrolled" rankdir="LR"; Node1 [label="IntelliToolPolygon\l::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function managing the scroll event. CHanging the lineWidth relative to value."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node2 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliToolsettings\l::setLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a906d37de6ee94b433d53fe3e598cc9fa",tooltip=" "]; } diff --git a/docs/html/class_intelli_tool_polygon_ad5d3b741be6d0647a9cdc9da2cb8bc3d_cgraph.dot b/docs/html/class_intelli_tool_polygon_ad5d3b741be6d0647a9cdc9da2cb8bc3d_cgraph.dot index 20f9501..2b521ba 100644 --- a/docs/html/class_intelli_tool_polygon_ad5d3b741be6d0647a9cdc9da2cb8bc3d_cgraph.dot +++ b/docs/html/class_intelli_tool_polygon_ad5d3b741be6d0647a9cdc9da2cb8bc3d_cgraph.dot @@ -6,14 +6,34 @@ digraph "IntelliToolPolygon::onMouseLeftPressed" rankdir="LR"; Node1 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; + Node2 [label="IntelliTriangulation\l::calculateTriangles",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#acdaf1ed598e868b25e9e06d580da32e5",tooltip="A function to split a polygon in its spanning traingles by using Meisters Theorem of graph theory by ..."]; Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node3 [label="IntelliImage::drawLine",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31",tooltip="A function that draws A Line between two given Points in a given color."]; + Node3 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="IntelliImage::drawPoint",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1",tooltip="A."]; + Node4 [label="IntelliImage::drawLine",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#af8eddbd9aa54c8d37590d1d4bf8dce31",tooltip="A function that draws A Line between two given Points in a given color."]; Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliColorPicker\l::getFirstColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7",tooltip="A function to read the primary selected color."]; + Node5 [label="IntelliImage::drawPoint",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#a2e787f1b333b59401643936ebb3dcfe1",tooltip="A."]; Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliTool::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c",tooltip="A function managing the left click Pressed of a Mouse. Resetting the current draw...."]; - Node6 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="IntelliColorPicker\l::getFirstColor",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#aae2eb27b928fe9388b9398b0556303b7",tooltip="A function to read the primary selected color."]; + Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 [label="PaintingArea::getHeightOf\lActive",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#ac576f58aad03b4dcd47611b6a4b9abb4",tooltip="The getHeightOfActive gets the vertical dimensions of the active layer."]; + Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="PaintingArea::getPolygon\lDataOfRealLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a7ae21fd031ee1c04f92e042e86be0a90",tooltip=" "]; + Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="PaintingArea::getTypeOfImage\lRealLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#ae92b27dfd09573c224d2ae1958d3bead",tooltip=" "]; + Node1 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="PaintingArea::getWidthOf\lActive",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a675ee91b26b1c58be6d833f279d81597",tooltip="The getWidthOfActive gets the horizontal dimensions of the active layer."]; + Node1 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="IntelliTriangulation\l::isInPolygon",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#a00621e2d8708fe2e8966d7d79b64e186",tooltip="A function to check if a point lies in a polygon by checking its spanning triangles."]; + Node12 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="IntelliTriangulation\l::isInTriangle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#ac150fee67fd41a451bd2592f10e00197",tooltip="A function to check if a given point is in a triangle."]; + Node13 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 [label="IntelliTriangulation\l::sign",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$namespace_intelli_triangulation.html#af9af549a7faff35a74c1265b290ea0ca",tooltip="A function to get the 2*area of a traingle, using its determinat."]; + Node1 -> Node15 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node15 [label="IntelliTool::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a34b7ef1dde96b94a0ce450a25ae1778c",tooltip="A function managing the left click Pressed of a Mouse. Resetting the current draw...."]; + Node15 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 -> Node16 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node16 [label="IntelliTool::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966",tooltip="A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on...."]; } diff --git a/docs/html/class_intelli_tool_rectangle-members.html b/docs/html/class_intelli_tool_rectangle-members.html index b532908..0a06328 100644 --- a/docs/html/class_intelli_tool_rectangle-members.html +++ b/docs/html/class_intelli_tool_rectangle-members.html @@ -93,21 +93,26 @@ $(document).ready(function(){initNavTree('class_intelli_tool_rectangle.html','')

This is the complete list of members for IntelliToolRectangle, including all inherited members.

- - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
ActiveIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
drawingIntelliToolprotected
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliTool
IntelliToolRectangle(PaintingArea *Area, IntelliColorPicker *colorPicker)IntelliToolRectangle
onMouseLeftPressed(int x, int y) overrideIntelliToolRectanglevirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolRectanglevirtual
onMouseMoved(int x, int y) overrideIntelliToolRectanglevirtual
onMouseRightPressed(int x, int y) overrideIntelliToolRectanglevirtual
onMouseRightReleased(int x, int y) overrideIntelliToolRectanglevirtual
onWheelScrolled(int value) overrideIntelliToolRectanglevirtual
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolRectangle() overrideIntelliToolRectanglevirtual
activeLayerIntelliToolprotected
ActiveTypeIntelliToolprotected
AreaIntelliToolprotected
CanvasIntelliToolprotected
colorPickerIntelliToolprotected
getIsDrawing()IntelliTool
getTooltype()IntelliTool
IntelliTool(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliTool
IntelliToolRectangle(PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)IntelliToolRectangle
isDrawingIntelliToolprotected
onMouseLeftPressed(int x, int y) overrideIntelliToolRectanglevirtual
onMouseLeftReleased(int x, int y) overrideIntelliToolRectanglevirtual
onMouseMoved(int x, int y) overrideIntelliToolRectanglevirtual
onMouseRightPressed(int x, int y) overrideIntelliToolRectanglevirtual
onMouseRightReleased(int x, int y) overrideIntelliToolRectanglevirtual
onWheelScrolled(int value) overrideIntelliToolRectanglevirtual
ToolsettingsIntelliToolprotected
Tooltype enum nameIntelliTool
~IntelliTool()=0IntelliToolpure virtual
~IntelliToolRectangle() overrideIntelliToolRectanglevirtual
diff --git a/docs/html/class_intelli_tool_rectangle.html b/docs/html/class_intelli_tool_rectangle.html index 1b57256..17ad363 100644 --- a/docs/html/class_intelli_tool_rectangle.html +++ b/docs/html/class_intelli_tool_rectangle.html @@ -101,19 +101,18 @@ $(document).ready(function(){initNavTree('class_intelli_tool_rectangle.html','')
Inheritance diagram for IntelliToolRectangle:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for IntelliToolRectangle:
-
-
Collaboration graph
-
[legend]
+
+ + +IntelliTool + +
- - - + + + @@ -136,39 +135,60 @@ Public Member Functions - - - + + + + + + +

Public Member Functions

 IntelliToolRectangle (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general paintingArea and colorPicker. And reading in the alphaInner and edgeWidth. More...
 
 IntelliToolRectangle (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general paintingArea and colorPicker. And reading in the alphaInner and edgeWidth. More...
 
virtual ~IntelliToolRectangle () override
 A Destructor. More...
 
 A function managing the mouse moved event.Drawing a rectangle to currrent mouse position. More...
 
- Public Member Functions inherited from IntelliTool
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker, IntelliToolsettings *Toolsettings)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 
Tooltype getTooltype ()
 
bool getIsDrawing ()
 
+ + + + + - - - + + + + + - - - + + +

Additional Inherited Members

- Public Types inherited from IntelliTool
enum  Tooltype {
+  Tooltype::CIRCLE, +Tooltype::FLOODFILL, +Tooltype::LINE, +Tooltype::PEN, +
+  Tooltype::PLAIN, +Tooltype::POLYGON, +Tooltype::RECTANGLE +
+ }
 
- Protected Attributes inherited from IntelliTool
PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
Tooltype ActiveType
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
IntelliToolsettingsToolsettings
 
LayerObjectactiveLayer
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 A pointer to the drawing canvas of the tool, work on this. More...
 
bool drawing = false
 A flag checking if the user is currently drawing or not. More...
 
bool isDrawing = false
 A flag checking if the user is currently drawing or not. More...
 

Detailed Description

The IntelliToolRectangle class represents a tool to draw a rectangle.

Definition at line 11 of file IntelliToolRectangle.h.

Constructor & Destructor Documentation

- -

◆ IntelliToolRectangle()

+ +

◆ IntelliToolRectangle()

@@ -183,7 +203,13 @@ Additional Inherited Members IntelliColorPicker *  - colorPicker  + colorPicker, + + + + + IntelliToolsettings *  + Toolsettings  @@ -231,7 +257,7 @@ Additional Inherited Members

A Destructor.

-

Definition at line 11 of file IntelliToolRectangle.cpp.

+

Definition at line 10 of file IntelliToolRectangle.cpp.

@@ -281,12 +307,7 @@ Additional Inherited Members

Reimplemented from IntelliTool.

-

Definition at line 41 of file IntelliToolRectangle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 40 of file IntelliToolRectangle.cpp.

@@ -335,12 +356,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 48 of file IntelliToolRectangle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 47 of file IntelliToolRectangle.cpp.

@@ -389,12 +405,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 52 of file IntelliToolRectangle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 51 of file IntelliToolRectangle.cpp.

@@ -443,12 +454,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 33 of file IntelliToolRectangle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 32 of file IntelliToolRectangle.cpp.

@@ -497,12 +503,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 37 of file IntelliToolRectangle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 36 of file IntelliToolRectangle.cpp.

@@ -540,12 +541,7 @@ Here is the call graph for this function:

Reimplemented from IntelliTool.

-

Definition at line 61 of file IntelliToolRectangle.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 60 of file IntelliToolRectangle.cpp.

diff --git a/docs/html/class_intelli_tool_rectangle.js b/docs/html/class_intelli_tool_rectangle.js index 591c3aa..70a65ee 100644 --- a/docs/html/class_intelli_tool_rectangle.js +++ b/docs/html/class_intelli_tool_rectangle.js @@ -1,6 +1,6 @@ var class_intelli_tool_rectangle = [ - [ "IntelliToolRectangle", "class_intelli_tool_rectangle.html#aa9823939a8b8924520a2943cf6335c11", null ], + [ "IntelliToolRectangle", "class_intelli_tool_rectangle.html#ada06457247d5b173888a9a520b31ec5c", null ], [ "~IntelliToolRectangle", "class_intelli_tool_rectangle.html#a7dc1463e726a21255e6297241dc71fb1", null ], [ "onMouseLeftPressed", "class_intelli_tool_rectangle.html#ae03c307ccf66cbe3fd59e3657712368d", null ], [ "onMouseLeftReleased", "class_intelli_tool_rectangle.html#a94460e3ff1c19e80bde922c55f53cc43", null ], diff --git a/docs/html/class_intelli_tool_rectangle.png b/docs/html/class_intelli_tool_rectangle.png new file mode 100644 index 0000000000000000000000000000000000000000..898198eb1bf369530ee1a92de09dd2b94990f683 GIT binary patch literal 469 zcmeAS@N?(olHy`uVBq!ia0vp^l|UT8!3-q1+O=ANlth3}i0l9V|AEYR@7~RxJ!b-t z1;z&s9N_Cc@D#}9C<*clW&kPzfvcxNj2IXgQ#@T9Ln;{G&b>IP$$-bzKR^A?fB$=| zUYT1r?AX+~`Pj>~H?GL!Nqw9;r?^Zoa*~Wlisz6vx>Z@TBM%iT|G z&$K={dFOk~@>e^Px;{!xU7|c!Ej+0G?upw)(R`k_E>@n;cZicZb@KCrIsXf{_Etwv z(hHxUdeX~rnu_+$NyX=GIy3CQ#(Tgu@5$}6+;83fu~{$tdqV!^ZAUhP;0cUtL{b>E zStSp6IkIgCf^#28E}b%|+k=6R%cx=My@ow^9m-Anw@Nmq`7AtGG@BvAZGT>g!dVAMlvt2&93%ob1Tfcj|ROu71R~w{vKK!~cal!c;YwfG*X2qP_ zsq6TATe&;?6V=C>=a;sn)(8Jntjs=Hd%n5YZq2uiH|;*MUj6rSj`ZgARezK6ud{f+ z+qCKaZHD@l2iMgTe~ HDWM4fAf(*k literal 0 HcmV?d00001 diff --git a/docs/html/class_intelli_tool_rectangle__coll__graph.dot b/docs/html/class_intelli_tool_rectangle__coll__graph.dot index 7695fd2..fcf24b8 100644 --- a/docs/html/class_intelli_tool_rectangle__coll__graph.dot +++ b/docs/html/class_intelli_tool_rectangle__coll__graph.dot @@ -10,10 +10,14 @@ digraph "IntelliToolRectangle" Node3 [label="PaintingArea",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html",tooltip="The PaintingArea class manages the methods and stores information about the current painting area,..."]; Node4 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node4 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node5 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; Node5 [label="IntelliColorPicker",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html",tooltip="The IntelliColorPicker manages the selected colors for one whole project."]; - Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nActive" ,fontname="Helvetica"]; - Node6 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; - Node7 -> Node6 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; - Node7 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; + Node6 -> Node3 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node6 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; + Node6 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node5 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node7 -> Node2 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Canvas\nactiveLayer" ,fontname="Helvetica"]; + Node7 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; + Node8 -> Node7 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" image" ,fontname="Helvetica"]; + Node8 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; } diff --git a/docs/html/class_intelli_tool_rectangle_a445c53a56e859f970e59f5036e221e0c_cgraph.dot b/docs/html/class_intelli_tool_rectangle_a445c53a56e859f970e59f5036e221e0c_cgraph.dot index 9af030b..d2c20a9 100644 --- a/docs/html/class_intelli_tool_rectangle_a445c53a56e859f970e59f5036e221e0c_cgraph.dot +++ b/docs/html/class_intelli_tool_rectangle_a445c53a56e859f970e59f5036e221e0c_cgraph.dot @@ -6,5 +6,9 @@ digraph "IntelliToolRectangle::onWheelScrolled" rankdir="LR"; Node1 [label="IntelliToolRectangle\l::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A function managing the scroll event.Changing edgeWidth relativ to value."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node2 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a",tooltip=" "]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliTool::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a4dccfd4460255ccb866f336406a33574",tooltip="A function managing the scroll event. A positive value means scrolling outwards. Call this in child c..."]; + Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliToolsettings\l::setLineWidth",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html#a906d37de6ee94b433d53fe3e598cc9fa",tooltip=" "]; } diff --git a/docs/html/class_intelli_tool_rectangle_a7dc1463e726a21255e6297241dc71fb1_cgraph.dot b/docs/html/class_intelli_tool_rectangle_a7dc1463e726a21255e6297241dc71fb1_cgraph.dot new file mode 100644 index 0000000..25dbf94 --- /dev/null +++ b/docs/html/class_intelli_tool_rectangle_a7dc1463e726a21255e6297241dc71fb1_cgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliToolRectangle::~IntelliToolRectangle" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="IntelliToolRectangle\l::~IntelliToolRectangle",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="A Destructor."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTool::onMouseRight\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a1e6aa68ac5f3c2ca02319e5ef3f0c966",tooltip="A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on...."]; +} diff --git a/docs/html/class_intelli_toolsettings-members.html b/docs/html/class_intelli_toolsettings-members.html new file mode 100644 index 0000000..9a5cc60 --- /dev/null +++ b/docs/html/class_intelli_toolsettings-members.html @@ -0,0 +1,117 @@ + + + + + + + +IntelliPhoto: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ + + + + + diff --git a/docs/html/class_intelli_toolsettings.html b/docs/html/class_intelli_toolsettings.html new file mode 100644 index 0000000..20551b6 --- /dev/null +++ b/docs/html/class_intelli_toolsettings.html @@ -0,0 +1,362 @@ + + + + + + + +IntelliPhoto: IntelliToolsettings Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
IntelliPhoto +  0.5 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
IntelliToolsettings Class Reference
+
+
+ +

#include <IntelliToolsettings.h>

+ + + + + +

+Public Types

enum  LineStyle { LineStyle::SOLID_LINE, +LineStyle::DOTTED_LINE + }
 The LineStyle enum classifing all ways of drawing a line. More...
 
+ + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 IntelliToolsettings ()
 
virtual ~IntelliToolsettings ()
 
int getLineWidth ()
 
void setLineWidth ()
 
void setLineWidth (int LineWidth)
 
int getInnerAlpha ()
 
void setInnerAlpha ()
 
void setInnerAlpha (int innerAlpha)
 
LineStyle getLinestyle ()
 
+

Detailed Description

+
+

Definition at line 4 of file IntelliToolsettings.h.

+

Member Enumeration Documentation

+ +

◆ LineStyle

+ +
+
+ + + + + +
+ + + + +
enum IntelliToolsettings::LineStyle
+
+strong
+
+ +

The LineStyle enum classifing all ways of drawing a line.

+ + + +
Enumerator
SOLID_LINE 
DOTTED_LINE 
+ +

Definition at line 9 of file IntelliToolsettings.h.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ IntelliToolsettings()

+ +
+
+ + + + + + + +
IntelliToolsettings::IntelliToolsettings ()
+
+ +

Definition at line 4 of file IntelliToolsettings.cpp.

+ +
+
+ +

◆ ~IntelliToolsettings()

+ +
+
+ + + + + +
+ + + + + + + +
IntelliToolsettings::~IntelliToolsettings ()
+
+virtual
+
+ +

Definition at line 11 of file IntelliToolsettings.cpp.

+ +
+
+

Member Function Documentation

+ +

◆ getInnerAlpha()

+ +
+
+ + + + + + + +
int IntelliToolsettings::getInnerAlpha ()
+
+ +

Definition at line 33 of file IntelliToolsettings.cpp.

+ +
+
+ +

◆ getLinestyle()

+ +
+
+ + + + + + + +
IntelliToolsettings::LineStyle IntelliToolsettings::getLinestyle ()
+
+ +

Definition at line 51 of file IntelliToolsettings.cpp.

+ +
+
+ +

◆ getLineWidth()

+ +
+
+ + + + + + + +
int IntelliToolsettings::getLineWidth ()
+
+ +

Definition at line 15 of file IntelliToolsettings.cpp.

+ +
+
+ +

◆ setInnerAlpha() [1/2]

+ +
+
+ + + + + + + +
void IntelliToolsettings::setInnerAlpha ()
+
+ +

Definition at line 37 of file IntelliToolsettings.cpp.

+ +
+
+ +

◆ setInnerAlpha() [2/2]

+ +
+
+ + + + + + + + +
void IntelliToolsettings::setInnerAlpha (int innerAlpha)
+
+ +

Definition at line 41 of file IntelliToolsettings.cpp.

+ +
+
+ +

◆ setLineWidth() [1/2]

+ +
+
+ + + + + + + +
void IntelliToolsettings::setLineWidth ()
+
+ +

Definition at line 19 of file IntelliToolsettings.cpp.

+ +
+
+ +

◆ setLineWidth() [2/2]

+ +
+
+ + + + + + + + +
void IntelliToolsettings::setLineWidth (int LineWidth)
+
+ +

Definition at line 23 of file IntelliToolsettings.cpp.

+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/docs/html/class_intelli_toolsettings.js b/docs/html/class_intelli_toolsettings.js new file mode 100644 index 0000000..e80469a --- /dev/null +++ b/docs/html/class_intelli_toolsettings.js @@ -0,0 +1,16 @@ +var class_intelli_toolsettings = +[ + [ "LineStyle", "class_intelli_toolsettings.html#a687dacd0e15b92dda5626b1b44b86089", [ + [ "SOLID_LINE", "class_intelli_toolsettings.html#a687dacd0e15b92dda5626b1b44b86089ae45e1e6b2e6dde14829d057a4ef44199", null ], + [ "DOTTED_LINE", "class_intelli_toolsettings.html#a687dacd0e15b92dda5626b1b44b86089a7660f396543c877e45d443f99d02bd0e", null ] + ] ], + [ "IntelliToolsettings", "class_intelli_toolsettings.html#a5560602964ab95380967d63ab7ec6e69", null ], + [ "~IntelliToolsettings", "class_intelli_toolsettings.html#a927e50594a459c952d06acd34c0eff56", null ], + [ "getInnerAlpha", "class_intelli_toolsettings.html#a7d6ce2054ec4bcba7629dc2b514b6b5c", null ], + [ "getLinestyle", "class_intelli_toolsettings.html#a5beb193b25e0665516244c61c5e65aa6", null ], + [ "getLineWidth", "class_intelli_toolsettings.html#a68528dd3bad8f39ba19fa6b12a4e415a", null ], + [ "setInnerAlpha", "class_intelli_toolsettings.html#a32f165c89190e40caf96abb916e6c876", null ], + [ "setInnerAlpha", "class_intelli_toolsettings.html#a9a61f3de61efeba2287f8b32941f4271", null ], + [ "setLineWidth", "class_intelli_toolsettings.html#a906d37de6ee94b433d53fe3e598cc9fa", null ], + [ "setLineWidth", "class_intelli_toolsettings.html#a73fa94c85c6c2fdc1a33975a33304a6f", null ] +]; \ No newline at end of file diff --git a/docs/html/class_intelli_toolsettings_a5beb193b25e0665516244c61c5e65aa6_icgraph.dot b/docs/html/class_intelli_toolsettings_a5beb193b25e0665516244c61c5e65aa6_icgraph.dot new file mode 100644 index 0000000..3ee4cb6 --- /dev/null +++ b/docs/html/class_intelli_toolsettings_a5beb193b25e0665516244c61c5e65aa6_icgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliToolsettings::getLinestyle" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliToolsettings\l::getLinestyle",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolLine::onMouse\lMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b",tooltip="A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po..."]; +} diff --git a/docs/html/class_intelli_toolsettings_a68528dd3bad8f39ba19fa6b12a4e415a_icgraph.dot b/docs/html/class_intelli_toolsettings_a68528dd3bad8f39ba19fa6b12a4e415a_icgraph.dot new file mode 100644 index 0000000..c709ae3 --- /dev/null +++ b/docs/html/class_intelli_toolsettings_a68528dd3bad8f39ba19fa6b12a4e415a_icgraph.dot @@ -0,0 +1,30 @@ +digraph "IntelliToolsettings::getLineWidth" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliToolsettings\l::getLineWidth",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolPen::onMouseLeft\lPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a8ff40aef6d38eb55af31a19322429205",tooltip="A function managing the left click pressed of a mouse. Starting the drawing procedure."]; + Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliToolLine::onMouse\lLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#a155d676a5f98311217eb095be4759846",tooltip="A function managing the left click pressed of a mouse. Sets the starting point of the line."]; + Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; + Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; + Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="IntelliToolPen::onMouseMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#a58d1d636497b630647ce0c4d652737c2",tooltip="A function managing the mouse moved event. To draw the line."]; + Node1 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 [label="IntelliToolLine::onMouse\lMoved",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#abc6324ef0778823fe7e35aef8ae37f9b",tooltip="A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse po..."]; + Node1 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node8 [label="IntelliToolPen::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#afe3626ddff440ab125f4a2465c45427a",tooltip="A function managing the scroll event. Changing penWidth relativ to value."]; + Node1 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node9 [label="IntelliToolLine::onWheel\lScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#aaf1d686e1ec43f41b5186ccfd806b125",tooltip="A function managing the scroll event. Changing the lineWidth relative to value."]; + Node1 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="IntelliToolRectangle\l::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a445c53a56e859f970e59f5036e221e0c",tooltip="A function managing the scroll event.Changing edgeWidth relativ to value."]; + Node1 -> Node11 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="IntelliToolCircle::\lonWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ae2d9b0fb6695c184c4cb507a5fb75506",tooltip="A function managing the scroll event. Changing the edge Width relative to value."]; + Node1 -> Node12 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node12 [label="IntelliToolPolygon\l::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17",tooltip="A function managing the scroll event. CHanging the lineWidth relative to value."]; +} diff --git a/docs/html/class_intelli_toolsettings_a7d6ce2054ec4bcba7629dc2b514b6b5c_icgraph.dot b/docs/html/class_intelli_toolsettings_a7d6ce2054ec4bcba7629dc2b514b6b5c_icgraph.dot new file mode 100644 index 0000000..72567ea --- /dev/null +++ b/docs/html/class_intelli_toolsettings_a7d6ce2054ec4bcba7629dc2b514b6b5c_icgraph.dot @@ -0,0 +1,10 @@ +digraph "IntelliToolsettings::getInnerAlpha" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliToolsettings\l::getInnerAlpha",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolPolygon\l::onMouseLeftReleased",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a4e1473ff408ae2e11cf6a43f6f575f21",tooltip="A function managing the left click released of a mouse. Merging the fill to the active layer."]; +} diff --git a/docs/html/class_intelli_toolsettings_a906d37de6ee94b433d53fe3e598cc9fa_icgraph.dot b/docs/html/class_intelli_toolsettings_a906d37de6ee94b433d53fe3e598cc9fa_icgraph.dot new file mode 100644 index 0000000..57e6e14 --- /dev/null +++ b/docs/html/class_intelli_toolsettings_a906d37de6ee94b433d53fe3e598cc9fa_icgraph.dot @@ -0,0 +1,18 @@ +digraph "IntelliToolsettings::setLineWidth" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="IntelliToolsettings\l::setLineWidth",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolPen::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html#afe3626ddff440ab125f4a2465c45427a",tooltip="A function managing the scroll event. Changing penWidth relativ to value."]; + Node1 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliToolLine::onWheel\lScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html#aaf1d686e1ec43f41b5186ccfd806b125",tooltip="A function managing the scroll event. Changing the lineWidth relative to value."]; + Node1 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliToolRectangle\l::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html#a445c53a56e859f970e59f5036e221e0c",tooltip="A function managing the scroll event.Changing edgeWidth relativ to value."]; + Node1 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="IntelliToolCircle::\lonWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html#ae2d9b0fb6695c184c4cb507a5fb75506",tooltip="A function managing the scroll event. Changing the edge Width relative to value."]; + Node1 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="IntelliToolPolygon\l::onWheelScrolled",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#a713103300c9f023d64d9eec5ac05dd17",tooltip="A function managing the scroll event. CHanging the lineWidth relative to value."]; +} diff --git a/docs/html/class_painting_area-members.html b/docs/html/class_painting_area-members.html index c5dd00b..8f97d2d 100644 --- a/docs/html/class_painting_area-members.html +++ b/docs/html/class_painting_area-members.html @@ -93,36 +93,42 @@ $(document).ready(function(){initNavTree('class_painting_area.html','');});

This is the complete list of members for PaintingArea, including all inherited members.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
addLayer(int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)PaintingArea
addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)PaintingArea
colorPickerSetFirstColor()PaintingArea
colorPickerSetSecondColor()PaintingArea
colorPickerSwitchColor()PaintingArea
createCircleTool()PaintingArea
createFloodFillTool()PaintingArea
createLineTool()PaintingArea
createPenTool()PaintingArea
createPlainTool()PaintingArea
createPolygonTool()PaintingArea
createRectangleTool()PaintingArea
deleteLayer(int index)PaintingArea
floodFill(int r, int g, int b, int a)PaintingArea
getHeightOfActive()PaintingArea
getWidthOfActive()PaintingArea
mouseMoveEvent(QMouseEvent *event) overridePaintingAreaprotected
mousePressEvent(QMouseEvent *event) overridePaintingAreaprotected
mouseReleaseEvent(QMouseEvent *event) overridePaintingAreaprotected
moveActiveLayer(int idx)PaintingArea
movePositionActive(int x, int y)PaintingArea
open(const QString &fileName)PaintingArea
paintEvent(QPaintEvent *event) overridePaintingAreaprotected
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)PaintingArea
resizeEvent(QResizeEvent *event) overridePaintingAreaprotected
save(const QString &fileName, const char *fileFormat)PaintingArea
setAlphaOfLayer(int index, int alpha)PaintingArea
setLayerToActive(int index)PaintingArea
slotActivateLayer(int a)PaintingAreaslot
slotDeleteActiveLayer()PaintingAreaslot
addLayer(int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)PaintingArea
addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)PaintingArea
colorPickerPaintingArea
colorPickerSetFirstColor()PaintingArea
colorPickerSetSecondColor()PaintingArea
colorPickerSwapColors()PaintingArea
createCircleTool()PaintingArea
createFloodFillTool()PaintingArea
createLineTool()PaintingArea
createPenTool()PaintingArea
createPlainTool()PaintingArea
createPolygonTool()PaintingArea
createRectangleTool()PaintingArea
deleteLayer(int idx)PaintingArea
floodFill(int r, int g, int b, int a)PaintingArea
getHeightOfActive()PaintingArea
getImageOfActiveLayer()PaintingArea
getNumberOfActiveLayer()PaintingArea
getPolygonDataOfRealLayer()PaintingArea
getTypeOfImageRealLayer()PaintingArea
getWidthOfActive()PaintingArea
mouseMoveEvent(QMouseEvent *event) overridePaintingAreaprotected
mousePressEvent(QMouseEvent *event) overridePaintingAreaprotected
mouseReleaseEvent(QMouseEvent *event) overridePaintingAreaprotected
moveActiveLayer(int idx)PaintingArea
movePositionActive(int x, int y)PaintingArea
open(const QString &filePath)PaintingArea
paintEvent(QPaintEvent *event) overridePaintingAreaprotected
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)PaintingArea
resizeEvent(QResizeEvent *event) overridePaintingAreaprotected
save(const QString &filePath, const char *fileFormat)PaintingArea
setLayerActive(int idx)PaintingArea
setLayerAlpha(int idx, int alpha)PaintingArea
slotActivateLayer(int a)PaintingAreaslot
slotDeleteActiveLayer()PaintingAreaslot
ToolsettingsPaintingArea
wheelEvent(QWheelEvent *event) overridePaintingAreaprotected
~PaintingArea() overridePaintingArea
diff --git a/docs/html/class_painting_area.html b/docs/html/class_painting_area.html index 312e51c..05e80b3 100644 --- a/docs/html/class_painting_area.html +++ b/docs/html/class_painting_area.html @@ -89,6 +89,7 @@ $(document).ready(function(){initNavTree('class_painting_area.html','');});
@@ -103,13 +104,9 @@ $(document).ready(function(){initNavTree('class_painting_area.html','');});
Inheritance diagram for PaintingArea:
-
Inheritance graph
-
[legend]
-
-Collaboration diagram for PaintingArea:
-
-
Collaboration graph
-
[legend]
+
+ +
@@ -128,27 +125,27 @@ Public Member Functions - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -164,9 +161,9 @@ Public Member Functions - - - + + + @@ -187,6 +184,21 @@ Public Member Functions + + + + + + + + +

Public Slots

 ~PaintingArea () override
 This deconstructor is used to clear up the memory and remove the currently active window. More...
 
bool open (const QString &fileName)
 The open method is used for loading a picture into the current layer. More...
 
bool save (const QString &fileName, const char *fileFormat)
 The save method is used for exporting the current project as one picture. More...
 
int addLayer (int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
 The addLayer adds a layer to the current project/ painting area. More...
 
int addLayerAt (int idx, int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
 The addLayerAt adds a layer to the current project/ painting area at a specific position in the layer stack. More...
 
void deleteLayer (int index)
 The deleteLayer method removes a layer at a given index. More...
 
void setLayerToActive (int index)
 The setLayerToActive method marks a specific layer as active. More...
 
void setAlphaOfLayer (int index, int alpha)
 The setAlphaOfLayer method sets the alpha value of a specific layer. More...
 
bool open (const QString &filePath)
 The open method is used for loading a picture into the current layer. More...
 
bool save (const QString &filePath, const char *fileFormat)
 The save method is used for exporting the current project as one picture. More...
 
int addLayer (int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)
 The addLayer adds a layer to the current project/ painting area. More...
 
int addLayerAt (int idx, int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)
 The addLayerAt adds a layer to the current project/ painting area at a specific position in the layer stack. More...
 
void deleteLayer (int idx)
 The deleteLayer method removes a layer at a given idx. More...
 
void setLayerActive (int idx)
 The setLayerToActive method marks a specific layer as active. More...
 
void setLayerAlpha (int idx, int alpha)
 The setAlphaOfLayer method sets the alpha value of a specific layer. More...
 
void floodFill (int r, int g, int b, int a)
 The floodFill method fills a the active layer with a given color. More...
 
void colorPickerSetSecondColor ()
 The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color. More...
 
void colorPickerSwitchColor ()
 The colorPickerSwitchColor swaps the primary color with the secondary drawing color. More...
 
void colorPickerSwapColors ()
 The colorPickerSwitchColor swaps the primary color with the secondary drawing color. More...
 
void createPenTool ()
 
void createPlainTool ()
int getHeightOfActive ()
 The getHeightOfActive gets the vertical dimensions of the active layer. More...
 
IntelliImage::ImageType getTypeOfImageRealLayer ()
 
std::vector< QPoint > getPolygonDataOfRealLayer ()
 
int getNumberOfActiveLayer ()
 
IntelliImagegetImageOfActiveLayer ()
 
+ + + + +

+Public Attributes

IntelliToolsettings Toolsettings
 
IntelliColorPicker colorPicker
 
@@ -206,7 +218,7 @@ Protected Member Functions

Detailed Description

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

-

Definition at line 36 of file PaintingArea.h.

+

Definition at line 37 of file PaintingArea.h.

Constructor & Destructor Documentation

◆ PaintingArea()

@@ -251,11 +263,6 @@ Protected Member Functions

Definition at line 21 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
@@ -289,8 +296,8 @@ Here is the call graph for this function:

Member Function Documentation

- -

◆ addLayer()

+ +

◆ addLayer()

@@ -322,8 +329,8 @@ Here is the call graph for this function:
- - + + @@ -347,16 +354,11 @@ Here is the call graph for this function:
Returns
Returns the number of layers in the project

Definition at line 56 of file PaintingArea.cpp.

-
-Here is the caller graph for this function:
-
-
-
- -

◆ addLayerAt()

+ +

◆ addLayerAt()

@@ -394,8 +396,8 @@ Here is the caller graph for this function:
- - + + @@ -408,7 +410,7 @@ Here is the caller graph for this function:

The addLayerAt adds a layer to the current project/ painting area at a specific position in the layer stack.

Parameters

Protected Member Functions

ImageType type = ImageType::Raster_Image IntelliImage::ImageType type = IntelliImage::ImageType::RASTERIMAGE 
ImageType type = ImageType::Raster_Image IntelliImage::ImageType type = IntelliImage::ImageType::RASTERIMAGE 
- + @@ -438,12 +440,7 @@ Here is the caller graph for this function:

The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.

-

Definition at line 166 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 188 of file PaintingArea.cpp.

@@ -464,23 +461,18 @@ Here is the call graph for this function:

The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.

-

Definition at line 171 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 193 of file PaintingArea.cpp.

- -

◆ colorPickerSwitchColor()

+ +

◆ colorPickerSwapColors()

idx- ID of the position the new layer should be added
idx- Index of the position the new layer should be added
width- Width of the layer in pixles
height- Height of the layer in pixles
widthOffset- Offset of the layer measured to the left border of the painting area in pixles
- + @@ -490,12 +482,7 @@ Here is the call graph for this function:

The colorPickerSwitchColor swaps the primary color with the secondary drawing color.

-

Definition at line 176 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 198 of file PaintingArea.cpp.

@@ -514,7 +501,7 @@ Here is the call graph for this function:
void PaintingArea::colorPickerSwitchColor void PaintingArea::colorPickerSwapColors ( )
-

Definition at line 200 of file PaintingArea.cpp.

+

Definition at line 222 of file PaintingArea.cpp.

@@ -533,7 +520,7 @@ Here is the call graph for this function:
-

Definition at line 209 of file PaintingArea.cpp.

+

Definition at line 231 of file PaintingArea.cpp.

@@ -552,7 +539,7 @@ Here is the call graph for this function:
-

Definition at line 190 of file PaintingArea.cpp.

+

Definition at line 212 of file PaintingArea.cpp.

@@ -571,7 +558,7 @@ Here is the call graph for this function:
-

Definition at line 180 of file PaintingArea.cpp.

+

Definition at line 202 of file PaintingArea.cpp.

@@ -590,7 +577,7 @@ Here is the call graph for this function:
-

Definition at line 185 of file PaintingArea.cpp.

+

Definition at line 207 of file PaintingArea.cpp.

@@ -609,7 +596,7 @@ Here is the call graph for this function:
-

Definition at line 204 of file PaintingArea.cpp.

+

Definition at line 226 of file PaintingArea.cpp.

@@ -628,12 +615,12 @@ Here is the call graph for this function:
-

Definition at line 195 of file PaintingArea.cpp.

+

Definition at line 217 of file PaintingArea.cpp.

- -

◆ deleteLayer()

+ +

◆ deleteLayer()

@@ -642,21 +629,21 @@ Here is the call graph for this function:
void PaintingArea::deleteLayer ( int  - index) + idx)
-

The deleteLayer method removes a layer at a given index.

+

The deleteLayer method removes a layer at a given idx.

Parameters
- +
index- The index of the layer to be removed
idx- The index of the layer to be removed
-

Definition at line 73 of file PaintingArea.cpp.

+

Definition at line 74 of file PaintingArea.cpp.

@@ -709,12 +696,7 @@ Here is the call graph for this function: -

Definition at line 138 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 139 of file PaintingArea.cpp.

@@ -736,7 +718,83 @@ Here is the call graph for this function:

The getHeightOfActive gets the vertical dimensions of the active layer.

Returns
Returns the vertical pixle count of the active layer
-

Definition at line 218 of file PaintingArea.cpp.

+

Definition at line 240 of file PaintingArea.cpp.

+ + + + +

◆ getImageOfActiveLayer()

+ +
+
+ + + + + + + +
IntelliImage * PaintingArea::getImageOfActiveLayer ()
+
+ +

Definition at line 406 of file PaintingArea.cpp.

+ +
+
+ +

◆ getNumberOfActiveLayer()

+ +
+
+ + + + + + + +
int PaintingArea::getNumberOfActiveLayer ()
+
+ +

Definition at line 402 of file PaintingArea.cpp.

+ +
+
+ +

◆ getPolygonDataOfRealLayer()

+ +
+
+ + + + + + + +
std::vector< QPoint > PaintingArea::getPolygonDataOfRealLayer ()
+
+ +

Definition at line 248 of file PaintingArea.cpp.

+ +
+
+ +

◆ getTypeOfImageRealLayer()

+ +
+
+ + + + + + + +
IntelliImage::ImageType PaintingArea::getTypeOfImageRealLayer ()
+
+ +

Definition at line 244 of file PaintingArea.cpp.

@@ -758,7 +816,7 @@ Here is the call graph for this function:

The getWidthOfActive gets the horizontal dimensions of the active layer.

Returns
Returns the horizontal pixle count of the active layer
-

Definition at line 214 of file PaintingArea.cpp.

+

Definition at line 236 of file PaintingArea.cpp.

@@ -786,12 +844,7 @@ Here is the call graph for this function:
-

Definition at line 241 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 271 of file PaintingArea.cpp.

@@ -819,12 +872,7 @@ Here is the call graph for this function:
-

Definition at line 225 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 255 of file PaintingArea.cpp.

@@ -852,12 +900,7 @@ Here is the call graph for this function:
-

Definition at line 251 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 281 of file PaintingArea.cpp.

@@ -880,12 +923,12 @@ Here is the call graph for this function:

The moveActiveLayer moves the active layer to a specific position in the layer stack.

Parameters
- +
idx- The id of the new position the layer should be in
idx- The index of the new position the layer should be in
-

Definition at line 152 of file PaintingArea.cpp.

+

Definition at line 160 of file PaintingArea.cpp.

@@ -924,12 +967,12 @@ Here is the call graph for this function: -

Definition at line 147 of file PaintingArea.cpp.

+

Definition at line 148 of file PaintingArea.cpp.

- -

◆ open()

+ +

◆ open()

@@ -938,7 +981,7 @@ Here is the call graph for this function:
bool PaintingArea::open ( const QString &  - fileName) + filePath) @@ -953,12 +996,7 @@ Here is the call graph for this function:
Returns
Returns a boolean variable whether the file was successfully opened or not
-

Definition at line 102 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 103 of file PaintingArea.cpp.

@@ -986,7 +1024,7 @@ Here is the call graph for this function:
-

Definition at line 275 of file PaintingArea.cpp.

+

Definition at line 307 of file PaintingArea.cpp.

@@ -1014,12 +1052,12 @@ Here is the call graph for this function:
-

Definition at line 286 of file PaintingArea.cpp.

+

Definition at line 318 of file PaintingArea.cpp.

- -

◆ save()

+ +

◆ save()

@@ -1028,7 +1066,7 @@ Here is the call graph for this function:
bool PaintingArea::save ( const QString &  - fileName, + filePath, @@ -1054,21 +1092,49 @@ Here is the call graph for this function:
Returns
Returns a boolean variable, true if the file was saved successfully, false if not
-

Definition at line 114 of file PaintingArea.cpp.

+

Definition at line 115 of file PaintingArea.cpp.

- -

◆ setAlphaOfLayer()

+ +

◆ setLayerActive()

- + - + + + +
void PaintingArea::setAlphaOfLayer void PaintingArea::setLayerActive ( int index, idx)
+
+ +

The setLayerToActive method marks a specific layer as active.

+
Parameters
+ + +
idx- The index of the layer to be active
+
+
+ +

Definition at line 90 of file PaintingArea.cpp.

+ +
+
+ +

◆ setLayerAlpha()

+ +
+
+ + + + + + @@ -1087,46 +1153,13 @@ Here is the call graph for this function:

The setAlphaOfLayer method sets the alpha value of a specific layer.

Parameters
void PaintingArea::setLayerAlpha (int idx,
- +
index- Index of the layer where the change should be applied
idx- The index of the layer where the change should be applied
alpha- New alpha value of the layer
-

Definition at line 95 of file PaintingArea.cpp.

- -
-
- -

◆ setLayerToActive()

- -
-
- - - - - - - - -
void PaintingArea::setLayerToActive (int index)
-
- -

The setLayerToActive method marks a specific layer as active.

-
Parameters
- - -
index- Index of the layer to be active
-
-
- -

Definition at line 89 of file PaintingArea.cpp.

-
-Here is the caller graph for this function:
-
-
-
+

Definition at line 96 of file PaintingArea.cpp.

@@ -1157,17 +1190,12 @@ Here is the caller graph for this function:

The slotActivateLayer method handles the event of selecting one layer as active.

Parameters
- +
a- Index of the layer to be active
a- idx of the layer to be active
-

Definition at line 160 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
-
+

Definition at line 175 of file PaintingArea.cpp.

@@ -1196,7 +1224,7 @@ Here is the call graph for this function:

The slotDeleteActiveLayer method handles the deletion of the active layer.

-

Definition at line 82 of file PaintingArea.cpp.

+

Definition at line 83 of file PaintingArea.cpp.

@@ -1224,12 +1252,40 @@ Here is the call graph for this function:
-

Definition at line 264 of file PaintingArea.cpp.

-
-Here is the call graph for this function:
-
-
+

Definition at line 294 of file PaintingArea.cpp.

+
+
+

Member Data Documentation

+ +

◆ colorPicker

+ +
+
+ + + + +
IntelliColorPicker PaintingArea::colorPicker
+
+ +

Definition at line 175 of file PaintingArea.h.

+ +
+
+ +

◆ Toolsettings

+ +
+
+ + + + +
IntelliToolsettings PaintingArea::Toolsettings
+
+ +

Definition at line 174 of file PaintingArea.h.

diff --git a/docs/html/class_painting_area.js b/docs/html/class_painting_area.js index 8a0e1aa..a9d5037 100644 --- a/docs/html/class_painting_area.js +++ b/docs/html/class_painting_area.js @@ -2,11 +2,11 @@ var class_painting_area = [ [ "PaintingArea", "class_painting_area.html#a4fa0ec23e78cc59f28c823584c721460", null ], [ "~PaintingArea", "class_painting_area.html#aa32adc113f77031945f73e33051931e8", null ], - [ "addLayer", "class_painting_area.html#a39ad76e1319659bfa38eee88ef33d395", null ], - [ "addLayerAt", "class_painting_area.html#ae756003b49aead863b49616ea7a44cc0", null ], + [ "addLayer", "class_painting_area.html#a6e9207612cef104d39013564696fe989", null ], + [ "addLayerAt", "class_painting_area.html#ab4a0b3a497ea8821a045ad12c34bd980", null ], [ "colorPickerSetFirstColor", "class_painting_area.html#a4735d4cf1dc58a9096d904e74c39c4df", null ], [ "colorPickerSetSecondColor", "class_painting_area.html#ae261acaaa346610dfed489dbac17e789", null ], - [ "colorPickerSwitchColor", "class_painting_area.html#a66115307ff4a99cd7ca16423c5c8ecfb", null ], + [ "colorPickerSwapColors", "class_painting_area.html#acff4563d006fda491469bd41778d07eb", null ], [ "createCircleTool", "class_painting_area.html#a2d9f4b3585f7dd1acb11f432ca503466", null ], [ "createFloodFillTool", "class_painting_area.html#a0b22e18069b524f3e75857d203baf256", null ], [ "createLineTool", "class_painting_area.html#a240c33a7875addac86080cdfb0db036a", null ], @@ -14,22 +14,28 @@ var class_painting_area = [ "createPlainTool", "class_painting_area.html#a3de83443d2d5cf460ff48d0602070938", null ], [ "createPolygonTool", "class_painting_area.html#a13c2f94644bea9c2d3123d0b7898f34b", null ], [ "createRectangleTool", "class_painting_area.html#a5b04ce62ce024e307f54e0281f7ae4bd", null ], - [ "deleteLayer", "class_painting_area.html#a6efad6f8ea060674b157b42b431cd173", null ], + [ "deleteLayer", "class_painting_area.html#a2382ebf8c31dee36cb714f34a18b71e4", null ], [ "floodFill", "class_painting_area.html#aeb5eb394b979ea90f2be9849fdda1774", null ], [ "getHeightOfActive", "class_painting_area.html#ac576f58aad03b4dcd47611b6a4b9abb4", null ], + [ "getImageOfActiveLayer", "class_painting_area.html#acab11ad35d07e9081203d8217d2c0855", null ], + [ "getNumberOfActiveLayer", "class_painting_area.html#a24280454ebb80db7feba2fd621513353", null ], + [ "getPolygonDataOfRealLayer", "class_painting_area.html#a7ae21fd031ee1c04f92e042e86be0a90", null ], + [ "getTypeOfImageRealLayer", "class_painting_area.html#ae92b27dfd09573c224d2ae1958d3bead", null ], [ "getWidthOfActive", "class_painting_area.html#a675ee91b26b1c58be6d833f279d81597", null ], [ "mouseMoveEvent", "class_painting_area.html#aa22e274b6094a9619f196cd7b49526b5", null ], [ "mousePressEvent", "class_painting_area.html#abfe445f8d9b70ae42bfeda874127dd15", null ], [ "mouseReleaseEvent", "class_painting_area.html#a35b5df914acb608cc29717659793359c", null ], [ "moveActiveLayer", "class_painting_area.html#ae05f6893fb44bfcb34018573a609cd1a", null ], [ "movePositionActive", "class_painting_area.html#ac6d089f4357b22d9a9906fd4771de3e7", null ], - [ "open", "class_painting_area.html#a1f597740b4d7b4bc2e24c51f8cb0b6eb", null ], + [ "open", "class_painting_area.html#a88c7e759aa8375a56129791645f46ea5", null ], [ "paintEvent", "class_painting_area.html#a4a8138b9508ee4ec87a7fca9160368a7", null ], [ "resizeEvent", "class_painting_area.html#ab57e8ccda60fff7187463a90e65c5335", null ], - [ "save", "class_painting_area.html#a612176cc9d629d22fd3fe1a746cce564", null ], - [ "setAlphaOfLayer", "class_painting_area.html#aec59be20f1c27135700754882dd6383d", null ], - [ "setLayerToActive", "class_painting_area.html#a1d6d86c25efdce9fe9031a9cd01c74c8", null ], + [ "save", "class_painting_area.html#aa2463d4f403224086acab02903ae407e", null ], + [ "setLayerActive", "class_painting_area.html#a79eb059829f27e8cdb3a54c5cd3d12c9", null ], + [ "setLayerAlpha", "class_painting_area.html#a6c7e0865e684ae1089ee283b4399d055", null ], [ "slotActivateLayer", "class_painting_area.html#a71ac281e0de263208d4a3b9de74258ec", null ], [ "slotDeleteActiveLayer", "class_painting_area.html#a1ff0b9c1227531943c9cec2c546fae5e", null ], - [ "wheelEvent", "class_painting_area.html#a632848d99f44d33d7da2618fbc6775a4", null ] + [ "wheelEvent", "class_painting_area.html#a632848d99f44d33d7da2618fbc6775a4", null ], + [ "colorPicker", "class_painting_area.html#a132535c4e16052c1472cf1b9f3e096ed", null ], + [ "Toolsettings", "class_painting_area.html#abc2f798744f1dc805a651731eb1692ea", null ] ]; \ No newline at end of file diff --git a/docs/html/class_painting_area.png b/docs/html/class_painting_area.png new file mode 100644 index 0000000000000000000000000000000000000000..19583251a5f849efdcf1dbad380c8ad8c68a05be GIT binary patch literal 448 zcmV;x0YCnUP);c41?{L=KeR{>4cU5=^qO#brlU3q(i@g4i_jQGFUeoKD8#A)P8EVReAj^py<}ex+oDb?Sh(cW>j=$XGA2oYpVV#c-4tW(GID5+A&p+ z^qE&><+D06*---x^%wh^>b3Fe)xh@!B2u*8yLFz`LoKg`h)At2uWseXm+-|@k{m4n zxTysIhHDCSS!Q6TP(RQK*g4c!)j&{#8q}Z$HK;-Tw^WiGE)W0)E2xvHdUWQw8F?>0 zHIu1FQ~mVwHMUf>{B^jFQt@f9hTBZd(?7TWwl_7@9jQzwNHbDKk& Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node3 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" colorPicker" ,fontname="Helvetica"]; + Node3 [label="IntelliColorPicker",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html",tooltip="The IntelliColorPicker manages the selected colors for one whole project."]; + Node4 -> Node1 [dir="back",color="darkorchid3",fontsize="10",style="dashed",label=" Toolsettings" ,fontname="Helvetica"]; + Node4 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; } diff --git a/docs/html/class_painting_area_a24280454ebb80db7feba2fd621513353_icgraph.dot b/docs/html/class_painting_area_a24280454ebb80db7feba2fd621513353_icgraph.dot new file mode 100644 index 0000000..1dcbf8a --- /dev/null +++ b/docs/html/class_painting_area_a24280454ebb80db7feba2fd621513353_icgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::getNumberOfActiveLayer" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="PaintingArea::getNumberOf\lActiveLayer",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliPhotoGui::UpdateGui",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4",tooltip=" "]; +} diff --git a/docs/html/class_painting_area_a4fa0ec23e78cc59f28c823584c721460_cgraph.dot b/docs/html/class_painting_area_a4fa0ec23e78cc59f28c823584c721460_cgraph.dot index 2e73c54..c255ea7 100644 --- a/docs/html/class_painting_area_a4fa0ec23e78cc59f28c823584c721460_cgraph.dot +++ b/docs/html/class_painting_area_a4fa0ec23e78cc59f28c823584c721460_cgraph.dot @@ -6,5 +6,7 @@ digraph "PaintingArea::PaintingArea" rankdir="LR"; Node1 [label="PaintingArea::PaintingArea",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="PaintingArea is the constructor of the PaintingArea class, which initiates the working environment."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="PaintingArea::addLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a39ad76e1319659bfa38eee88ef33d395",tooltip="The addLayer adds a layer to the current project/ painting area."]; + Node2 [label="PaintingArea::addLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a6e9207612cef104d39013564696fe989",tooltip="The addLayer adds a layer to the current project/ painting area."]; + Node2 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliRenderSettings\l::getFastRenderer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_render_settings.html#a5a74e7d7ed3a2e944883dddbe8bbf5e8",tooltip="The getfastRenderer gets the value of the flag for the fastRenderer setting."]; } diff --git a/docs/html/class_painting_area_a675ee91b26b1c58be6d833f279d81597_icgraph.dot b/docs/html/class_painting_area_a675ee91b26b1c58be6d833f279d81597_icgraph.dot new file mode 100644 index 0000000..c5ccaaa --- /dev/null +++ b/docs/html/class_painting_area_a675ee91b26b1c58be6d833f279d81597_icgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::getWidthOfActive" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="PaintingArea::getWidthOf\lActive",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The getWidthOfActive gets the horizontal dimensions of the active layer."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; +} diff --git a/docs/html/class_painting_area_a6e9207612cef104d39013564696fe989_cgraph.dot b/docs/html/class_painting_area_a6e9207612cef104d39013564696fe989_cgraph.dot new file mode 100644 index 0000000..bfa4706 --- /dev/null +++ b/docs/html/class_painting_area_a6e9207612cef104d39013564696fe989_cgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::addLayer" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="PaintingArea::addLayer",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The addLayer adds a layer to the current project/ painting area."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliRenderSettings\l::getFastRenderer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_render_settings.html#a5a74e7d7ed3a2e944883dddbe8bbf5e8",tooltip="The getfastRenderer gets the value of the flag for the fastRenderer setting."]; +} diff --git a/docs/html/class_painting_area_a6e9207612cef104d39013564696fe989_icgraph.dot b/docs/html/class_painting_area_a6e9207612cef104d39013564696fe989_icgraph.dot new file mode 100644 index 0000000..5bc9f21 --- /dev/null +++ b/docs/html/class_painting_area_a6e9207612cef104d39013564696fe989_icgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::addLayer" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="PaintingArea::addLayer",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The addLayer adds a layer to the current project/ painting area."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="PaintingArea::PaintingArea",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a4fa0ec23e78cc59f28c823584c721460",tooltip="PaintingArea is the constructor of the PaintingArea class, which initiates the working environment."]; +} diff --git a/docs/html/class_painting_area_a71ac281e0de263208d4a3b9de74258ec_cgraph.dot b/docs/html/class_painting_area_a71ac281e0de263208d4a3b9de74258ec_cgraph.dot index ebfbcb4..09a5ca7 100644 --- a/docs/html/class_painting_area_a71ac281e0de263208d4a3b9de74258ec_cgraph.dot +++ b/docs/html/class_painting_area_a71ac281e0de263208d4a3b9de74258ec_cgraph.dot @@ -6,5 +6,7 @@ digraph "PaintingArea::slotActivateLayer" rankdir="LR"; Node1 [label="PaintingArea::slotActivate\lLayer",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The slotActivateLayer method handles the event of selecting one layer as active."]; Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="PaintingArea::setLayerTo\lActive",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a1d6d86c25efdce9fe9031a9cd01c74c8",tooltip="The setLayerToActive method marks a specific layer as active."]; + Node2 [label="IntelliTool::getIsDrawing",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a0020fad2e26315d5c4d96dbc95d1dceb",tooltip=" "]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="PaintingArea::setLayerActive",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a79eb059829f27e8cdb3a54c5cd3d12c9",tooltip="The setLayerToActive method marks a specific layer as active."]; } diff --git a/docs/html/class_painting_area_a79eb059829f27e8cdb3a54c5cd3d12c9_icgraph.dot b/docs/html/class_painting_area_a79eb059829f27e8cdb3a54c5cd3d12c9_icgraph.dot new file mode 100644 index 0000000..26280ee --- /dev/null +++ b/docs/html/class_painting_area_a79eb059829f27e8cdb3a54c5cd3d12c9_icgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::setLayerActive" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="PaintingArea::setLayerActive",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The setLayerToActive method marks a specific layer as active."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="PaintingArea::slotActivate\lLayer",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html#a71ac281e0de263208d4a3b9de74258ec",tooltip="The slotActivateLayer method handles the event of selecting one layer as active."]; +} diff --git a/docs/html/class_painting_area_a7ae21fd031ee1c04f92e042e86be0a90_icgraph.dot b/docs/html/class_painting_area_a7ae21fd031ee1c04f92e042e86be0a90_icgraph.dot new file mode 100644 index 0000000..267b794 --- /dev/null +++ b/docs/html/class_painting_area_a7ae21fd031ee1c04f92e042e86be0a90_icgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::getPolygonDataOfRealLayer" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="PaintingArea::getPolygon\lDataOfRealLayer",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; +} diff --git a/docs/html/class_painting_area_a88c7e759aa8375a56129791645f46ea5_cgraph.dot b/docs/html/class_painting_area_a88c7e759aa8375a56129791645f46ea5_cgraph.dot new file mode 100644 index 0000000..4323961 --- /dev/null +++ b/docs/html/class_painting_area_a88c7e759aa8375a56129791645f46ea5_cgraph.dot @@ -0,0 +1,12 @@ +digraph "PaintingArea::open" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="PaintingArea::open",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The open method is used for loading a picture into the current layer."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliImage::calculateVisiblity",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#aebbced93f4744fad81b7f141b21f4ab2",tooltip="An abstract function that calculates the visiblity of the Image data if needed."]; + Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliImage::loadImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html#ae231800aba38c96074bbe9bb6e341d4e",tooltip="A function that loads and sclaes an image to the fitting dimensions."]; +} diff --git a/docs/html/class_painting_area_ac576f58aad03b4dcd47611b6a4b9abb4_icgraph.dot b/docs/html/class_painting_area_ac576f58aad03b4dcd47611b6a4b9abb4_icgraph.dot new file mode 100644 index 0000000..36587d6 --- /dev/null +++ b/docs/html/class_painting_area_ac576f58aad03b4dcd47611b6a4b9abb4_icgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::getHeightOfActive" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="PaintingArea::getHeightOf\lActive",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The getHeightOfActive gets the vertical dimensions of the active layer."]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; +} diff --git a/docs/html/class_painting_area_ac6d089f4357b22d9a9906fd4771de3e7_cgraph.dot b/docs/html/class_painting_area_ac6d089f4357b22d9a9906fd4771de3e7_cgraph.dot new file mode 100644 index 0000000..45a831c --- /dev/null +++ b/docs/html/class_painting_area_ac6d089f4357b22d9a9906fd4771de3e7_cgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::movePositionActive" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="PaintingArea::movePosition\lActive",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The movePositionActive method moves the active layer to certain position."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTool::getIsDrawing",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a0020fad2e26315d5c4d96dbc95d1dceb",tooltip=" "]; +} diff --git a/docs/html/class_painting_area_acab11ad35d07e9081203d8217d2c0855_icgraph.dot b/docs/html/class_painting_area_acab11ad35d07e9081203d8217d2c0855_icgraph.dot new file mode 100644 index 0000000..bfcef17 --- /dev/null +++ b/docs/html/class_painting_area_acab11ad35d07e9081203d8217d2c0855_icgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::getImageOfActiveLayer" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="PaintingArea::getImageOf\lActiveLayer",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliPhotoGui::UpdateGui",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_photo_gui.html#a1dbef8d4688227aa9455aea52db00bf4",tooltip=" "]; +} diff --git a/docs/html/class_painting_area_acff4563d006fda491469bd41778d07eb_cgraph.dot b/docs/html/class_painting_area_acff4563d006fda491469bd41778d07eb_cgraph.dot new file mode 100644 index 0000000..90a05ac --- /dev/null +++ b/docs/html/class_painting_area_acff4563d006fda491469bd41778d07eb_cgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::colorPickerSwapColors" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="PaintingArea::colorPicker\lSwapColors",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The colorPickerSwitchColor swaps the primary color with the secondary drawing color."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliColorPicker\l::swapColors",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_color_picker.html#aec499265ae28ce1b54be88222e74292e",tooltip="A function switching primary and secondary color."]; +} diff --git a/docs/html/class_painting_area_ae05f6893fb44bfcb34018573a609cd1a_cgraph.dot b/docs/html/class_painting_area_ae05f6893fb44bfcb34018573a609cd1a_cgraph.dot new file mode 100644 index 0000000..d874bcc --- /dev/null +++ b/docs/html/class_painting_area_ae05f6893fb44bfcb34018573a609cd1a_cgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::moveActiveLayer" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node1 [label="PaintingArea::moveActive\lLayer",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip="The moveActiveLayer moves the active layer to a specific position in the layer stack."]; + Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliTool::getIsDrawing",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html#a0020fad2e26315d5c4d96dbc95d1dceb",tooltip=" "]; +} diff --git a/docs/html/class_painting_area_ae92b27dfd09573c224d2ae1958d3bead_icgraph.dot b/docs/html/class_painting_area_ae92b27dfd09573c224d2ae1958d3bead_icgraph.dot new file mode 100644 index 0000000..affd678 --- /dev/null +++ b/docs/html/class_painting_area_ae92b27dfd09573c224d2ae1958d3bead_icgraph.dot @@ -0,0 +1,10 @@ +digraph "PaintingArea::getTypeOfImageRealLayer" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="RL"; + Node1 [label="PaintingArea::getTypeOfImage\lRealLayer",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled", fontcolor="black",tooltip=" "]; + Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolPolygon\l::onMouseLeftPressed",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html#ad5d3b741be6d0647a9cdc9da2cb8bc3d",tooltip="A function managing the left click pressed of a mouse. Setting polygon points."]; +} diff --git a/docs/html/classes.html b/docs/html/classes.html index 6b48435..df8459d 100644 --- a/docs/html/classes.html +++ b/docs/html/classes.html @@ -94,34 +94,38 @@ $(document).ready(function(){initNavTree('classes.html','');}); - - - - - - + - + + + + + - - - - + + + - - + - + - + + + + + + +
  i  
IntelliRasterImage   IntelliToolLine   
  l  
-
  t  
-
IntelliShapedImage   IntelliRenderSettings    IntelliToolPen   
  p  
+
IntelliShapedImage   IntelliToolPlainTool   
IntelliColorPicker    IntelliTool   IntelliToolPlainTool   LayerObject   Triangle   
IntelliToolPolygon   PaintingArea   
IntelliImage    IntelliToolCircle   IntelliToolPolygon   
  p  
+
IntelliToolRectangle   
  t  
IntelliPhotoGui    IntelliToolFloodFill   IntelliToolRectangle   IntelliToolsettings   
PaintingArea   
IntelliRasterImage   IntelliToolLine   
  l  
+
Triangle   
LayerObject   
i | l | p | t
diff --git a/docs/html/dir_000003_000004.html b/docs/html/dir_000003_000004.html index e873f5c..5e8a2ec 100644 --- a/docs/html/dir_000003_000004.html +++ b/docs/html/dir_000003_000004.html @@ -86,7 +86,7 @@ $(document).ready(function(){initNavTree('dir_544f9dcb748f922e4bb3be2540380bf2.h
-

Image → IntelliHelper Relation

File in intelliphoto/src/ImageIncludes file in intelliphoto/src/IntelliHelper
IntelliShapedImage.cppIntelliHelper.h
IntelliShapedImage.hIntelliHelper.h
+

Image → IntelliHelper Relation

File in intelliphoto/src/ImageIncludes file in intelliphoto/src/IntelliHelper
IntelliImage.hIntelliRenderSettings.h
IntelliImage.hIntelliTriangulation.h
IntelliShapedImage.cppIntelliTriangulation.h
-

Tool → IntelliHelper Relation

File in intelliphoto/src/ToolIncludes file in intelliphoto/src/IntelliHelper
IntelliColorPicker.cppIntelliColorPicker.h
IntelliTool.hIntelliColorPicker.h
IntelliToolPolygon.hIntelliHelper.h
+

Tool → IntelliHelper Relation

File in intelliphoto/src/ToolIncludes file in intelliphoto/src/IntelliHelper
IntelliColorPicker.cppIntelliColorPicker.h
IntelliTool.hIntelliColorPicker.h
IntelliTool.hIntelliToolsettings.h
IntelliToolPolygon.hIntelliTriangulation.h
-
-Directory dependency graph for Image:
-
-
intelliphoto/src/Image
-
diff --git a/docs/html/dir_544f9dcb748f922e4bb3be2540380bf2.js b/docs/html/dir_544f9dcb748f922e4bb3be2540380bf2.js index a3d97dc..ee724b4 100644 --- a/docs/html/dir_544f9dcb748f922e4bb3be2540380bf2.js +++ b/docs/html/dir_544f9dcb748f922e4bb3be2540380bf2.js @@ -1,7 +1,9 @@ var dir_544f9dcb748f922e4bb3be2540380bf2 = [ [ "IntelliImage.cpp", "_intelli_image_8cpp.html", null ], - [ "IntelliImage.h", "_intelli_image_8h.html", "_intelli_image_8h" ], + [ "IntelliImage.h", "_intelli_image_8h.html", [ + [ "IntelliImage", "class_intelli_image.html", "class_intelli_image" ] + ] ], [ "IntelliRasterImage.cpp", "_intelli_raster_image_8cpp.html", null ], [ "IntelliRasterImage.h", "_intelli_raster_image_8h.html", [ [ "IntelliRasterImage", "class_intelli_raster_image.html", "class_intelli_raster_image" ] diff --git a/docs/html/dir_544f9dcb748f922e4bb3be2540380bf2_dep.dot b/docs/html/dir_544f9dcb748f922e4bb3be2540380bf2_dep.dot index b32b5f7..0a903f5 100644 --- a/docs/html/dir_544f9dcb748f922e4bb3be2540380bf2_dep.dot +++ b/docs/html/dir_544f9dcb748f922e4bb3be2540380bf2_dep.dot @@ -7,5 +7,5 @@ digraph "intelliphoto/src/Image" { dir_544f9dcb748f922e4bb3be2540380bf2 [shape=box, label="Image", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_544f9dcb748f922e4bb3be2540380bf2.html"]; } dir_f50aa5156fe016a259583c412dbf440c [shape=box label="IntelliHelper" URL="dir_f50aa5156fe016a259583c412dbf440c.html"]; - dir_544f9dcb748f922e4bb3be2540380bf2->dir_f50aa5156fe016a259583c412dbf440c [headlabel="2", labeldistance=1.5 headhref="dir_000003_000004.html"]; + dir_544f9dcb748f922e4bb3be2540380bf2->dir_f50aa5156fe016a259583c412dbf440c [headlabel="3", labeldistance=1.5 headhref="dir_000003_000004.html"]; } diff --git a/docs/html/dir_5dabb14988a75c922e285f444641a133.html b/docs/html/dir_5dabb14988a75c922e285f444641a133.html index aef6509..84c5623 100644 --- a/docs/html/dir_5dabb14988a75c922e285f444641a133.html +++ b/docs/html/dir_5dabb14988a75c922e285f444641a133.html @@ -90,11 +90,6 @@ $(document).ready(function(){initNavTree('dir_5dabb14988a75c922e285f444641a133.h
GUI Directory Reference
-
-Directory dependency graph for GUI:
-
-
intelliphoto/src/GUI
-

Files

diff --git a/docs/html/dir_5dabb14988a75c922e285f444641a133_dep.dot b/docs/html/dir_5dabb14988a75c922e285f444641a133_dep.dot index d4cfd7f..0ccb450 100644 --- a/docs/html/dir_5dabb14988a75c922e285f444641a133_dep.dot +++ b/docs/html/dir_5dabb14988a75c922e285f444641a133_dep.dot @@ -7,5 +7,6 @@ digraph "intelliphoto/src/GUI" { dir_5dabb14988a75c922e285f444641a133 [shape=box, label="GUI", style="filled", fillcolor="#eeeeff", pencolor="black", URL="dir_5dabb14988a75c922e285f444641a133.html"]; } dir_e6d96184223881d115efa44ca0dfa844 [shape=box label="Layer" URL="dir_e6d96184223881d115efa44ca0dfa844.html"]; + dir_e6d96184223881d115efa44ca0dfa844->dir_5dabb14988a75c922e285f444641a133 [headlabel="1", labeldistance=1.5 headhref="dir_000006_000002.html"]; dir_5dabb14988a75c922e285f444641a133->dir_e6d96184223881d115efa44ca0dfa844 [headlabel="1", labeldistance=1.5 headhref="dir_000002_000006.html"]; } diff --git a/docs/html/dir_83a4347d11f2ba6343d546ab133722d2.html b/docs/html/dir_83a4347d11f2ba6343d546ab133722d2.html index 25ae04d..eaac0f5 100644 --- a/docs/html/dir_83a4347d11f2ba6343d546ab133722d2.html +++ b/docs/html/dir_83a4347d11f2ba6343d546ab133722d2.html @@ -90,11 +90,6 @@ $(document).ready(function(){initNavTree('dir_83a4347d11f2ba6343d546ab133722d2.h
src Directory Reference
-
-Directory dependency graph for src:
-
-
intelliphoto/src
-

Files

diff --git a/docs/html/dir_83a4347d11f2ba6343d546ab133722d2_dep.dot b/docs/html/dir_83a4347d11f2ba6343d546ab133722d2_dep.dot index d03004d..86cdd37 100644 --- a/docs/html/dir_83a4347d11f2ba6343d546ab133722d2_dep.dot +++ b/docs/html/dir_83a4347d11f2ba6343d546ab133722d2_dep.dot @@ -14,12 +14,12 @@ digraph "intelliphoto/src" { dir_941490de56ac122cf77df9922cbcc750 [shape=box label="Tool" color="black" fillcolor="white" style="filled" URL="dir_941490de56ac122cf77df9922cbcc750.html"]; } } - dir_544f9dcb748f922e4bb3be2540380bf2->dir_f50aa5156fe016a259583c412dbf440c [headlabel="2", labeldistance=1.5 headhref="dir_000003_000004.html"]; + dir_544f9dcb748f922e4bb3be2540380bf2->dir_f50aa5156fe016a259583c412dbf440c [headlabel="3", labeldistance=1.5 headhref="dir_000003_000004.html"]; dir_e6d96184223881d115efa44ca0dfa844->dir_544f9dcb748f922e4bb3be2540380bf2 [headlabel="5", labeldistance=1.5 headhref="dir_000006_000003.html"]; dir_e6d96184223881d115efa44ca0dfa844->dir_f50aa5156fe016a259583c412dbf440c [headlabel="1", labeldistance=1.5 headhref="dir_000006_000004.html"]; + dir_e6d96184223881d115efa44ca0dfa844->dir_5dabb14988a75c922e285f444641a133 [headlabel="1", labeldistance=1.5 headhref="dir_000006_000002.html"]; dir_e6d96184223881d115efa44ca0dfa844->dir_941490de56ac122cf77df9922cbcc750 [headlabel="8", labeldistance=1.5 headhref="dir_000006_000005.html"]; dir_5dabb14988a75c922e285f444641a133->dir_e6d96184223881d115efa44ca0dfa844 [headlabel="1", labeldistance=1.5 headhref="dir_000002_000006.html"]; - dir_83a4347d11f2ba6343d546ab133722d2->dir_5dabb14988a75c922e285f444641a133 [headlabel="1", labeldistance=1.5 headhref="dir_000001_000002.html"]; dir_941490de56ac122cf77df9922cbcc750->dir_e6d96184223881d115efa44ca0dfa844 [headlabel="8", labeldistance=1.5 headhref="dir_000005_000006.html"]; - dir_941490de56ac122cf77df9922cbcc750->dir_f50aa5156fe016a259583c412dbf440c [headlabel="3", labeldistance=1.5 headhref="dir_000005_000004.html"]; + dir_941490de56ac122cf77df9922cbcc750->dir_f50aa5156fe016a259583c412dbf440c [headlabel="4", labeldistance=1.5 headhref="dir_000005_000004.html"]; } diff --git a/docs/html/dir_8db5f55022e7670536cbc9a6a1d6f01c.html b/docs/html/dir_8db5f55022e7670536cbc9a6a1d6f01c.html index d5a13c5..feccf2d 100644 --- a/docs/html/dir_8db5f55022e7670536cbc9a6a1d6f01c.html +++ b/docs/html/dir_8db5f55022e7670536cbc9a6a1d6f01c.html @@ -90,11 +90,6 @@ $(document).ready(function(){initNavTree('dir_8db5f55022e7670536cbc9a6a1d6f01c.h
intelliphoto Directory Reference
-
-Directory dependency graph for intelliphoto:
-
-
intelliphoto
-

Directories

diff --git a/docs/html/dir_941490de56ac122cf77df9922cbcc750.html b/docs/html/dir_941490de56ac122cf77df9922cbcc750.html index f8d19cd..5ea229b 100644 --- a/docs/html/dir_941490de56ac122cf77df9922cbcc750.html +++ b/docs/html/dir_941490de56ac122cf77df9922cbcc750.html @@ -90,11 +90,6 @@ $(document).ready(function(){initNavTree('dir_941490de56ac122cf77df9922cbcc750.h
Tool Directory Reference
-
-Directory dependency graph for Tool:
-
-
intelliphoto/src/Tool
-

Directories

diff --git a/docs/html/dir_941490de56ac122cf77df9922cbcc750.js b/docs/html/dir_941490de56ac122cf77df9922cbcc750.js index 3600677..763beb5 100644 --- a/docs/html/dir_941490de56ac122cf77df9922cbcc750.js +++ b/docs/html/dir_941490de56ac122cf77df9922cbcc750.js @@ -14,7 +14,9 @@ var dir_941490de56ac122cf77df9922cbcc750 = [ "IntelliToolFloodFill", "class_intelli_tool_flood_fill.html", "class_intelli_tool_flood_fill" ] ] ], [ "IntelliToolLine.cpp", "_intelli_tool_line_8cpp.html", null ], - [ "IntelliToolLine.h", "_intelli_tool_line_8h.html", "_intelli_tool_line_8h" ], + [ "IntelliToolLine.h", "_intelli_tool_line_8h.html", [ + [ "IntelliToolLine", "class_intelli_tool_line.html", "class_intelli_tool_line" ] + ] ], [ "IntelliToolPen.cpp", "_intelli_tool_pen_8cpp.html", null ], [ "IntelliToolPen.h", "_intelli_tool_pen_8h.html", [ [ "IntelliToolPen", "class_intelli_tool_pen.html", "class_intelli_tool_pen" ] diff --git a/docs/html/dir_941490de56ac122cf77df9922cbcc750_dep.dot b/docs/html/dir_941490de56ac122cf77df9922cbcc750_dep.dot index b5345d4..e1afe26 100644 --- a/docs/html/dir_941490de56ac122cf77df9922cbcc750_dep.dot +++ b/docs/html/dir_941490de56ac122cf77df9922cbcc750_dep.dot @@ -11,5 +11,5 @@ digraph "intelliphoto/src/Tool" { dir_e6d96184223881d115efa44ca0dfa844->dir_f50aa5156fe016a259583c412dbf440c [headlabel="1", labeldistance=1.5 headhref="dir_000006_000004.html"]; dir_e6d96184223881d115efa44ca0dfa844->dir_941490de56ac122cf77df9922cbcc750 [headlabel="8", labeldistance=1.5 headhref="dir_000006_000005.html"]; dir_941490de56ac122cf77df9922cbcc750->dir_e6d96184223881d115efa44ca0dfa844 [headlabel="8", labeldistance=1.5 headhref="dir_000005_000006.html"]; - dir_941490de56ac122cf77df9922cbcc750->dir_f50aa5156fe016a259583c412dbf440c [headlabel="3", labeldistance=1.5 headhref="dir_000005_000004.html"]; + dir_941490de56ac122cf77df9922cbcc750->dir_f50aa5156fe016a259583c412dbf440c [headlabel="4", labeldistance=1.5 headhref="dir_000005_000004.html"]; } diff --git a/docs/html/dir_e6d96184223881d115efa44ca0dfa844.html b/docs/html/dir_e6d96184223881d115efa44ca0dfa844.html index 8c9cebb..67d4961 100644 --- a/docs/html/dir_e6d96184223881d115efa44ca0dfa844.html +++ b/docs/html/dir_e6d96184223881d115efa44ca0dfa844.html @@ -90,11 +90,6 @@ $(document).ready(function(){initNavTree('dir_e6d96184223881d115efa44ca0dfa844.h
Layer Directory Reference
-
-Directory dependency graph for Layer:
-
-
intelliphoto/src/Layer
-

Files

diff --git a/docs/html/dir_e6d96184223881d115efa44ca0dfa844_dep.dot b/docs/html/dir_e6d96184223881d115efa44ca0dfa844_dep.dot index 2340c84..1043121 100644 --- a/docs/html/dir_e6d96184223881d115efa44ca0dfa844_dep.dot +++ b/docs/html/dir_e6d96184223881d115efa44ca0dfa844_dep.dot @@ -8,11 +8,14 @@ digraph "intelliphoto/src/Layer" { } dir_544f9dcb748f922e4bb3be2540380bf2 [shape=box label="Image" URL="dir_544f9dcb748f922e4bb3be2540380bf2.html"]; dir_f50aa5156fe016a259583c412dbf440c [shape=box label="IntelliHelper" URL="dir_f50aa5156fe016a259583c412dbf440c.html"]; + dir_5dabb14988a75c922e285f444641a133 [shape=box label="GUI" URL="dir_5dabb14988a75c922e285f444641a133.html"]; dir_941490de56ac122cf77df9922cbcc750 [shape=box label="Tool" URL="dir_941490de56ac122cf77df9922cbcc750.html"]; - dir_544f9dcb748f922e4bb3be2540380bf2->dir_f50aa5156fe016a259583c412dbf440c [headlabel="2", labeldistance=1.5 headhref="dir_000003_000004.html"]; + dir_544f9dcb748f922e4bb3be2540380bf2->dir_f50aa5156fe016a259583c412dbf440c [headlabel="3", labeldistance=1.5 headhref="dir_000003_000004.html"]; dir_e6d96184223881d115efa44ca0dfa844->dir_544f9dcb748f922e4bb3be2540380bf2 [headlabel="5", labeldistance=1.5 headhref="dir_000006_000003.html"]; dir_e6d96184223881d115efa44ca0dfa844->dir_f50aa5156fe016a259583c412dbf440c [headlabel="1", labeldistance=1.5 headhref="dir_000006_000004.html"]; + dir_e6d96184223881d115efa44ca0dfa844->dir_5dabb14988a75c922e285f444641a133 [headlabel="1", labeldistance=1.5 headhref="dir_000006_000002.html"]; dir_e6d96184223881d115efa44ca0dfa844->dir_941490de56ac122cf77df9922cbcc750 [headlabel="8", labeldistance=1.5 headhref="dir_000006_000005.html"]; + dir_5dabb14988a75c922e285f444641a133->dir_e6d96184223881d115efa44ca0dfa844 [headlabel="1", labeldistance=1.5 headhref="dir_000002_000006.html"]; dir_941490de56ac122cf77df9922cbcc750->dir_e6d96184223881d115efa44ca0dfa844 [headlabel="8", labeldistance=1.5 headhref="dir_000005_000006.html"]; - dir_941490de56ac122cf77df9922cbcc750->dir_f50aa5156fe016a259583c412dbf440c [headlabel="3", labeldistance=1.5 headhref="dir_000005_000004.html"]; + dir_941490de56ac122cf77df9922cbcc750->dir_f50aa5156fe016a259583c412dbf440c [headlabel="4", labeldistance=1.5 headhref="dir_000005_000004.html"]; } diff --git a/docs/html/dir_f50aa5156fe016a259583c412dbf440c.html b/docs/html/dir_f50aa5156fe016a259583c412dbf440c.html index d052bde..a4a3593 100644 --- a/docs/html/dir_f50aa5156fe016a259583c412dbf440c.html +++ b/docs/html/dir_f50aa5156fe016a259583c412dbf440c.html @@ -97,9 +97,17 @@ Files - + - + + + + + + + + +

Files

 
file  IntelliColorPicker.h [code]
 
file  IntelliHelper.cpp [code]
file  IntelliRenderSettings.cpp [code]
 
file  IntelliHelper.h [code]
file  IntelliRenderSettings.h [code]
 
file  IntelliToolsettings.cpp [code]
 
file  IntelliToolsettings.h [code]
 
file  IntelliTriangulation.cpp [code]
 
file  IntelliTriangulation.h [code]
 
diff --git a/docs/html/dir_f50aa5156fe016a259583c412dbf440c.js b/docs/html/dir_f50aa5156fe016a259583c412dbf440c.js index b119077..55b1bfe 100644 --- a/docs/html/dir_f50aa5156fe016a259583c412dbf440c.js +++ b/docs/html/dir_f50aa5156fe016a259583c412dbf440c.js @@ -4,6 +4,14 @@ var dir_f50aa5156fe016a259583c412dbf440c = [ "IntelliColorPicker.h", "_intelli_color_picker_8h.html", [ [ "IntelliColorPicker", "class_intelli_color_picker.html", "class_intelli_color_picker" ] ] ], - [ "IntelliHelper.cpp", "_intelli_helper_8cpp.html", null ], - [ "IntelliHelper.h", "_intelli_helper_8h.html", "_intelli_helper_8h" ] + [ "IntelliRenderSettings.cpp", "_intelli_render_settings_8cpp.html", null ], + [ "IntelliRenderSettings.h", "_intelli_render_settings_8h.html", [ + [ "IntelliRenderSettings", "class_intelli_render_settings.html", "class_intelli_render_settings" ] + ] ], + [ "IntelliToolsettings.cpp", "_intelli_toolsettings_8cpp.html", null ], + [ "IntelliToolsettings.h", "_intelli_toolsettings_8h.html", [ + [ "IntelliToolsettings", "class_intelli_toolsettings.html", "class_intelli_toolsettings" ] + ] ], + [ "IntelliTriangulation.cpp", "_intelli_triangulation_8cpp.html", "_intelli_triangulation_8cpp" ], + [ "IntelliTriangulation.h", "_intelli_triangulation_8h.html", "_intelli_triangulation_8h" ] ]; \ No newline at end of file diff --git a/docs/html/files.html b/docs/html/files.html index a909a2f..db7d3ea 100644 --- a/docs/html/files.html +++ b/docs/html/files.html @@ -107,8 +107,12 @@ $(document).ready(function(){initNavTree('files.html','');});   IntelliHelper  IntelliColorPicker.cpp  IntelliColorPicker.h - IntelliHelper.cpp - IntelliHelper.h + IntelliRenderSettings.cpp + IntelliRenderSettings.h + IntelliToolsettings.cpp + IntelliToolsettings.h + IntelliTriangulation.cpp + IntelliTriangulation.h   Layer  PaintingArea.cpp  PaintingArea.h diff --git a/docs/html/functions.html b/docs/html/functions.html index e4f084f..8e9a72d 100644 --- a/docs/html/functions.html +++ b/docs/html/functions.html @@ -92,14 +92,17 @@ $(document).ready(function(){initNavTree('functions.html','');});
  • A : Triangle
  • -
  • Active -: IntelliTool +
  • activeLayer +: IntelliTool +
  • +
  • ActiveType +: IntelliTool
  • addLayer() -: PaintingArea +: PaintingArea
  • addLayerAt() -: PaintingArea +: PaintingArea
  • alpha : LayerObject @@ -133,6 +136,7 @@ $(document).ready(function(){initNavTree('functions.html','');});
  • colorPicker : IntelliTool +, PaintingArea
  • colorPickerSetFirstColor() : PaintingArea @@ -140,8 +144,8 @@ $(document).ready(function(){initNavTree('functions.html','');});
  • colorPickerSetSecondColor() : PaintingArea
  • -
  • colorPickerSwitchColor() -: PaintingArea +
  • colorPickerSwapColors() +: PaintingArea
  • createCircleTool() : PaintingArea @@ -169,10 +173,7 @@ $(document).ready(function(){initNavTree('functions.html','');});

    - d -

    @@ -406,16 +461,22 @@ $(document).ready(function(){initNavTree('functions.html','');});

    - s -

    + + +

    - t -

    + + +

    - u -

    @@ -487,6 +572,9 @@ $(document).ready(function(){initNavTree('functions.html','');});
  • ~IntelliToolRectangle() : IntelliToolRectangle
  • +
  • ~IntelliToolsettings() +: IntelliToolsettings +
  • ~PaintingArea() : PaintingArea
  • diff --git a/docs/html/functions_enum.html b/docs/html/functions_enum.html new file mode 100644 index 0000000..d123832 --- /dev/null +++ b/docs/html/functions_enum.html @@ -0,0 +1,111 @@ + + + + + + + +IntelliPhoto: Class Members - Enumerations + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    IntelliPhoto +  0.5 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    + + + + diff --git a/docs/html/functions_func.html b/docs/html/functions_func.html index 2dc3470..c039c3d 100644 --- a/docs/html/functions_func.html +++ b/docs/html/functions_func.html @@ -90,10 +90,10 @@ $(document).ready(function(){initNavTree('functions_func.html','');});

    - a -

    @@ -112,8 +112,8 @@ $(document).ready(function(){initNavTree('functions_func.html','');});
  • colorPickerSetSecondColor() : PaintingArea
  • -
  • colorPickerSwitchColor() -: PaintingArea +
  • colorPickerSwapColors() +: PaintingArea
  • createCircleTool() : PaintingArea @@ -141,7 +141,7 @@ $(document).ready(function(){initNavTree('functions_func.html','');});

    - d -

    - l -

    @@ -329,7 +371,7 @@ $(document).ready(function(){initNavTree('functions_func.html','');}); , IntelliToolRectangle
  • open() -: PaintingArea +: PaintingArea
  • @@ -356,16 +398,22 @@ $(document).ready(function(){initNavTree('functions_func.html','');});

    - s -

    + + +

    - u -

    @@ -431,6 +489,9 @@ $(document).ready(function(){initNavTree('functions_func.html','');});
  • ~IntelliToolRectangle() : IntelliToolRectangle
  • +
  • ~IntelliToolsettings() +: IntelliToolsettings +
  • ~PaintingArea() : PaintingArea
  • diff --git a/docs/html/functions_vars.html b/docs/html/functions_vars.html index f3acbbc..af7dcfb 100644 --- a/docs/html/functions_vars.html +++ b/docs/html/functions_vars.html @@ -90,8 +90,11 @@ $(document).ready(function(){initNavTree('functions_vars.html','');});
  • A : Triangle
  • -
  • Active -: IntelliTool +
  • activeLayer +: IntelliTool +
  • +
  • ActiveType +: IntelliTool
  • alpha : LayerObject @@ -110,9 +113,10 @@ $(document).ready(function(){initNavTree('functions_vars.html','');});
  • colorPicker : IntelliTool +, PaintingArea
  • -
  • drawing -: IntelliTool +
  • fastRenderer +: IntelliImage
  • height : LayerObject @@ -126,9 +130,19 @@ $(document).ready(function(){initNavTree('functions_vars.html','');});
  • imageData : IntelliImage
  • +
  • isDrawing +: IntelliTool +
  • polygonData : IntelliShapedImage
  • +
  • Toolsettings +: IntelliTool +, PaintingArea +
  • +
  • TypeOfImage +: IntelliImage +
  • width : LayerObject
  • diff --git a/docs/html/globals.html b/docs/html/globals.html index 72b8b1c..e94d00d 100644 --- a/docs/html/globals.html +++ b/docs/html/globals.html @@ -87,15 +87,12 @@ $(document).ready(function(){initNavTree('globals.html','');});
    Here is a list of all file members with links to the files they belong to:
    diff --git a/docs/html/globals_defs.html b/docs/html/globals_defs.html new file mode 100644 index 0000000..46fcdba --- /dev/null +++ b/docs/html/globals_defs.html @@ -0,0 +1,105 @@ + + + + + + + +IntelliPhoto: File Members + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    IntelliPhoto +  0.5 +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    + + + + diff --git a/docs/html/hierarchy.html b/docs/html/hierarchy.html index dc9a917..3e7ceb0 100644 --- a/docs/html/hierarchy.html +++ b/docs/html/hierarchy.html @@ -90,28 +90,28 @@ $(document).ready(function(){initNavTree('hierarchy.html','');});
    Class Hierarchy
    -
    -

    Go to the graphical class hierarchy

    -This inheritance list is sorted roughly, but not completely, alphabetically:
    +
    This inheritance list is sorted roughly, but not completely, alphabetically:
    [detail level 123]
    - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + +
     CIntelliColorPickerThe IntelliColorPicker manages the selected colors for one whole project
     CIntelliImageAn abstract class which manages the basic IntelliImage operations
     CIntelliRasterImageThe IntelliRasterImage manages a Rasterimage
     CIntelliRasterImageThe IntelliRasterImage manages a RASTERIMAGE
     CIntelliShapedImageThe IntelliShapedImage manages a Shapedimage
     CIntelliToolAn abstract class that manages the basic events, like mouse clicks or scrolls events
     CIntelliToolCircleTool to draw a circle
     CIntelliToolFloodFillTool to flood FIll a certian area
     CIntelliToolLineThe IntelliToolFloodFill class represents a tool to draw a line
     CIntelliToolPenTool to draw a line
     CIntelliToolPlainToolTool to fill the whole canvas with one color
     CIntelliToolPolygonThe IntelliToolPolygon managed the Drawing of Polygonforms
     CIntelliToolRectangleTool to draw a rectangle
     CLayerObjectThe LayerObject struct holds all the information needed to construct a layer
     CQMainWindow
     CIntelliPhotoGuiHandles the graphical user interface for the intelliPhoto program
     CQWidget
     CPaintingAreaManages the methods and stores information about the current painting area, which is the currently opened project
     CTriangleThe Triangle struct holds the 3 vertices of a triangle
     CIntelliRenderSettings
     CIntelliToolAn abstract class that manages the basic events, like mouse clicks or scrolls events
     CIntelliToolCircleTool to draw a circle
     CIntelliToolFloodFillTool to flood FIll a certian area
     CIntelliToolLineThe IntelliToolFloodFill class represents a tool to draw a line
     CIntelliToolPenTool to draw a line
     CIntelliToolPlainToolTool to fill the whole canvas with one color
     CIntelliToolPolygonThe IntelliToolPolygon managed the Drawing of Polygonforms
     CIntelliToolRectangleTool to draw a rectangle
     CIntelliToolsettings
     CLayerObjectThe LayerObject struct holds all the information needed to construct a layer
     CQMainWindow
     CIntelliPhotoGuiHandles the graphical user interface for the intelliPhoto program
     CQWidget
     CPaintingAreaManages the methods and stores information about the current painting area, which is the currently opened project
     CTriangleThe Triangle struct holds the 3 vertices of a triangle
    diff --git a/docs/html/hierarchy.js b/docs/html/hierarchy.js index edc99b7..5b4a232 100644 --- a/docs/html/hierarchy.js +++ b/docs/html/hierarchy.js @@ -6,6 +6,7 @@ var hierarchy = [ "IntelliShapedImage", "class_intelli_shaped_image.html", null ] ] ] ] ], + [ "IntelliRenderSettings", "class_intelli_render_settings.html", null ], [ "IntelliTool", "class_intelli_tool.html", [ [ "IntelliToolCircle", "class_intelli_tool_circle.html", null ], [ "IntelliToolFloodFill", "class_intelli_tool_flood_fill.html", null ], @@ -15,6 +16,7 @@ var hierarchy = [ "IntelliToolPolygon", "class_intelli_tool_polygon.html", null ], [ "IntelliToolRectangle", "class_intelli_tool_rectangle.html", null ] ] ], + [ "IntelliToolsettings", "class_intelli_toolsettings.html", null ], [ "LayerObject", "struct_layer_object.html", null ], [ "QMainWindow", null, [ [ "IntelliPhotoGui", "class_intelli_photo_gui.html", null ] diff --git a/docs/html/inherit_graph_1.dot b/docs/html/inherit_graph_1.dot index 8e9fe2c..6670cd8 100644 --- a/docs/html/inherit_graph_1.dot +++ b/docs/html/inherit_graph_1.dot @@ -6,7 +6,7 @@ digraph "Graphical Class Hierarchy" rankdir="LR"; Node0 [label="IntelliImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_image.html",tooltip="An abstract class which manages the basic IntelliImage operations."]; Node0 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html",tooltip="The IntelliRasterImage manages a Rasterimage."]; + Node1 [label="IntelliRasterImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_raster_image.html",tooltip="The IntelliRasterImage manages a RASTERIMAGE."]; Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 [label="IntelliShapedImage",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_shaped_image.html",tooltip="The IntelliShapedImage manages a Shapedimage."]; } diff --git a/docs/html/inherit_graph_3.dot b/docs/html/inherit_graph_3.dot index ec45d17..407b5bc 100644 --- a/docs/html/inherit_graph_3.dot +++ b/docs/html/inherit_graph_3.dot @@ -4,19 +4,5 @@ digraph "Graphical Class Hierarchy" edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; node [fontname="Helvetica",fontsize="10",shape=record]; rankdir="LR"; - Node0 [label="IntelliTool",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html",tooltip="An abstract class that manages the basic events, like mouse clicks or scrolls events."]; - Node0 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node1 [label="IntelliToolCircle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html",tooltip="The IntelliToolCircle class represents a tool to draw a circle."]; - Node0 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node2 [label="IntelliToolFloodFill",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_flood_fill.html",tooltip="The IntelliToolFloodFill class represents a tool to flood FIll a certian area."]; - Node0 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node3 [label="IntelliToolLine",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html",tooltip="The IntelliToolFloodFill class represents a tool to draw a line."]; - Node0 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="IntelliToolPen",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html",tooltip="The IntelliToolPen class represents a tool to draw a line."]; - Node0 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="IntelliToolPlainTool",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_plain_tool.html",tooltip="The IntelliToolPlainTool class represents a tool to fill the whole canvas with one color."]; - Node0 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="IntelliToolPolygon",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html",tooltip="The IntelliToolPolygon managed the Drawing of Polygonforms."]; - Node0 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="IntelliToolRectangle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html",tooltip="The IntelliToolRectangle class represents a tool to draw a rectangle."]; + Node0 [label="IntelliRenderSettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_render_settings.html",tooltip=" "]; } diff --git a/docs/html/inherit_graph_4.dot b/docs/html/inherit_graph_4.dot index cb85543..ec45d17 100644 --- a/docs/html/inherit_graph_4.dot +++ b/docs/html/inherit_graph_4.dot @@ -4,5 +4,19 @@ digraph "Graphical Class Hierarchy" edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; node [fontname="Helvetica",fontsize="10",shape=record]; rankdir="LR"; - Node0 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; + Node0 [label="IntelliTool",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool.html",tooltip="An abstract class that manages the basic events, like mouse clicks or scrolls events."]; + Node0 -> Node1 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node1 [label="IntelliToolCircle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_circle.html",tooltip="The IntelliToolCircle class represents a tool to draw a circle."]; + Node0 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node2 [label="IntelliToolFloodFill",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_flood_fill.html",tooltip="The IntelliToolFloodFill class represents a tool to flood FIll a certian area."]; + Node0 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node3 [label="IntelliToolLine",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_line.html",tooltip="The IntelliToolFloodFill class represents a tool to draw a line."]; + Node0 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node4 [label="IntelliToolPen",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_pen.html",tooltip="The IntelliToolPen class represents a tool to draw a line."]; + Node0 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node5 [label="IntelliToolPlainTool",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_plain_tool.html",tooltip="The IntelliToolPlainTool class represents a tool to fill the whole canvas with one color."]; + Node0 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node6 [label="IntelliToolPolygon",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_polygon.html",tooltip="The IntelliToolPolygon managed the Drawing of Polygonforms."]; + Node0 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node7 [label="IntelliToolRectangle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_tool_rectangle.html",tooltip="The IntelliToolRectangle class represents a tool to draw a rectangle."]; } diff --git a/docs/html/inherit_graph_5.dot b/docs/html/inherit_graph_5.dot index 88ed036..5dc8cc6 100644 --- a/docs/html/inherit_graph_5.dot +++ b/docs/html/inherit_graph_5.dot @@ -4,7 +4,5 @@ digraph "Graphical Class Hierarchy" edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; node [fontname="Helvetica",fontsize="10",shape=record]; rankdir="LR"; - Node2 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node2 -> Node0 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node0 [label="PaintingArea",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html",tooltip="The PaintingArea class manages the methods and stores information about the current painting area,..."]; + Node0 [label="IntelliToolsettings",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_intelli_toolsettings.html",tooltip=" "]; } diff --git a/docs/html/inherit_graph_6.dot b/docs/html/inherit_graph_6.dot index 98844bc..cb85543 100644 --- a/docs/html/inherit_graph_6.dot +++ b/docs/html/inherit_graph_6.dot @@ -4,5 +4,5 @@ digraph "Graphical Class Hierarchy" edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; node [fontname="Helvetica",fontsize="10",shape=record]; rankdir="LR"; - Node0 [label="Triangle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_triangle.html",tooltip="The Triangle struct holds the 3 vertices of a triangle."]; + Node0 [label="LayerObject",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_layer_object.html",tooltip="The LayerObject struct holds all the information needed to construct a layer."]; } diff --git a/docs/html/inherit_graph_7.dot b/docs/html/inherit_graph_7.dot new file mode 100644 index 0000000..88ed036 --- /dev/null +++ b/docs/html/inherit_graph_7.dot @@ -0,0 +1,10 @@ +digraph "Graphical Class Hierarchy" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node2 [label="QWidget",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node2 -> Node0 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node0 [label="PaintingArea",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$class_painting_area.html",tooltip="The PaintingArea class manages the methods and stores information about the current painting area,..."]; +} diff --git a/docs/html/inherit_graph_8.dot b/docs/html/inherit_graph_8.dot new file mode 100644 index 0000000..98844bc --- /dev/null +++ b/docs/html/inherit_graph_8.dot @@ -0,0 +1,8 @@ +digraph "Graphical Class Hierarchy" +{ + // LATEX_PDF_SIZE + edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; + node [fontname="Helvetica",fontsize="10",shape=record]; + rankdir="LR"; + Node0 [label="Triangle",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$struct_triangle.html",tooltip="The Triangle struct holds the 3 vertices of a triangle."]; +} diff --git a/docs/html/inherits.html b/docs/html/inherits.html index 7e22006..2b1da7e 100644 --- a/docs/html/inherits.html +++ b/docs/html/inherits.html @@ -99,13 +99,17 @@ $(document).ready(function(){initNavTree('hierarchy.html','');}); - + - + - + - + + + + +
    diff --git a/docs/html/main_8cpp.html b/docs/html/main_8cpp.html index 0bddc79..6ef81a6 100644 --- a/docs/html/main_8cpp.html +++ b/docs/html/main_8cpp.html @@ -95,13 +95,7 @@ $(document).ready(function(){initNavTree('main_8cpp.html','');});
    #include "GUI/IntelliPhotoGui.h"
    #include <QApplication>
    #include <QDebug>
    -#include "IntelliHelper/IntelliHelper.h"
    #include <vector>
    -
    -Include dependency graph for main.cpp:
    -
    -
    -

    Go to the source code of this file.

    @@ -137,7 +131,7 @@ Functions
    -

    Definition at line 7 of file main.cpp.

    +

    Definition at line 6 of file main.cpp.

    diff --git a/docs/html/main_8cpp__incl.dot b/docs/html/main_8cpp__incl.dot index e6c725f..18ed033 100644 --- a/docs/html/main_8cpp__incl.dot +++ b/docs/html/main_8cpp__incl.dot @@ -7,28 +7,27 @@ digraph "intelliphoto/src/main.cpp" Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; Node2 [label="GUI/IntelliPhotoGui.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_photo_gui_8h.html",tooltip=" "]; Node2 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node3 [label="QList",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node3 [label="QtWidgets",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node4 [label="QMainWindow",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node4 [label="QPixmap",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node5 [label="QGridLayout",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node5 [label="QList",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node6 [label="QPushButton",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node6 [label="QMainWindow",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node7 [label="QTextEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node7 [label="QGridLayout",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node8 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node8 [label="QLabel",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node8 [label="QPushButton",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node2 -> Node9 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node9 [label="QLineEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node10 [label="QApplication",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node1 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node11 [label="QDebug",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node9 [label="QTextEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node2 -> Node10 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node10 [label="QLabel",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node2 -> Node11 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node11 [label="QLineEdit",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node12 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node12 [label="IntelliHelper/IntelliHelper.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_intelli_helper_8h.html",tooltip=" "]; - Node12 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node13 [label="QPoint",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; - Node12 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; - Node14 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node12 [label="QApplication",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; + Node1 -> Node13 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node13 [label="QDebug",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; Node1 -> Node14 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"]; + Node14 [label="vector",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled",tooltip=" "]; } diff --git a/docs/html/main_8cpp_source.html b/docs/html/main_8cpp_source.html index 0a1d9f3..3a4e0a2 100644 --- a/docs/html/main_8cpp_source.html +++ b/docs/html/main_8cpp_source.html @@ -93,25 +93,23 @@ $(document).ready(function(){initNavTree('main_8cpp_source.html','');}); Go to the documentation of this file.
    1 #include "GUI/IntelliPhotoGui.h"
    2 #include <QApplication>
    3 #include <QDebug>
    - -
    5 #include <vector>
    -
    6 
    -
    7 int main(int argc, char*argv[]){
    -
    8  // The main application
    -
    9  QApplication app(argc, argv);
    -
    10 
    -
    11  // Create and open the main window
    -
    12  IntelliPhotoGui window;
    -
    13  window.show();
    -
    14 
    -
    15  return app.exec();
    -
    16 }
    +
    4 #include <vector>
    +
    5 
    +
    6 int main(int argc, char*argv[]){
    +
    7  // The main application
    +
    8  QApplication app(argc, argv);
    +
    9 
    +
    10  // Create and open the main window
    +
    11  IntelliPhotoGui window;
    +
    12  window.show();
    +
    13 
    +
    14  return app.exec();
    +
    15 }
    -
    The IntelliPhotoGui class handles the graphical user interface for the intelliPhoto program.
    - +
    The IntelliPhotoGui class handles the graphical user interface for the intelliPhoto program.
    -
    int main(int argc, char *argv[])
    Definition: main.cpp:7
    +
    int main(int argc, char *argv[])
    Definition: main.cpp:6
    -

    Definition at line 30 of file PaintingArea.h.

    +

    Definition at line 31 of file PaintingArea.h.

    @@ -162,7 +157,7 @@ Public Attributes
    -

    Definition at line 27 of file PaintingArea.h.

    +

    Definition at line 28 of file PaintingArea.h.

    @@ -178,7 +173,7 @@ Public Attributes
    -

    Definition at line 29 of file PaintingArea.h.

    +

    Definition at line 30 of file PaintingArea.h.

    @@ -194,7 +189,7 @@ Public Attributes
    -

    Definition at line 25 of file PaintingArea.h.

    +

    Definition at line 26 of file PaintingArea.h.

    @@ -210,7 +205,7 @@ Public Attributes
    -

    Definition at line 26 of file PaintingArea.h.

    +

    Definition at line 27 of file PaintingArea.h.

    @@ -226,7 +221,7 @@ Public Attributes
    -

    Definition at line 28 of file PaintingArea.h.

    +

    Definition at line 29 of file PaintingArea.h.

    diff --git a/docs/html/struct_triangle.html b/docs/html/struct_triangle.html index f0e832d..038a78d 100644 --- a/docs/html/struct_triangle.html +++ b/docs/html/struct_triangle.html @@ -97,7 +97,7 @@ $(document).ready(function(){initNavTree('struct_triangle.html','');});

    The Triangle struct holds the 3 vertices of a triangle. More...

    -

    #include <IntelliHelper.h>

    +

    #include <IntelliTriangulation.h>

    @@ -111,7 +111,7 @@ Public Attributes

    Detailed Description

    The Triangle struct holds the 3 vertices of a triangle.

    -

    Definition at line 10 of file IntelliHelper.h.

    +

    Definition at line 10 of file IntelliTriangulation.h.

    Member Data Documentation

    ◆ A

    @@ -125,7 +125,7 @@ Public Attributes

    Public Attributes

    -

    Definition at line 11 of file IntelliHelper.h.

    +

    Definition at line 11 of file IntelliTriangulation.h.

    @@ -141,7 +141,7 @@ Public Attributes
    -

    Definition at line 11 of file IntelliHelper.h.

    +

    Definition at line 11 of file IntelliTriangulation.h.

    @@ -157,12 +157,12 @@ Public Attributes
    -

    Definition at line 11 of file IntelliHelper.h.

    +

    Definition at line 11 of file IntelliTriangulation.h.


    The documentation for this struct was generated from the following file: