Преглед изворни кода

Merge pull request #785 from commontk/update-ctkVTKAbstractView-to-set-DepthPeelingForVolumes

ENH: ctkVTKAbstractView: Update setUseDepthPeeling to also enable depth peel for volumes
Jean-Christophe Fillion-Robin пре 7 година
родитељ
комит
fd7a896bd6
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.cpp

+ 3 - 0
Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.cpp

@@ -483,6 +483,9 @@ void ctkVTKAbstractView::setUseDepthPeeling(bool useDepthPeeling)
     }
   this->renderWindow()->SetMultiSamples(useDepthPeeling ? 0 : nSamples);
   renderer->SetUseDepthPeeling(useDepthPeeling ? 1 : 0);
+#if CTK_USE_QVTKOPENGLWIDGET
+  renderer->SetUseDepthPeelingForVolumes(useDepthPeeling);
+#endif
 }
 
 //----------------------------------------------------------------------------