Code

Filter effects dialog:
[inkscape.git] / src / vanishing-point.h
index 4770c74f1b74e7d00ada0853c1bbf3a984482816..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,14 +24,7 @@ enum VPState {
     VP_INFINITE    // perspective lines are parallel
 };
 
-enum PerspDir {
-    X,
-    Y,
-    Z,
-    NONE
-};
-
-// FIXME: Store the PerspDir of the VP inside the class
+// FIXME: Store the Axis of the VP inside the class
 class VanishingPoint : public NR::Point {
 public:
     inline VanishingPoint() : NR::Point() {};
@@ -54,7 +49,7 @@ public:
 
     bool is_finite();
     VPState toggle_parallel();
-    void draw(PerspDir const axis); // Draws a point on the canvas if state == VP_FINITE
+    void draw(Box3D::Axis const axis); // Draws a point on the canvas if state == VP_FINITE
     //inline VPState state() { return state; }
        
     VPState state;