From fb491e2d6b0efcf65332bd13baf1bca429fdfe82 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Mon, 6 Aug 2007 08:01:03 +0000 Subject: Draw perspective lines; provide shortcuts to toggle their visibility and the corners where they are attached (bzr r3393) --- src/vanishing-point.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/vanishing-point.h') diff --git a/src/vanishing-point.h b/src/vanishing-point.h index 76299541a..98788f512 100644 --- a/src/vanishing-point.h +++ b/src/vanishing-point.h @@ -118,10 +118,16 @@ public: SPDesktop *desktop; GList *draggers; - //GSList *lines; + GSList *lines; void updateDraggers (); - //void updateLines (); + void updateLines (); + void updateBoxHandles (); + void drawLinesForFace (const SP3DBox *box, Box3D::Axis axis); //, guint corner1, guint corner2, guint corner3, guint corner4); + bool show_lines; /* whether perspective lines are drawn at all */ + guint front_or_rear_lines; /* whether we draw perspective lines from all corners or only the + front/rear corners (indicated by the first/second bit, respectively */ + inline bool hasEmptySelection() { return this->selection->isEmpty(); } bool allBoxesAreSelected (VPDragger *dragger); @@ -134,7 +140,7 @@ public: private: //void deselect_all(); - //void addLine (NR::Point p1, NR::Point p2, guint32 rgba); + void addLine (NR::Point p1, NR::Point p2, guint32 rgba); Inkscape::Selection *selection; sigc::connection sel_changed_connection; -- cgit v1.2.3