Commit b46128660a71de26f5564b61d23dec9aba8d2542
1 parent
dadfc342
Exists in
master
and in
67 other branches
Rectangle pencil is rotated based only in the orientation not in original orientation
Showing
1 changed file
with
4 additions
and
15 deletions
Show diff stats
invesalius/data/cursor_actors.py
... | ... | @@ -184,21 +184,10 @@ class CursorRectangle: |
184 | 184 | self.orientation = orientation |
185 | 185 | proj = Project() |
186 | 186 | orig_orien = proj.original_orientation |
187 | - if (orig_orien == const.SAGITAL): | |
188 | - if orientation == "CORONAL": | |
189 | - self.actor.RotateY(90) | |
190 | - if orientation == "AXIAL": | |
191 | - self.actor.RotateX(90) | |
192 | - elif(orig_orien == const.CORONAL): | |
193 | - if orientation == "AXIAL": | |
194 | - self.actor.RotateX(270) | |
195 | - if orientation == "SAGITAL": | |
196 | - self.actor.RotateY(90) | |
197 | - else: | |
198 | - if orientation == "CORONAL": | |
199 | - self.actor.RotateX(90) | |
200 | - if orientation == "SAGITAL": | |
201 | - self.actor.RotateY(90) | |
187 | + if orientation == "CORONAL": | |
188 | + self.actor.RotateX(90) | |
189 | + if orientation == "SAGITAL": | |
190 | + self.actor.RotateY(90) | |
202 | 191 | |
203 | 192 | def SetPosition(self, position): |
204 | 193 | x,y,z = position | ... | ... |