#include <vtkImageData.h>
+#include <vtkExtractVOI.h>
#include "Contour/ContourVOIWidget.h"
wxVtkBaseView * wxvtkbaseview;
vtkImageData * imagedata;
+
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ContourVOI,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(Title,std::string);
BBTK_DECLARE_INPUT(In, vtkImageData*);
BBTK_DECLARE_INPUT(wxVtkBaseView, wxVtkBaseView*);
BBTK_DECLARE_OUTPUT(Index,std::string);
BBTK_DECLARE_OUTPUT(Size,std::string);
+ BBTK_DECLARE_OUTPUT(VOI,vtkImageData*);
BBTK_PROCESS(Process);
void Process();
BBTK_CREATE_WIDGET(CreateWidget);
private:
vtkImageData* _img;
wxVtkBaseView* _base;
+ vtkExtractVOI* _extract;
};
BBTK_INPUT(ContourVOI,wxVtkBaseView,"maracas visu wxVtkBaseView",wxVtkBaseView*,"");
BBTK_OUTPUT(ContourVOI,Index, "Index" , std::string,"");
BBTK_OUTPUT(ContourVOI,Size, "Size" , std::string,"");
+ BBTK_OUTPUT(ContourVOI,VOI,"Region of interest",vtkImageData*,"");
BBTK_END_DESCRIBE_BLACK_BOX(ContourVOI);
}
// EO namespace bbcreaMaracasVisu