From 2d9beb8ef3b8fb2ac9fa8eb73d697f707110a678 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 21 Sep 2010 13:26:25 +0000 Subject: [PATCH] Add function to resive the grid --- GraphicsView/include/CGAL/Qt/RegularGridGraphicsItem.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GraphicsView/include/CGAL/Qt/RegularGridGraphicsItem.h b/GraphicsView/include/CGAL/Qt/RegularGridGraphicsItem.h index 08aa28c4b3b..34dfb1af668 100644 --- a/GraphicsView/include/CGAL/Qt/RegularGridGraphicsItem.h +++ b/GraphicsView/include/CGAL/Qt/RegularGridGraphicsItem.h @@ -100,6 +100,13 @@ public: update(); } + void setDelta(double x, double y) + { + dx = x; + dy = y; + update(); + } + protected: void updateBoundingBox(); double dx, dy; @@ -119,7 +126,7 @@ protected: visible_edges(true), visible_vertices(true) { setVerticesPen(QPen(::Qt::red, 3.)); - setZValue(3); + setZValue(-1); } template