diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-08-06 08:01:03 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-08-06 08:01:03 +0000 |
| commit | fb491e2d6b0efcf65332bd13baf1bca429fdfe82 (patch) | |
| tree | eb1661358ca5e69f8b45b6ae305c87e99be4efae /src/vanishing-point.h | |
| parent | (Un-)Snapping of VPs by Shift-dragging; this makes it possible to separate pe... (diff) | |
| download | inkscape-fb491e2d6b0efcf65332bd13baf1bca429fdfe82.tar.gz inkscape-fb491e2d6b0efcf65332bd13baf1bca429fdfe82.zip | |
Draw perspective lines; provide shortcuts to toggle their visibility and the corners where they are attached
(bzr r3393)
Diffstat (limited to 'src/vanishing-point.h')
| -rw-r--r-- | src/vanishing-point.h | 12 |
1 files changed, 9 insertions, 3 deletions
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; |
