diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-08-17 16:22:23 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-08-17 16:22:23 +0000 |
| commit | 187526a28b0756452e8701e015c30b6ffc9e6e28 (patch) | |
| tree | dc8570104562a4843cc8a539877ae1719129a163 /src/perspective-line.h | |
| parent | Make sure style is invalidated when setting fill/stroke color in text objects (diff) | |
| download | inkscape-187526a28b0756452e8701e015c30b6ffc9e6e28.tar.gz inkscape-187526a28b0756452e8701e015c30b6ffc9e6e28.zip | |
Draw perspective lines for infinite VPs, too (they are updated during scrolling or zooming); don't create knots for infinite VPs on the canvas
(bzr r3495)
Diffstat (limited to 'src/perspective-line.h')
| -rw-r--r-- | src/perspective-line.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/perspective-line.h b/src/perspective-line.h index 8f218803b..cf8f2ba54 100644 --- a/src/perspective-line.h +++ b/src/perspective-line.h @@ -17,6 +17,8 @@ #include "box3d-context.h" #include <glib.h> +class SPDesktop; + namespace Box3D { class PerspectiveLine : public Box3D::Line { @@ -30,7 +32,8 @@ public: PerspectiveLine (NR::Point const &pt, Box3D::Axis const axis, Perspective3D *perspective); NR::Maybe<NR::Point> intersect (Line const &line); // FIXME: Can we make this return only a NR::Point to remove the extra method meet()? NR::Point meet (Line const &line); - + NR::Maybe<NR::Point> intersection_with_viewbox (SPDesktop *desktop); + private: Box3D::Axis vp_dir; // direction of the associated VP Perspective3D *persp; |
