]> Creatis software - bbtk.git/commitdiff
2886 BBTK Bug New Normal - Refresh vtk:VolumeRenderer box
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 10 Mar 2016 14:58:41 +0000 (15:58 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 10 Mar 2016 14:58:41 +0000 (15:58 +0100)
packages/vtk/src/bbvtkVolumeRenderer.cxx

index dcf9f4c0efce099a0b7e3861baffda3dec4915f5..a804e1507099a2645db27d23fbc40d8e3ff8e59f 100644 (file)
@@ -121,41 +121,43 @@ namespace bbvtk
    }
 //---------------------------------------------------------------------
 
-   void VolumeRenderer::Process()
-   {
-     bool changed = false;
-     if ( bbGetInputStatus("In") != bbtk::UPTODATE )
-       {
-        mMapper->SetInput( bbGetInputIn() );
-        changed = true;
-       }
-
-          if ( ( bbGetInputStatus("ColorFunction") != bbtk::UPTODATE ) &&
+void VolumeRenderer::Process()
+{
+    bool changed = false;
+    if ( bbGetInputStatus("In") != bbtk::UPTODATE )
+       {
+               mMapper->SetInput( bbGetInputIn() );
+               changed = true;
+    }
+
+       if ( ( bbGetInputStatus("ColorFunction") != bbtk::UPTODATE ) &&
          ( bbGetInputColorFunction() != 0 ) )
-       {
-        mVolume->GetProperty()->SetColor( bbGetInputColorFunction() );
-        changed = true;
-       }
+    {
+               mVolume->GetProperty()->SetColor( bbGetInputColorFunction() );
+               changed = true;
+    }
 
      if ( ( bbGetInputStatus("ColorFunction1") != bbtk::UPTODATE ) &&
          ( bbGetInputColorFunction1() != 0 ) )
-       {
-        mVolume->GetProperty()->SetColor( bbGetInputColorFunction1() );
-        changed = true;
-       }
+     {
+               mVolume->GetProperty()->SetColor( bbGetInputColorFunction1() );
+               changed = true;
+     }
 
      if ( ( bbGetInputStatus("OpacityFunction") != bbtk::UPTODATE ) &&
          ( bbGetInputOpacityFunction() != 0 ) )
-       {
-        mVolume->GetProperty()->SetScalarOpacity(bbGetInputOpacityFunction());
-        changed = true;
-       }
-    
-     if (changed) mMapper->Update();
+     {
+               mVolume->GetProperty()->SetScalarOpacity(bbGetInputOpacityFunction());
+               changed = true;
+     }
+
+       if (changed)
+       { 
+               mMapper->Update();
+       }
+       bbSetOutputOut(mVolume); 
+}
 
-        bbSetOutputOut(mVolume);
-          
-   }
 
 }//namespace bbtk