Code

Filter effects dialog:
[inkscape.git] / src / vanishing-point.h
index 3be5d085ee35ce3733bf3d74e7272b2ea06eef2c..e6c106481f0063d625c8129a59245c5792a0dcee 100644 (file)
@@ -13,7 +13,9 @@
 #define SEEN_VANISHING_POINT_H
 
 #include "libnr/nr-point.h"
-#include "line-geometry.h"
+#include "axis-manip.h"
+
+#include "line-geometry.h" // TODO: Remove this include as soon as we don't need create_canvas_(point|line) any more.
 
 namespace Box3D {
 
@@ -22,22 +24,6 @@ enum VPState {
     VP_INFINITE    // perspective lines are parallel
 };
 
-// The X-/Y-/Z-axis corresponds to the first/second/third digit
-// in binary representation, respectively.
-enum Axis {
-    X = 1,
-    Y = 2,
-    Z = 4,
-    NONE = 0
-};
-
-
-/** Given two axis directions out of {X, Y, Z}, returns the remaining one */
-inline Box3D::Axis third_axis_direction (Box3D::Axis dir1, Box3D::Axis dir2) {
-    return (Box3D::Axis) ((dir1 + dir2) ^ 0x7);
-}
-
-
 // FIXME: Store the Axis of the VP inside the class
 class VanishingPoint : public NR::Point {
 public: