]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.cxx
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMaracas_N_ViewersWidget.cxx
index 4ad8c77b282f5c3c39b0d85dda5d6b0c900c0e74..fbaee8e43f7769532d6663eb2065fe1294460365 100644 (file)
@@ -3,8 +3,8 @@
   Program:   wxMaracas
   Module:    $RCSfile: wxMaracas_N_ViewersWidget.cxx,v $
   Language:  C++
-  Date:      $Date: 2009/06/05 06:07:39 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2009/11/30 20:52:51 $
+  Version:   $Revision: 1.13 $
 
   Copyright: (c) 2002, 2003
   License:
 //-----------------------------------------------------------------------------------
  void wxMaracas_N_ViewersWidget::SetImage( vtkImageData *image )
  {
-        if (wxwindow1!=NULL) { 
-                
-               wxwindow1->SetImage(image); 
-       }
+        if (wxwindow1!=NULL) { wxwindow1->SetImage(image); }
         if (wxwindow2!=NULL) { wxwindow2->SetImage(image); } 
         if (wxwindow3!=NULL) { wxwindow3->SetImage(image); }
         if (wxwindow4!=NULL) { wxwindow4->SetImage(image); }
+ }
 
-
+//-----------------------------------------------------------------------------------
+ void wxMaracas_N_ViewersWidget::ConfigureVTK()
+ {
+        if (wxwindow1!=NULL) { wxwindow1->ConfigureVTK(); }
+        if (wxwindow2!=NULL) { wxwindow2->ConfigureVTK(); }
+        if (wxwindow3!=NULL) { wxwindow3->ConfigureVTK(); }
+        if (wxwindow4!=NULL) { wxwindow4->ConfigureVTK(); }
  }
 
 //-----------------------------------------------------------------------------------
@@ -282,4 +286,47 @@ double wxMaracas_N_ViewersWidget :: GetZ()
 //     return wxwindow1->GetZ();
 }
 
+void wxMaracas_N_ViewersWidget::setColorTransferFunction(vtkColorTransferFunction* colortable){
+    if (wxwindow1!=NULL) {
+               wxwindow1->setColorTransferFunction(colortable);
+       }
+       if (wxwindow2!=NULL) {
+               wxwindow2->setColorTransferFunction(colortable);
+       }
+       if (wxwindow3!=NULL) {
+               wxwindow3->setColorTransferFunction(colortable);
+       }
+       if (wxwindow4!=NULL) {
+               wxwindow4->setColorTransferFunction(colortable);
+       }
+}
+
+void wxMaracas_N_ViewersWidget::setWindowLevel(double level){
+       if (wxwindow1!=NULL) {
+               wxwindow1->setWindowLevel(level);
+       }
+       if (wxwindow2!=NULL) {
+               wxwindow2->setWindowLevel(level);
+       }
+       if (wxwindow3!=NULL) {
+               wxwindow3->setWindowLevel(level);
+       }
+       if (wxwindow4!=NULL) {
+               wxwindow4->setWindowLevel(level);
+       }
+}
+void wxMaracas_N_ViewersWidget::setColorLevel(double level){
+       if (wxwindow1!=NULL) {
+               wxwindow1->setColorLevel(level);
+       }
+       if (wxwindow2!=NULL) {
+               wxwindow2->setColorLevel(level);
+       }
+       if (wxwindow3!=NULL) {
+               wxwindow3->setColorLevel(level);
+       }
+       if (wxwindow4!=NULL) {
+               wxwindow4->setColorLevel(level);
+       }
+}