From: Eduardo DAVILA Date: Thu, 14 Jun 2018 17:25:55 +0000 (+0200) Subject: #3199 creaMaracasVisu Feature New Normal - size colorBart VisuColorLayerImageView X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=75d79aeb1ea13f86ff23da48432f3c142420670f;p=creaMaracasVisu.git #3199 creaMaracasVisu Feature New Normal - size colorBart VisuColorLayerImageView --- diff --git a/bbtk/src/bbcreaMaracasVisuColorLayerImageView.cxx b/bbtk/src/bbcreaMaracasVisuColorLayerImageView.cxx index 483943e..e63f5da 100644 --- a/bbtk/src/bbcreaMaracasVisuColorLayerImageView.cxx +++ b/bbtk/src/bbcreaMaracasVisuColorLayerImageView.cxx @@ -53,7 +53,6 @@ void ColorLayerImageView::Process() clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 1 , bbGetInputWxVtkBaseView1() ); clivp->GetColorLayerImageViewManager()->SetwxVtkBaseView( 2 , bbGetInputWxVtkBaseView2() ); - std::vector range = bbGetInputlstRangeForColorBar(); clivp->GetColorLayerImageViewManager()->SetRangeForColorBar( range ); @@ -69,11 +68,9 @@ void ColorLayerImageView::Process() std::vector 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) ); diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx index 06a085a..5140983 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx @@ -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( );