double A=bbGetInputA();
double B=bbGetInputB();
- if (bbGetInputIn()!=0)
+ if (bbGetInputIn()!=NULL)
{
+
+ if (filter1!=NULL){
+ mchange->Delete();
+ filter1->Delete();
+ filter2->Delete();
+ filter1 = vtkImageShiftScale::New();
+ filter2 = vtkImageShiftScale::New();
+ mchange = vtkImageChangeInformation::New();
+ }
+
+
int outputformat = bbtkStaticLecture::GetTypeFormat( bbGetInputOutputFormat() , bbGetInputIn() );
bbGetInputIn()->GetScalarRange(range);
bbGetInputIn()->GetSpacing(spc);
BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutSplit,bbtk::WxBlackBox);
BBTK_NAME("LayoutSplit");
BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
- BBTK_DESCRIPTION("(C++,Python) Widget which splits a window in two fixed size parts (wxSplitterWindow)");
+ BBTK_DESCRIPTION("(C++,Python,JavaScript) Widget which splits a window in two fixed size parts (wxSplitterWindow)");
// Already inserted for any WxBlackBox BBTK_CATEGORY("widget");
BBTK_INPUT(LayoutSplit,Widget1,"Upper or left widget",wxWindow*,"");
BBTK_INPUT(LayoutSplit,Widget2,"Lower or right widget",wxWindow*,"");
BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutTab,bbtk::WxBlackBox);
BBTK_NAME("LayoutTab");
BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
- BBTK_DESCRIPTION("(C++, Python) LayoutTab widget (wxNotebook) The label of each 'note book' will be the name of the object it contains");
+ BBTK_DESCRIPTION("(C++,Python,JavaScript) LayoutTab widget (wxNotebook) The label of each 'note book' will be the name of the object it contains");
// Already inserted for any WxBlackBox BBTK_CATEGORY("widget");
BBTK_INPUT(LayoutTab,Widget1,"widget 1",wxWindow*,"");
BBTK_INPUT(LayoutTab,Widget2,"widget 2",wxWindow*,"");