]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx
#3546 bug ColorLayer with images all 0
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / LayerImageBase.cxx
index 1b3bec6e4b4ff600f4c88364639b010583fd7045..3831807b3c21cfc20ddc8b954c54ae232011942e 100644 (file)
@@ -459,7 +459,6 @@ void LayerImageBase::onThreshold()
                        directionViewer =  wxvtk2dbasevie->GetDirection();
                } // ParallelProjection
 
-
                if (!GetActorPresent())
                {
                        if (_thresholdTable==NULL)
@@ -497,6 +496,7 @@ void LayerImageBase::onThreshold()
                                        _thresholdActor->SetPosition( 0,0, -900-1 );
                                }
                        } // _thresholdActor
+
                        _baseView->GetRenderer()->AddActor( _thresholdActor );
                        _baseView->GetRenderer()->AddActor2D( _scalarbarActor );
                        _actorPresent = true;
@@ -563,7 +563,7 @@ void LayerImageBase::onThreshold()
                _thresholdMapper->Update();
                _thresholdActor->SetInputData( _thresholdMapper->GetOutput() );
 #endif
-               
+
                _thresholdActor->SetOpacity(_opacity);
                _scalarbarActor->SetLookupTable( _thresholdTable );
 //             _scalarbarActor->SetLookupTable( _thresholdMapper->GetLookupTable() );
@@ -573,11 +573,8 @@ void LayerImageBase::onThreshold()
                _scalarbarActor->GetLabelTextProperty()->SetFontSize(fontsize/2);
 //             _scalarbarActor->SetTextPad(4);  ??
     } // if _image
-            
 }
 
-
-
 //----------------------------------------------------------------------------
 void LayerImageBase::onThresholdChange()
 {