summaryrefslogtreecommitdiffstats
path: root/src/vanishing-point.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-07-03 18:38:27 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-07-03 18:38:27 +0000
commit91ec7fdec97678b9b403f5e6a823bb2062c43a41 (patch)
tree260db20d7e9b4aeef731058007d04b8222a82f73 /src/vanishing-point.h
parentMake 3D axes correspond to places in binary representation (allows for more g... (diff)
downloadinkscape-91ec7fdec97678b9b403f5e6a823bb2062c43a41.tar.gz
inkscape-91ec7fdec97678b9b403f5e6a823bb2062c43a41.zip
More meaningful name for 3D axis directions
(bzr r3169)
Diffstat (limited to 'src/vanishing-point.h')
-rw-r--r--src/vanishing-point.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vanishing-point.h b/src/vanishing-point.h
index de06002e4..3be5d085e 100644
--- a/src/vanishing-point.h
+++ b/src/vanishing-point.h
@@ -24,7 +24,7 @@ enum VPState {
// The X-/Y-/Z-axis corresponds to the first/second/third digit
// in binary representation, respectively.
-enum PerspDir {
+enum Axis {
X = 1,
Y = 2,
Z = 4,
@@ -33,12 +33,12 @@ enum PerspDir {
/** Given two axis directions out of {X, Y, Z}, returns the remaining one */
-inline Box3D::PerspDir third_axis_direction (Box3D::PerspDir dir1, Box3D::PerspDir dir2) {
- return (Box3D::PerspDir) ((dir1 + dir2) ^ 0x7);
+inline Box3D::Axis third_axis_direction (Box3D::Axis dir1, Box3D::Axis dir2) {
+ return (Box3D::Axis) ((dir1 + dir2) ^ 0x7);
}
-// 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() {};
@@ -63,7 +63,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;