summaryrefslogtreecommitdiffstats
path: root/src/perspective3d.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-08-06 07:37:24 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-08-06 07:37:24 +0000
commitde43f9fc6fc4f6f8e716924c7c6f1242d4b036a3 (patch)
tree8b0b862bd0b0eea74d9e1cdc04c7b833df75c54c /src/perspective3d.h
parentWorkaround for some segfaults: Store perspectives globally instead of in each... (diff)
downloadinkscape-de43f9fc6fc4f6f8e716924c7c6f1242d4b036a3.tar.gz
inkscape-de43f9fc6fc4f6f8e716924c7c6f1242d4b036a3.zip
First stage of draggable vanishing points (no snapping/unsnapping yet)
(bzr r3391)
Diffstat (limited to 'src/perspective3d.h')
-rw-r--r--src/perspective3d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/perspective3d.h b/src/perspective3d.h
index 43b0ca3d3..c3e07b23b 100644
--- a/src/perspective3d.h
+++ b/src/perspective3d.h
@@ -30,6 +30,7 @@ public:
bool operator== (Perspective3D const &other);
VanishingPoint *get_vanishing_point (Box3D::Axis const dir);
+ Axis get_axis_of_VP (VanishingPoint *vp);
void set_vanishing_point (Box3D::Axis const dir, VanishingPoint const &pt);
void set_vanishing_point (Box3D::Axis const dir, gdouble pt_x, gdouble pt_y, gdouble dir_x, gdouble dir_y, VPState st);
void add_box (SP3DBox *box);
@@ -57,6 +58,7 @@ private:
};
Perspective3D * get_persp_of_box (const SP3DBox *box);
+Perspective3D * get_persp_of_VP (const VanishingPoint *vp);
NR::Point perspective_intersection (NR::Point pt1, Box3D::Axis dir1, NR::Point pt2, Box3D::Axis dir2, Perspective3D *persp);
NR::Point perspective_line_snap (NR::Point pt, Box3D::Axis dir, NR::Point ext_pt, Perspective3D *persp);