]> Creatis software - creaMaracasVisu.git/commitdiff
#3199 creaMaracasVisu Feature New Normal - size colorBart VisuColorLayerImageView
authorEduardo DAVILA <davila@localhost.localdomain>
Thu, 14 Jun 2018 17:25:55 +0000 (19:25 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Thu, 14 Jun 2018 17:25:55 +0000 (19:25 +0200)
bbtk/src/bbcreaMaracasVisuColorLayerImageView.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx

index 483943e2993b19b715ca3df8e54ecbe29aeb4672..e63f5da2d4a14ca66c3ab32be1463cd1541dbc7b 100644 (file)
@@ -53,7 +53,6 @@ void ColorLayerImageView::Process()
     clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 1 , bbGetInputWxVtkBaseView1() );
     clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 2 , bbGetInputWxVtkBaseView2() );
 
-
     std::vector<double> range = bbGetInputlstRangeForColorBar();
     clivp->GetColorLayerImageViewManager()->SetRangeForColorBar( range );
 
@@ -69,11 +68,9 @@ void ColorLayerImageView::Process()
     std::vector<double> transparence_level_boundaries = bbGetInputlstTransparenceBoundaries();
     clivp->GetColorLayerImageViewManager()->SetBaseTransparence( transparence_level_boundaries );
 
     clivp->GetColorLayerImageViewManager()->SetPlainOrGradientColor( bbGetInputPlainOrGradientColor() );
     clivp->SetFittingMode( bbGetInputFittingMode() );
 
-
     clivp->SetImage( bbGetInputIn() );
 
     bbSetOutputNewImage( clivp->GetColorLayerImageViewManager()->GetImageChangeInformation(0) );
index 06a085a5634fbf8c4bb87aabbc3a31be2fa09484..51409832683b8cddf47972ce4209b37fec09ba04 100644 (file)
@@ -448,6 +448,8 @@ void LayerImageBase::onThreshold()
                                } else {
                                        _scalarbarActor->SetDisplayPosition(0,0);
                                }
+                               _scalarbarActor->SetHeight(0.4);        //default  0.8
+                               _scalarbarActor->SetWidth(0.08);    //default  0.17
 
                                _thresholdActor->SetOpacity( 1 );
                                _thresholdActor->InterpolateOn(  );