Commit 661fb4fe304d83171bb5aa435ebf802963ffdc76
1 parent
04c35339
Exists in
master
and in
68 other branches
FIX: the clipping plane is working when the raycasting is changed
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
invesalius/data/volume.py
... | ... | @@ -134,9 +134,6 @@ class Volume(): |
134 | 134 | self.CalculateHistogram() |
135 | 135 | self.exist = 1 |
136 | 136 | |
137 | - if (self.plane and self.plane_on): | |
138 | - self.plane.Enable() | |
139 | - | |
140 | 137 | def __load_preset_config(self): |
141 | 138 | self.config = prj.Project().raycasting_preset |
142 | 139 | |
... | ... | @@ -461,6 +458,7 @@ class Volume(): |
461 | 458 | #volume_mapper.AutoAdjustSampleDistancesOff() |
462 | 459 | volume_mapper.SetInput(image2) |
463 | 460 | volume_mapper.IntermixIntersectingGeometryOn() |
461 | + #volume_mapper.SetBlendModeToMaximumIntensity() | |
464 | 462 | |
465 | 463 | volume_mapper.AddObserver("ProgressEvent", lambda obj,evt: |
466 | 464 | update_progress(volume_mapper, "Mapper ...")) |
... | ... | @@ -623,13 +621,13 @@ class CutPlane: |
623 | 621 | def Enable(self, evt_pubsub=None): |
624 | 622 | self.plane_widget.On() |
625 | 623 | self.plane_actor.VisibilityOn() |
626 | - self.volume_mapper.RemoveClippingPlane(self.plane) | |
624 | + self.volume_mapper.AddClippingPlane(self.plane) | |
627 | 625 | ps.Publisher().sendMessage('Render volume viewer', None) |
628 | 626 | |
629 | 627 | def Disable(self,evt_pubsub=None): |
630 | 628 | self.plane_widget.Off() |
631 | 629 | self.plane_actor.VisibilityOff() |
632 | - self.volume_mapper.AddClippingPlane(self.plane) | |
630 | + self.volume_mapper.RemoveClippingPlane(self.plane) | |
633 | 631 | ps.Publisher().sendMessage('Render volume viewer', None) |
634 | 632 | |
635 | 633 | def Reset(self, evt_pubsub=None): | ... | ... |