From 91ec7fdec97678b9b403f5e6a823bb2062c43a41 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Tue, 3 Jul 2007 18:38:27 +0000 Subject: More meaningful name for 3D axis directions (bzr r3169) --- src/vanishing-point.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/vanishing-point.h') 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; -- cgit v1.2.3