QuickGraphLib 0.1.0a8__tar.gz → 0.1.0a10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/CMakeLists.txt +3 -1
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/PKG-INFO +17 -6
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/AntialiasingContainer.qml +8 -1
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/Axis.qml +13 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/CMakeLists.txt +3 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/ColorMaps.cpp +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/DataTypes.hpp +7 -5
- quickgraphlib-0.1.0a10/QuickGraphLib/Global.hpp +12 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphArea.qml +13 -2
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/AxHLine.qml +3 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/AxHSpan.qml +3 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/AxVLine.qml +3 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/AxVSpan.qml +3 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/BasicLegend.qml +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/BasicLegendItem.qml +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/ColorMesh.qml +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/Contour.qml +3 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/GraphItemDragHandler.qml +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/Grid.qml +3 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/Histogram.qml +8 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/Line.qml +2 -13
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/Marker.qml +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/ImageView.cpp +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/PreFabs/ImageAxes.qml +7 -5
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/PreFabs/XYAxes.qml +31 -5
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/QuickGraphLib.hpp +1 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/ScalingContainer.qml +4 -2
- quickgraphlib-0.1.0a10/QuickGraphLib/ShapeRepeater.qml +56 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/TickLabel.qml +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/ZoomPanHandler.qml +3 -1
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/__init__.py +4 -2
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/_version.py +1 -1
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/bindings/Bindings.hpp +1 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/bindings/Bindings.xml +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/bindings/CMakeLists.txt +51 -16
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/bindings/pyigen.py +4 -2
- quickgraphlib-0.1.0a10/QuickGraphLib/bindings/qtqml.rst +16 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/contours.py +11 -4
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/graphstructure.qdoc +81 -0
- quickgraphlib-0.1.0a10/QuickGraphLib/doc/interaction.qdoc +43 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/python_helpers.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/helpers/AxisHelper.cpp +8 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/helpers/Helpers.cpp +92 -9
- quickgraphlib-0.1.0a10/QuickGraphLib/helpers/Helpers.hpp +26 -0
- quickgraphlib-0.1.0a10/QuickGraphLib/helpers/ShapeRepeaterHelper.cpp +72 -0
- quickgraphlib-0.1.0a10/QuickGraphLib/helpers/ShapeRepeaterHelper.hpp +17 -0
- quickgraphlib-0.1.0a10/README.md +36 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/ci/setup_qt.py +5 -5
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/docs/build_docs.py +1 -1
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/docs/config.qdocconf +1 -1
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/docs/style.css +22 -5
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/AllTheAxes.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/AllTheAxes.qml +1 -1
- quickgraphlib-0.1.0a10/examples/BasicHistogram.qdoc +15 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BasicSinGraph.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BasicSinGraphNoPrefabs.qdoc +3 -3
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BasicSinGraphNoPrefabs.qml +1 -1
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BuiltinColormaps.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BuiltinColormaps.qml +3 -3
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ColorMappedImages.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ColorMappedImages.qml +0 -2
- quickgraphlib-0.1.0a10/examples/ColorMesh.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ColorMesh.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Complex.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Complex.qml +15 -15
- quickgraphlib-0.1.0a10/examples/Contours.qdoc +17 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Conway.qdoc +4 -2
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Conway.qml +8 -4
- quickgraphlib-0.1.0a10/examples/DarkSinGraph.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/DarkSinGraph.qdoc +8 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/DraggableRegion.qdoc +2 -0
- quickgraphlib-0.1.0a10/examples/ExampleGallery.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ImageAlignment.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/InvertedAxes.qdoc +2 -0
- quickgraphlib-0.1.0a10/examples/PeakButtons.png +0 -0
- quickgraphlib-0.1.0a10/examples/PeakButtons.qdoc +15 -0
- quickgraphlib-0.1.0a10/examples/PeakButtons.qml +71 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ReadoutLine.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ScalingGraph.qdoc +2 -0
- quickgraphlib-0.1.0a10/examples/Scatter.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Scatter.qdoc +2 -0
- quickgraphlib-0.1.0a10/examples/Scatter.qml +35 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/SpansAndLines.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Subgraphs.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/TwinX.qdoc +2 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/TwinX.qml +1 -1
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ZoomableAsImage.qdoc +2 -0
- quickgraphlib-0.1.0a10/examples/ZoomableAxes.qdoc +19 -0
- quickgraphlib-0.1.0a10/examples/__init__.py +4 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/conway.py +13 -13
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/gallery.py +1 -2
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/pyproject.toml +10 -11
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/requirements.txt +6 -6
- quickgraphlib-0.1.0a10/tests/__init__.py +4 -0
- quickgraphlib-0.1.0a10/tests/fonts/DejaVuSans-Bold.ttf +0 -0
- quickgraphlib-0.1.0a10/tests/fonts/DejaVuSans-BoldOblique.ttf +0 -0
- quickgraphlib-0.1.0a10/tests/fonts/DejaVuSans-Oblique.ttf +0 -0
- quickgraphlib-0.1.0a10/tests/fonts/DejaVuSans.ttf +0 -0
- quickgraphlib-0.1.0a10/tests/fonts/LICENSE +187 -0
- quickgraphlib-0.1.0a10/tests/python_exporter.py +78 -0
- quickgraphlib-0.1.0a10/tests/reference_images/AllTheAxes.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/AllTheAxes.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/AllTheAxes.svg +1376 -0
- quickgraphlib-0.1.0a10/tests/reference_images/AllTheAxes_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicHistogram.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicHistogram.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicHistogram.svg +777 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicHistogram_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicSinGraph.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicSinGraph.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicSinGraph.svg +740 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicSinGraphNoPrefabs.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicSinGraphNoPrefabs.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicSinGraphNoPrefabs.svg +719 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicSinGraphNoPrefabs_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BasicSinGraph_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BuiltinColormaps.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BuiltinColormaps.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BuiltinColormaps.svg +3069 -0
- quickgraphlib-0.1.0a10/tests/reference_images/BuiltinColormaps_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ColorMappedImages.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ColorMappedImages.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ColorMappedImages.svg +188 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ColorMappedImages_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ColorMesh.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ColorMesh.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ColorMesh.svg +852 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ColorMesh_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Complex.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Complex.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Complex.svg +1325 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Complex_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Contours.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Contours.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Contours.svg +924 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Contours_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Conway.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Conway.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Conway.svg +1090 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Conway_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/DarkSinGraph.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/DarkSinGraph.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/DarkSinGraph.svg +740 -0
- quickgraphlib-0.1.0a10/tests/reference_images/DarkSinGraph_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/DraggableRegion.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/DraggableRegion.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/DraggableRegion.svg +726 -0
- quickgraphlib-0.1.0a10/tests/reference_images/DraggableRegion_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ImageAlignment.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ImageAlignment.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ImageAlignment.svg +623 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ImageAlignment_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/InvertedAxes.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/InvertedAxes.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/InvertedAxes.svg +730 -0
- quickgraphlib-0.1.0a10/tests/reference_images/InvertedAxes_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/PeakButtons.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/PeakButtons.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/PeakButtons.svg +833 -0
- quickgraphlib-0.1.0a10/tests/reference_images/PeakButtons_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ReadoutLine.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ReadoutLine.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ReadoutLine.svg +673 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ReadoutLine_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ScalingGraph.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ScalingGraph.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ScalingGraph.svg +771 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ScalingGraph_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Scatter.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Scatter.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Scatter.svg +210680 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Scatter_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/SpansAndLines.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/SpansAndLines.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/SpansAndLines.svg +785 -0
- quickgraphlib-0.1.0a10/tests/reference_images/SpansAndLines_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Subgraphs.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Subgraphs.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Subgraphs.svg +1720 -0
- quickgraphlib-0.1.0a10/tests/reference_images/Subgraphs_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/TwinX.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/TwinX.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/TwinX.svg +805 -0
- quickgraphlib-0.1.0a10/tests/reference_images/TwinX_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ZoomableAsImage.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ZoomableAsImage.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ZoomableAsImage.svg +765 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ZoomableAsImage_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ZoomableAxes.dat +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ZoomableAxes.png +0 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ZoomableAxes.svg +1423 -0
- quickgraphlib-0.1.0a10/tests/reference_images/ZoomableAxes_grab.png +0 -0
- quickgraphlib-0.1.0a10/tests/test_exports.py +220 -0
- quickgraphlib-0.1.0a8/QuickGraphLib/ShapeRepeater.qml +0 -25
- quickgraphlib-0.1.0a8/QuickGraphLib/doc/interaction.qdoc +0 -13
- quickgraphlib-0.1.0a8/QuickGraphLib/helpers/Helpers.hpp +0 -23
- quickgraphlib-0.1.0a8/README.md +0 -25
- quickgraphlib-0.1.0a8/examples/BasicHistogram.qdoc +0 -13
- quickgraphlib-0.1.0a8/examples/ColorMesh.png +0 -0
- quickgraphlib-0.1.0a8/examples/Contours.qdoc +0 -13
- quickgraphlib-0.1.0a8/examples/DarkSinGraph.png +0 -0
- quickgraphlib-0.1.0a8/examples/ExampleGallery.png +0 -0
- quickgraphlib-0.1.0a8/examples/Scatter.png +0 -0
- quickgraphlib-0.1.0a8/examples/Scatter.qml +0 -28
- quickgraphlib-0.1.0a8/examples/ZoomableAxes.qdoc +0 -13
- quickgraphlib-0.1.0a8/setup.cfg +0 -2
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/.clang-format +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/.gitignore +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/.pre-commit-config.yaml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/LICENCE +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/ColorMaps.hpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/DataTypes.cpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/CMakeLists.txt +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/helpers/GridHelper.cpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/helpers/GridHelper.hpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/helpers/HistogramHelper.cpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/GraphItems/helpers/HistogramHelper.hpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/ImageView.hpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/Plugin.cpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/PreFabs/CMakeLists.txt +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/bindings/ShibokenHelpers.cpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/bindings/ShibokenHelpers.hpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/bindings/glue/DataTypes.cpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/consts.py +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/AxesGridLayout.drawio +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/AxesGridLayout.svg +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/export.qdoc +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/graphitems.qdoc +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/index.qdoc +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/module-cpp.qdoc +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/module.qdoc +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/doc/prefabs.qdoc +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/helpers/AxisHelper.hpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/helpers/Foreign.hpp +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/QuickGraphLib/py.typed +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/activate_venv.ps1 +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/ci/find_qt.py +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/AllTheAxes.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BasicHistogram.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BasicHistogram.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BasicSinGraph.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BasicSinGraph.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BasicSinGraphNoPrefabs.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/BuiltinColormaps.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ColorMappedImages.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ColorMesh.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Complex.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Contours.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Contours.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Conway.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/DarkSinGraph.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/DraggableRegion.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/DraggableRegion.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ExampleGallery.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ImageAlignment.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ImageAlignment.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/InvertedAxes.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/InvertedAxes.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ReadoutLine.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ReadoutLine.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ScalingGraph.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ScalingGraph.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/SpansAndLines.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/SpansAndLines.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Subgraphs.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/Subgraphs.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/TwinX.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ZoomableAsImage.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ZoomableAsImage.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ZoomableAxes.png +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/examples/ZoomableAxes.qml +0 -0
- {quickgraphlib-0.1.0a8 → quickgraphlib-0.1.0a10}/setup_venv.ps1 +0 -0
|
@@ -15,6 +15,8 @@ else()
|
|
|
15
15
|
add_compile_options(-Wextra -Wpedantic -fno-visibility-inlines-hidden)
|
|
16
16
|
endif()
|
|
17
17
|
|
|
18
|
+
option(ENABLE_STUB_GENERATION "Enable .pyi stub generation (defaults to on)" ON)
|
|
19
|
+
|
|
18
20
|
if(NOT INSTALL_SUBPATH)
|
|
19
21
|
set(INSTALL_SUBPATH
|
|
20
22
|
${CMAKE_INSTALL_LIBDIR}/qml
|
|
@@ -24,6 +26,6 @@ if(NOT INSTALL_SUBPATH)
|
|
|
24
26
|
endif()
|
|
25
27
|
|
|
26
28
|
find_package(Qt6 REQUIRED COMPONENTS Quick Svg)
|
|
27
|
-
qt_standard_project_setup(REQUIRES 6.
|
|
29
|
+
qt_standard_project_setup(REQUIRES 6.8)
|
|
28
30
|
|
|
29
31
|
add_subdirectory(QuickGraphLib)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: QuickGraphLib
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a10
|
|
4
4
|
Summary: A scientific graphing library for QtQuick
|
|
5
5
|
Author-Email: Matthew Joyce <matthew.joyce@refeyn.com>
|
|
6
6
|
License: MIT License
|
|
@@ -38,8 +38,9 @@ Project-URL: Homepage, https://github.com/refeyn/QuickGraphLib
|
|
|
38
38
|
Project-URL: Issues, https://github.com/refeyn/QuickGraphLib/issues
|
|
39
39
|
Project-URL: Documentation, https://refeyn.github.io/QuickGraphLib
|
|
40
40
|
Project-URL: Source, https://github.com/refeyn/QuickGraphLib
|
|
41
|
-
Requires-Dist: PySide6
|
|
41
|
+
Requires-Dist: PySide6==6.8.0.2
|
|
42
42
|
Requires-Dist: contourpy
|
|
43
|
+
Requires-Dist: numpy<2
|
|
43
44
|
Requires-Dist: black; extra == "analyse"
|
|
44
45
|
Requires-Dist: pylint; extra == "analyse"
|
|
45
46
|
Requires-Dist: mypy; extra == "analyse"
|
|
@@ -48,8 +49,7 @@ Requires-Dist: lxml; extra == "analyse"
|
|
|
48
49
|
Requires-Dist: pytest; extra == "analyse"
|
|
49
50
|
Requires-Dist: pytest-cov; extra == "analyse"
|
|
50
51
|
Requires-Dist: scikit-build-core; extra == "analyse"
|
|
51
|
-
Requires-Dist: shiboken6_generator==6.
|
|
52
|
-
Requires-Dist: PySide6==6.5.3; extra == "analyse"
|
|
52
|
+
Requires-Dist: shiboken6_generator==6.8.0.2; extra == "analyse"
|
|
53
53
|
Requires-Dist: setuptools_scm; extra == "analyse"
|
|
54
54
|
Provides-Extra: analyse
|
|
55
55
|
Description-Content-Type: text/markdown
|
|
@@ -61,6 +61,7 @@ A scientific graphing library for [QtQuick](https://doc.qt.io/qt-6/qtquick-index
|
|
|
61
61
|
Links:
|
|
62
62
|
- [Online documentation](https://refeyn.github.io/QuickGraphLib)
|
|
63
63
|
- [PyPI page](https://pypi.org/project/QuickGraphLib/)
|
|
64
|
+
- [Pre-built artefacts](https://github.com/refeyn/QuickGraphLib/releases/latest)
|
|
64
65
|
|
|
65
66
|
Key advantages:
|
|
66
67
|
|
|
@@ -75,7 +76,17 @@ Key advantages:
|
|
|
75
76
|
The example gallery can be run using (provided the Python environment has [PySide6](https://pypi.org/project/PySide6/) and [contourpy](https://pypi.org/project/contourpy/) installed):
|
|
76
77
|
|
|
77
78
|
```bash
|
|
78
|
-
python examples
|
|
79
|
+
python examples/gallery.py
|
|
79
80
|
```
|
|
80
81
|
|
|
81
|
-
<p align="center"><img src="https://github.com/
|
|
82
|
+
<p align="center"><img src="https://github.com/user-attachments/assets/19fa3b50-9a86-458d-b7c2-7a6fc95f0b6c" width="80%"></p>
|
|
83
|
+
|
|
84
|
+
## Qt version compatibility
|
|
85
|
+
|
|
86
|
+
This version of QuickGraphLib is compatible with Qt and PySide6 6.8.0. If you use this module from C++, then Qt's ABI stability guarantees means the compiled binaries will work for any Qt version >= 6.8 and < 7.0. If you use this module from Python, there are some additional features that rely on the PySide6 library version. Therefore the PySide6 version must be 6.8.0.2 exactly. Other 6.8 versions of PySide6 may work, but there are no guarantees.
|
|
87
|
+
|
|
88
|
+
The pre-built wheels aim to be compatible with the most recent recent Qt LTS version, which is currently 6.8. Pre-built wheels for higher non-LTS Qt versions will likely be available once Qt 6.9 is released.
|
|
89
|
+
|
|
90
|
+
## Python version compatibility
|
|
91
|
+
|
|
92
|
+
QuickGraphLib is compatible with the same Python versions and glibc versions that PySide6 is. For PySide6 6.8, the minimum Python version is 3.9.
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
import QtQuick
|
|
5
5
|
|
|
6
|
+
@Deprecated {
|
|
7
|
+
reason: "Due to the new Qt 6.7 Curve renderer, this is no longer needed for antialiasing"
|
|
8
|
+
}
|
|
9
|
+
|
|
6
10
|
/*!
|
|
7
11
|
\qmltype AntialiasingContainer
|
|
8
12
|
\inqmlmodule QuickGraphLib
|
|
@@ -10,6 +14,9 @@ import QtQuick
|
|
|
10
14
|
\brief Enables antialiasing for it's contents.
|
|
11
15
|
|
|
12
16
|
This item turns on \l {Multisample Antialiasing}. This helps with rendering in some cases.
|
|
17
|
+
|
|
18
|
+
\deprecated [0.1.0a10] Due to the new Qt 6.7 Curve renderer, this is no longer needed for antialiasing.
|
|
19
|
+
Replace with \l Item or remove completely
|
|
13
20
|
*/
|
|
14
21
|
|
|
15
22
|
Item {
|
|
@@ -17,7 +24,7 @@ Item {
|
|
|
17
24
|
|
|
18
25
|
/*!
|
|
19
26
|
Whether MSAA antialiasing is enabled. This can help with rendering when the target display has a
|
|
20
|
-
fractional scaling factor. It can also make rendering worse, especially with text.
|
|
27
|
+
fractional scaling factor. It can also make rendering worse, especially with text. Defaults to \c false.
|
|
21
28
|
*/
|
|
22
29
|
property alias antialiasingEnabled: root.layer.enabled
|
|
23
30
|
|
|
@@ -11,6 +11,17 @@ import QuickGraphLib as QuickGraphLib
|
|
|
11
11
|
\inqmlmodule QuickGraphLib
|
|
12
12
|
\inherits QtQuick::Item
|
|
13
13
|
\brief Displays an Axis.
|
|
14
|
+
|
|
15
|
+
\sa {Basic sin graph (without prefabs)}, {Graph with all four axes}
|
|
16
|
+
|
|
17
|
+
\section2 Antialiasing
|
|
18
|
+
|
|
19
|
+
By default, the axis sets \l {Shape::preferredRendererType} to \c {Shape.CurveRenderer}.
|
|
20
|
+
This turns on high-quality antialiasing, which results in better looking axes on HiDPI systems.
|
|
21
|
+
However, if you know your application will only be viewed on LoDPI systems, the axes will look
|
|
22
|
+
slightly better without antialiasing. In addition, antialiasing may require more GPU performance,
|
|
23
|
+
so switching this back to \c {Shape.GeometryRenderer} may help on low-power systems. See
|
|
24
|
+
\l {Shape::rendererType} for more details.
|
|
14
25
|
*/
|
|
15
26
|
|
|
16
27
|
Item {
|
|
@@ -156,10 +167,12 @@ Item {
|
|
|
156
167
|
id: shape
|
|
157
168
|
|
|
158
169
|
anchors.fill: parent
|
|
170
|
+
preferredRendererType: QQS.Shape.CurveRenderer
|
|
159
171
|
|
|
160
172
|
QQS.ShapePath {
|
|
161
173
|
id: myPath
|
|
162
174
|
|
|
175
|
+
pathHints: QQS.ShapePath.PathLinear
|
|
163
176
|
strokeColor: "black"
|
|
164
177
|
strokeWidth: 1
|
|
165
178
|
|
|
@@ -24,7 +24,9 @@ qt_add_qml_module(QuickGraphLib
|
|
|
24
24
|
DEPENDENCIES QtQuick
|
|
25
25
|
SOURCES
|
|
26
26
|
helpers/Helpers.cpp helpers/Helpers.hpp helpers/AxisHelper.hpp helpers/AxisHelper.cpp helpers/Foreign.hpp
|
|
27
|
+
helpers/ShapeRepeaterHelper.hpp helpers/ShapeRepeaterHelper.cpp
|
|
27
28
|
ImageView.hpp ImageView.cpp ColorMaps.hpp ColorMaps.cpp DataTypes.hpp DataTypes.cpp bindings/Bindings.hpp QuickGraphLib.hpp
|
|
29
|
+
Global.hpp
|
|
28
30
|
)
|
|
29
31
|
set_property(
|
|
30
32
|
TARGET QuickGraphLib
|
|
@@ -34,6 +36,7 @@ set_property(
|
|
|
34
36
|
TARGET QuickGraphLib
|
|
35
37
|
PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
36
38
|
)
|
|
39
|
+
target_compile_definitions(QuickGraphLib PRIVATE QGL_LIBRARY)
|
|
37
40
|
|
|
38
41
|
target_compile_definitions(
|
|
39
42
|
QuickGraphLib
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
#include <QList>
|
|
7
7
|
#include <QPolygonF>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
#include "Global.hpp"
|
|
10
|
+
|
|
11
|
+
class QGL_EXPORT QGLPolygonF : public QPolygonF {
|
|
10
12
|
public:
|
|
11
13
|
using QPolygonF::QPolygonF;
|
|
12
14
|
QGLPolygonF() = default;
|
|
@@ -15,19 +17,19 @@ class QGLPolygonF : public QPolygonF {
|
|
|
15
17
|
QGLPolygonF(QList<QPointF> &&v) noexcept : QPolygonF(std::move(v)) {}
|
|
16
18
|
QGLPolygonF(QPolygonF &&v) noexcept : QPolygonF(std::move(v)) {}
|
|
17
19
|
inline void swap(QGLPolygonF &other) { QPolygonF::swap(other); }
|
|
18
|
-
|
|
20
|
+
operator QVariant() const;
|
|
19
21
|
};
|
|
20
22
|
Q_DECLARE_SHARED(QGLPolygonF)
|
|
21
23
|
|
|
22
|
-
class QGLDoubleList : public QList<qreal> {
|
|
24
|
+
class QGL_EXPORT QGLDoubleList : public QList<qreal> {
|
|
23
25
|
public:
|
|
24
26
|
using QList<qreal>::QList;
|
|
25
27
|
QGLDoubleList() = default;
|
|
26
28
|
QGLDoubleList(const QList<qreal> &v) : QList<qreal>(v) {}
|
|
27
29
|
QGLDoubleList(QList<qreal> &&v) noexcept : QList<qreal>(std::move(v)) {}
|
|
28
30
|
inline void swap(QGLDoubleList &other) { QList<qreal>::swap(other); }
|
|
29
|
-
|
|
31
|
+
operator QVariant() const;
|
|
30
32
|
};
|
|
31
33
|
Q_DECLARE_SHARED(QGLDoubleList)
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
QGL_EXPORT void registerConvertions();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
#pragma once
|
|
5
|
+
|
|
6
|
+
#include <QtGlobal>
|
|
7
|
+
|
|
8
|
+
#if defined(QGL_LIBRARY)
|
|
9
|
+
#define QGL_EXPORT Q_DECL_EXPORT
|
|
10
|
+
#else
|
|
11
|
+
#define QGL_EXPORT Q_DECL_IMPORT
|
|
12
|
+
#endif
|
|
@@ -9,6 +9,15 @@ import QtQuick.Shapes as QQS
|
|
|
9
9
|
\inqmlmodule QuickGraphLib
|
|
10
10
|
\inherits QtQuick::Shapes::Shape
|
|
11
11
|
\brief An area that graphs can be added to.
|
|
12
|
+
|
|
13
|
+
\sa {Basic sin graph (without prefabs)}, {Inverted axes}
|
|
14
|
+
|
|
15
|
+
\section2 Antialiasing
|
|
16
|
+
|
|
17
|
+
By default, the graph area sets \l {Shape::preferredRendererType} to \c {Shape.CurveRenderer}.
|
|
18
|
+
This turns on high-quality antialiasing, which generally results in much better looking graphs.
|
|
19
|
+
However, it may require more GPU performance, so switching this back to \c {Shape.GeometryRenderer}
|
|
20
|
+
may help on low-power systems. See \l {Shape::rendererType} for more details.
|
|
12
21
|
*/
|
|
13
22
|
|
|
14
23
|
QQS.Shape {
|
|
@@ -77,6 +86,8 @@ QQS.Shape {
|
|
|
77
86
|
}
|
|
78
87
|
|
|
79
88
|
clip: true
|
|
80
|
-
|
|
81
|
-
|
|
89
|
+
// Set initial size to prevent Shape's automatically calculated implicitWidth resulting in binding loops
|
|
90
|
+
height: 100
|
|
91
|
+
preferredRendererType: QQS.Shape.CurveRenderer
|
|
92
|
+
width: 100
|
|
82
93
|
}
|
|
@@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
|
|
|
9
9
|
\inqmlmodule QuickGraphLib.GraphItems
|
|
10
10
|
\inherits QtQuick::Shapes::ShapePath
|
|
11
11
|
\brief Displays a horizontal line.
|
|
12
|
+
|
|
13
|
+
\sa {Spans and lines}
|
|
12
14
|
*/
|
|
13
15
|
|
|
14
16
|
QQS.ShapePath {
|
|
@@ -34,6 +36,7 @@ QQS.ShapePath {
|
|
|
34
36
|
*/
|
|
35
37
|
required property rect viewRect
|
|
36
38
|
|
|
39
|
+
pathHints: QQS.ShapePath.PathLinear | QQS.ShapePath.PathConvex | QQS.ShapePath.PathSolid
|
|
37
40
|
startX: topLeftPoint.x
|
|
38
41
|
startY: topLeftPoint.y
|
|
39
42
|
|
|
@@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
|
|
|
9
9
|
\inqmlmodule QuickGraphLib.GraphItems
|
|
10
10
|
\inherits QtQuick::Shapes::ShapePath
|
|
11
11
|
\brief Displays a horizontal span.
|
|
12
|
+
|
|
13
|
+
\sa {Spans and lines}
|
|
12
14
|
*/
|
|
13
15
|
|
|
14
16
|
QQS.ShapePath {
|
|
@@ -38,6 +40,7 @@ QQS.ShapePath {
|
|
|
38
40
|
*/
|
|
39
41
|
required property double yMin
|
|
40
42
|
|
|
43
|
+
pathHints: QQS.ShapePath.PathLinear | QQS.ShapePath.PathConvex | QQS.ShapePath.PathSolid
|
|
41
44
|
startX: topLeftPoint.x
|
|
42
45
|
startY: topLeftPoint.y
|
|
43
46
|
strokeColor: "transparent"
|
|
@@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
|
|
|
9
9
|
\inqmlmodule QuickGraphLib.GraphItems
|
|
10
10
|
\inherits QtQuick::Rectangle
|
|
11
11
|
\brief Displays an vertical line.
|
|
12
|
+
|
|
13
|
+
\sa {Spans and lines}, {Draggable region}
|
|
12
14
|
*/
|
|
13
15
|
|
|
14
16
|
QQS.ShapePath {
|
|
@@ -34,6 +36,7 @@ QQS.ShapePath {
|
|
|
34
36
|
*/
|
|
35
37
|
required property rect viewRect
|
|
36
38
|
|
|
39
|
+
pathHints: QQS.ShapePath.PathLinear | QQS.ShapePath.PathConvex | QQS.ShapePath.PathSolid
|
|
37
40
|
startX: topLeftPoint.x
|
|
38
41
|
startY: topLeftPoint.y
|
|
39
42
|
|
|
@@ -9,6 +9,8 @@ import QtQuick.Shapes as QQS
|
|
|
9
9
|
\inqmlmodule QuickGraphLib.GraphItems
|
|
10
10
|
\inherits QtQuick::Shapes::ShapePath
|
|
11
11
|
\brief Displays an vertical span.
|
|
12
|
+
|
|
13
|
+
\sa {Spans and lines}, {Basic histogram}, {Draggable region}
|
|
12
14
|
*/
|
|
13
15
|
|
|
14
16
|
QQS.ShapePath {
|
|
@@ -38,6 +40,7 @@ QQS.ShapePath {
|
|
|
38
40
|
*/
|
|
39
41
|
required property double xMin
|
|
40
42
|
|
|
43
|
+
pathHints: QQS.ShapePath.PathLinear | QQS.ShapePath.PathConvex | QQS.ShapePath.PathSolid
|
|
41
44
|
startX: topLeftPoint.x
|
|
42
45
|
startY: topLeftPoint.y
|
|
43
46
|
strokeColor: "transparent"
|
|
@@ -11,6 +11,8 @@ import QuickGraphLib as QuickGraphLib
|
|
|
11
11
|
\brief Display a colorized image from a 2D array.
|
|
12
12
|
|
|
13
13
|
\note This graph item does not inherit from ShapePath, unlike other graph items.
|
|
14
|
+
|
|
15
|
+
\sa {Color mesh}, {Color mapped images}
|
|
14
16
|
*/
|
|
15
17
|
|
|
16
18
|
QuickGraphLib.ImageView {
|
|
@@ -10,6 +10,8 @@ import QuickGraphLib as QuickGraphLib
|
|
|
10
10
|
\inqmlmodule QuickGraphLib.GraphItems
|
|
11
11
|
\inherits QtQuick::Shapes::ShapePath
|
|
12
12
|
\brief Draw a contour line or fill.
|
|
13
|
+
|
|
14
|
+
\sa {Contours}
|
|
13
15
|
*/
|
|
14
16
|
|
|
15
17
|
QQS.ShapePath {
|
|
@@ -32,6 +34,7 @@ QQS.ShapePath {
|
|
|
32
34
|
capStyle: QQS.ShapePath.RoundCap
|
|
33
35
|
fillColor: "transparent"
|
|
34
36
|
joinStyle: QQS.ShapePath.RoundJoin
|
|
37
|
+
pathHints: QQS.ShapePath.PathLinear
|
|
35
38
|
|
|
36
39
|
PathMultiline {
|
|
37
40
|
paths: root.paths.map(ps => QuickGraphLib.Helpers.mapPoints(ps, root.dataTransform))
|
|
@@ -10,6 +10,8 @@ import QuickGraphLib.GraphItems as QGLGraphItems
|
|
|
10
10
|
\inqmlmodule QuickGraphLib.GraphItems
|
|
11
11
|
\inherits QtQuick::Shapes::ShapePath
|
|
12
12
|
\brief Displays a grid in the background of a graph.
|
|
13
|
+
|
|
14
|
+
\sa {Basic sin graph (without prefabs)}
|
|
13
15
|
*/
|
|
14
16
|
|
|
15
17
|
QQS.ShapePath {
|
|
@@ -48,6 +50,7 @@ QQS.ShapePath {
|
|
|
48
50
|
capStyle: QQS.ShapePath.RoundCap
|
|
49
51
|
fillColor: "transparent"
|
|
50
52
|
joinStyle: QQS.ShapePath.RoundJoin
|
|
53
|
+
pathHints: QQS.ShapePath.PathLinear
|
|
51
54
|
|
|
52
55
|
PathMultiline {
|
|
53
56
|
paths: helper.paths
|
|
@@ -10,6 +10,13 @@ import QuickGraphLib.GraphItems as QGLGraphItems
|
|
|
10
10
|
\inqmlmodule QuickGraphLib.GraphItems
|
|
11
11
|
\inherits QtQuick::Shapes::ShapePath
|
|
12
12
|
\brief Displays a histogram.
|
|
13
|
+
|
|
14
|
+
\warning Rendering of histograms in Qt 6.8 under the curve renderer may include artefacts
|
|
15
|
+
(see \l {https://bugreports.qt.io/browse/QTBUG-133247}{QTBUG-133247}). If this happens,
|
|
16
|
+
switch the renderer of the \l GraphArea back to the geometry renderer. This issue should be fixed
|
|
17
|
+
in a future Qt version.
|
|
18
|
+
|
|
19
|
+
\sa {Basic histogram}
|
|
13
20
|
*/
|
|
14
21
|
|
|
15
22
|
QQS.ShapePath {
|
|
@@ -44,6 +51,7 @@ QQS.ShapePath {
|
|
|
44
51
|
|
|
45
52
|
capStyle: QQS.ShapePath.RoundCap
|
|
46
53
|
joinStyle: QQS.ShapePath.RoundJoin
|
|
54
|
+
pathHints: QQS.ShapePath.PathLinear
|
|
47
55
|
|
|
48
56
|
PathPolyline {
|
|
49
57
|
path: root._helper.path
|
|
@@ -13,19 +13,7 @@ import QuickGraphLib as QuickGraphLib
|
|
|
13
13
|
|
|
14
14
|
Graph a line using a list of X,Y points. The style of the line can be adjusted using the \l {ShapePath::strokeColor} {strokeColor} and \l {ShapePath::strokeWidth} {strokeWidth} properties.
|
|
15
15
|
|
|
16
|
-
\
|
|
17
|
-
GraphArea {
|
|
18
|
-
id: grapharea
|
|
19
|
-
viewRect: Qt.rect(-20, -1.1, 760, 2.2)
|
|
20
|
-
|
|
21
|
-
Line {
|
|
22
|
-
dataTransform: grapharea.dataTransform
|
|
23
|
-
path: Helpers.linspace(0, 720, 100).map(x => Qt.point(x, Math.sin(x / 180 * Math.PI)))
|
|
24
|
-
strokeColor: "red"
|
|
25
|
-
strokeWidth: 2
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
\endqml
|
|
16
|
+
\sa {Basic sin graph}
|
|
29
17
|
*/
|
|
30
18
|
|
|
31
19
|
QQS.ShapePath {
|
|
@@ -47,6 +35,7 @@ QQS.ShapePath {
|
|
|
47
35
|
capStyle: QQS.ShapePath.RoundCap
|
|
48
36
|
fillColor: "transparent"
|
|
49
37
|
joinStyle: QQS.ShapePath.RoundJoin
|
|
38
|
+
pathHints: QQS.ShapePath.PathLinear
|
|
50
39
|
|
|
51
40
|
PathPolyline {
|
|
52
41
|
path: QuickGraphLib.Helpers.mapPoints(root.path, root.dataTransform)
|
|
@@ -9,11 +9,13 @@ import QuickGraphLib.GraphItems as QGLGraphItems
|
|
|
9
9
|
/*!
|
|
10
10
|
\qmltype ImageAxes
|
|
11
11
|
\inqmlmodule QuickGraphLib.PreFabs
|
|
12
|
-
\inherits
|
|
12
|
+
\inherits Item
|
|
13
13
|
\brief Displays an image with axes and a colorbar.
|
|
14
|
+
|
|
15
|
+
\sa {Color mesh}
|
|
14
16
|
*/
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
Item {
|
|
17
19
|
id: root
|
|
18
20
|
|
|
19
21
|
/*!
|
|
@@ -149,9 +151,9 @@ QuickGraphLib.AntialiasingContainer {
|
|
|
149
151
|
property var colors: QuickGraphLib.ColorMaps.colors(root.colorMesh.colormap)
|
|
150
152
|
|
|
151
153
|
stops: colors.map((color, i) => gradStop.createObject(grad, {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
"color": color,
|
|
155
|
+
"position": i / (colors.length - 1)
|
|
156
|
+
}))
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
159
|
QuickGraphLib.Axis {
|
|
@@ -7,13 +7,15 @@ import QuickGraphLib as QuickGraphLib
|
|
|
7
7
|
import QuickGraphLib.GraphItems as QGLGraphItems
|
|
8
8
|
|
|
9
9
|
/*!
|
|
10
|
-
\qmltype
|
|
10
|
+
\qmltype XYAxes
|
|
11
11
|
\inqmlmodule QuickGraphLib.PreFabs
|
|
12
|
-
\inherits
|
|
12
|
+
\inherits Item
|
|
13
13
|
\brief Displays an XY axis with a grid.
|
|
14
|
+
|
|
15
|
+
\sa {Basic sin graph}, {Dark theme sin graph}, {Subgraphs}
|
|
14
16
|
*/
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
Item {
|
|
17
19
|
id: root
|
|
18
20
|
|
|
19
21
|
/*!
|
|
@@ -24,6 +26,10 @@ QuickGraphLib.AntialiasingContainer {
|
|
|
24
26
|
An alias to the \l Rectangle used as the background.
|
|
25
27
|
*/
|
|
26
28
|
property alias background: background
|
|
29
|
+
/*!
|
|
30
|
+
The padding below the XYAxes
|
|
31
|
+
*/
|
|
32
|
+
property int bottomPadding: 15
|
|
27
33
|
/*!
|
|
28
34
|
An alias to the data transform of the graph area.
|
|
29
35
|
|
|
@@ -43,6 +49,10 @@ QuickGraphLib.AntialiasingContainer {
|
|
|
43
49
|
An alias to the graph area's \l Grid.
|
|
44
50
|
*/
|
|
45
51
|
property alias grid: grid
|
|
52
|
+
/*!
|
|
53
|
+
The padding to the left of the XYAxes
|
|
54
|
+
*/
|
|
55
|
+
property int leftPadding: 15
|
|
46
56
|
/*!
|
|
47
57
|
Maximum number of ticks to show on the X axis.
|
|
48
58
|
|
|
@@ -55,6 +65,14 @@ QuickGraphLib.AntialiasingContainer {
|
|
|
55
65
|
\sa Helpers::tickLocator
|
|
56
66
|
*/
|
|
57
67
|
property int numYTicks: 11
|
|
68
|
+
/*!
|
|
69
|
+
The padding to the right of the XYAxes
|
|
70
|
+
*/
|
|
71
|
+
property int rightPadding: 15
|
|
72
|
+
/*!
|
|
73
|
+
The spacing between the title and the axes.
|
|
74
|
+
*/
|
|
75
|
+
property double spacing: 0
|
|
58
76
|
/*!
|
|
59
77
|
The title of the graph.
|
|
60
78
|
*/
|
|
@@ -63,6 +81,10 @@ QuickGraphLib.AntialiasingContainer {
|
|
|
63
81
|
An alias to the title item of the graph (a \l Text).
|
|
64
82
|
*/
|
|
65
83
|
property alias titleItem: titleLabel
|
|
84
|
+
/*!
|
|
85
|
+
The padding above the XYAxes
|
|
86
|
+
*/
|
|
87
|
+
property int topPadding: 15
|
|
66
88
|
/*!
|
|
67
89
|
An alias to the view rect of the graph area.
|
|
68
90
|
|
|
@@ -99,8 +121,11 @@ QuickGraphLib.AntialiasingContainer {
|
|
|
99
121
|
QQL.GridLayout {
|
|
100
122
|
id: axes
|
|
101
123
|
|
|
124
|
+
anchors.bottomMargin: root.bottomPadding
|
|
102
125
|
anchors.fill: parent
|
|
103
|
-
anchors.
|
|
126
|
+
anchors.leftMargin: root.leftPadding
|
|
127
|
+
anchors.rightMargin: root.rightPadding
|
|
128
|
+
anchors.topMargin: root.topPadding
|
|
104
129
|
columnSpacing: 0
|
|
105
130
|
columns: 2
|
|
106
131
|
rowSpacing: 0
|
|
@@ -109,7 +134,8 @@ QuickGraphLib.AntialiasingContainer {
|
|
|
109
134
|
id: titleLabel
|
|
110
135
|
|
|
111
136
|
QQL.Layout.alignment: Qt.AlignCenter
|
|
112
|
-
QQL.Layout.
|
|
137
|
+
QQL.Layout.bottomMargin: root.spacing
|
|
138
|
+
QQL.Layout.columnSpan: axes.columns
|
|
113
139
|
visible: text !== ""
|
|
114
140
|
}
|
|
115
141
|
QuickGraphLib.Axis {
|
|
@@ -6,13 +6,15 @@ import QtQuick
|
|
|
6
6
|
/*!
|
|
7
7
|
\qmltype ScalingContainer
|
|
8
8
|
\inqmlmodule QuickGraphLib
|
|
9
|
-
\inherits
|
|
9
|
+
\inherits Item
|
|
10
10
|
\brief Scales its contents while preserving the aspect ratio.
|
|
11
11
|
|
|
12
12
|
This container applies a scaling factor to its content item that preserves its aspect ratio.
|
|
13
|
+
|
|
14
|
+
\sa {Scaled graph}
|
|
13
15
|
*/
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
Item {
|
|
16
18
|
id: container
|
|
17
19
|
|
|
18
20
|
/*!
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
import QtQuick
|
|
5
|
+
import QtQml.Models as QQM
|
|
6
|
+
import QtQuick.Shapes as QQS
|
|
7
|
+
import QuickGraphLib as QuickGraphLib
|
|
8
|
+
|
|
9
|
+
/*!
|
|
10
|
+
\qmltype ShapeRepeater
|
|
11
|
+
\inqmlmodule QuickGraphLib
|
|
12
|
+
\inherits QtQml::Models::Instantiator
|
|
13
|
+
\brief A \l{Repeater}-like component that works with \l{ShapePath}s.
|
|
14
|
+
|
|
15
|
+
See the \l{Repeater} documentation for the general concept, and how to access data from the \l Instantiator::model.
|
|
16
|
+
|
|
17
|
+
If the ShapeRepeater is a child of the \l GraphArea provided to \l graphArea, then paths
|
|
18
|
+
the ShapeRepeater instantiates will be inserted, in order, immediately after the repeater's
|
|
19
|
+
position in the list of shape paths.
|
|
20
|
+
|
|
21
|
+
\note The ShapeRepeater must temporarily remove the children of the GraphArea in order to add/remove paths it
|
|
22
|
+
instantiates. This is fine for most elements, but \l Repeaters will destroy all of their children when this
|
|
23
|
+
happens. This may cause performance issues or loss of state. If this is an issue, place the Repeater outside
|
|
24
|
+
the GraphArea or inside an \l Item.
|
|
25
|
+
|
|
26
|
+
\sa {Peak buttons}
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
QQM.Instantiator {
|
|
30
|
+
id: root
|
|
31
|
+
|
|
32
|
+
/*!
|
|
33
|
+
The GraphArea to add paths to.
|
|
34
|
+
*/
|
|
35
|
+
required property QQS.Shape graphArea
|
|
36
|
+
|
|
37
|
+
function forceResync() {
|
|
38
|
+
// Workaround for https://bugreports.qt.io/browse/QTBUG-133230 and https://bugreports.qt.io/browse/QTBUG-133231
|
|
39
|
+
if (graphArea.Window.window !== null) {
|
|
40
|
+
let renderer = graphArea.preferredRendererType;
|
|
41
|
+
let otherRenderer = graphArea.preferredRendererType === QQS.Shape.CurveRenderer ? QQS.Shape.GeometryRenderer : QQS.Shape.CurveRenderer;
|
|
42
|
+
graphArea.preferredRendererType = otherRenderer;
|
|
43
|
+
graphArea.ensurePolished();
|
|
44
|
+
graphArea.preferredRendererType = renderer;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
onObjectAdded: (i, obj) => {
|
|
49
|
+
QuickGraphLib.ShapeRepeaterHelper.insertObject(graphArea, root, obj, i);
|
|
50
|
+
forceResync();
|
|
51
|
+
}
|
|
52
|
+
onObjectRemoved: (i, obj) => {
|
|
53
|
+
QuickGraphLib.ShapeRepeaterHelper.removeObject(graphArea, obj);
|
|
54
|
+
forceResync();
|
|
55
|
+
}
|
|
56
|
+
}
|