bbSetOutputNewImage( clivp->GetColorLayerImageViewManager()->GetImageChangeInformation(0) );
bbSetOutputLookupTable( clivp->GetColorLayerImageViewManager()->GetLookupTable(0) );
bbSetOutputOutOpacity( clivp->GetOpacity() );
+ bbSetOutputInterpolation( clivp->GetInterpolation() );
if (firsttime==true)
{
firsttime=false;
BBTK_DECLARE_OUTPUT(NewImage,vtkImageData*);
BBTK_DECLARE_OUTPUT(LookupTable,vtkScalarsToColors*);
BBTK_DECLARE_OUTPUT(OutOpacity,int);
+ BBTK_DECLARE_OUTPUT(Interpolation,bool);
BBTK_PROCESS(Process);
void Process();
BBTK_CREATE_WIDGET(CreateWidget);
BBTK_OUTPUT(ColorLayerImageView,NewImage,"Image with correct Spacing",vtkImageData*,"");
BBTK_OUTPUT(ColorLayerImageView,LookupTable,"LookupTable",vtkScalarsToColors*,"");
BBTK_OUTPUT(ColorLayerImageView,OutOpacity,"Opacity",int,"");
+ BBTK_OUTPUT(ColorLayerImageView,Interpolation,"Interpolation",bool,"");
BBTK_END_DESCRIBE_BLACK_BOX(ColorLayerImageView);
_colorLayerImageViewManager->SetBaseTransparence ( transparence_level_boundaries );
_colorLayerImageViewManager->SetPlainOrGradientColor ( bbGetInputPlainOrGradientColor() );
_colorLayerImageViewManager->onThresholdChangeOpacity ( bbGetInputOpacity() );
+ _colorLayerImageViewManager->onThresholdInterpolation ( bbGetInputInterpolation() );
_colorLayerImageViewManager->SetActive ( bbGetInputActive() );
int fitting_mode=3;
bbSetInputIn(NULL);
bbSetInputActive(true);
bbSetInputOpacity(100);
+ bbSetInputInterpolation(true);
bbSetInputPlainOrGradientColor(false);
// bbSetInputTypeControlsInterface(1);
bbSetInputWxVtkBaseView(NULL);
BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_DECLARE_INPUT(Active,bool);
BBTK_DECLARE_INPUT(Opacity,int);
+ BBTK_DECLARE_INPUT(Interpolation,bool);
// BBTK_DECLARE_INPUT(TypeControlsInterface,int);
BBTK_DECLARE_INPUT(WxVtkBaseView,wxVtkBaseView *);
BBTK_DECLARE_INPUT(WxVtkBaseView1,wxVtkBaseView *);
BBTK_INPUT(ColorLayerImageView2,In,"Input Image",vtkImageData*,"");
BBTK_INPUT(ColorLayerImageView2,Active,"Active True/False (default True)",bool,"");
BBTK_INPUT(ColorLayerImageView2,Opacity,"(default 100) 0..100",int,"");
+ BBTK_INPUT(ColorLayerImageView2,Interpolation,"(default true) true/false",bool,"");
// BBTK_INPUT(ColorLayerImageView2,TypeControlsInterface,"1 (default) All controls, 2 just transparency",int,"");
BBTK_INPUT(ColorLayerImageView2,WxVtkBaseView," 0 creaMaracasVisuViewer viewer XY,YZ ou XZ",wxVtkBaseView*,"");
BBTK_INPUT(ColorLayerImageView2,WxVtkBaseView1," 1 creaMaracasVisuViewer viewer XY,YZ ou XZ",wxVtkBaseView*,"");
} // if interactor
}
-}
-// EO namespace bbcreaMaracasVisu
+}// EO namespace bbcreaMaracasVisu
//: wxPanel(parent, -1, wxDefaultPosition, wxSize(600,100), wxBORDER_SUNKEN)
: wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
{
+ _interpolationCheckBox=NULL;
_spcBase[0] = _spcBase[1] = _spcBase[2] = 0;
_dimBase[0] = _dimBase[1] = _dimBase[2] = 0;
_cb_ShowHide = NULL;
return _opacity->GetValue();
}
+//----------------------------------------------------------------------------
+bool ColorLayerImageViewPanel::GetInterpolation()
+{
+ if (_interpolationCheckBox!=NULL)
+ {
+ return _interpolationCheckBox->GetValue();
+ } else {
+ return false;
+ } // if _interpolationCheckBox
+}
+
+
//----------------------------------------------------------------------------
void ColorLayerImageViewPanel::ChangeOpacity()
{
ColorLayerImageViewPanel(wxWindow * parent, int min, int max,int opacity, int type);
~ColorLayerImageViewPanel();
void onThresholdStop();
- int GetOpacity();
+ int GetOpacity();
+ bool GetInterpolation();
+
virtual void ChangeOpacity();
ColorLayerImageViewManager* GetColorLayerImageViewManager();
//EED01 ColorLayerImageView* GetColorLayerImageView();