From b46128660a71de26f5564b61d23dec9aba8d2542 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Thu, 28 Apr 2011 17:36:30 +0000 Subject: [PATCH] Rectangle pencil is rotated based only in the orientation not in original orientation --- invesalius/data/cursor_actors.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/invesalius/data/cursor_actors.py b/invesalius/data/cursor_actors.py index 3f533a1..d715a14 100644 --- a/invesalius/data/cursor_actors.py +++ b/invesalius/data/cursor_actors.py @@ -184,21 +184,10 @@ class CursorRectangle: self.orientation = orientation proj = Project() orig_orien = proj.original_orientation - if (orig_orien == const.SAGITAL): - if orientation == "CORONAL": - self.actor.RotateY(90) - if orientation == "AXIAL": - self.actor.RotateX(90) - elif(orig_orien == const.CORONAL): - if orientation == "AXIAL": - self.actor.RotateX(270) - if orientation == "SAGITAL": - self.actor.RotateY(90) - else: - if orientation == "CORONAL": - self.actor.RotateX(90) - if orientation == "SAGITAL": - self.actor.RotateY(90) + if orientation == "CORONAL": + self.actor.RotateX(90) + if orientation == "SAGITAL": + self.actor.RotateY(90) def SetPosition(self, position): x,y,z = position -- libgit2 0.21.2