class wxWidgetVOI : public wxPanel
{
public:
- wxWidgetVOI(wxWindow* parent, wxVtkBaseView *wxvtkbaseview, vtkImageData *imagedata);
+ wxWidgetVOI(wxWindow* parent, wxVtkBaseView *wxvtkbaseview=NULL, vtkImageData *imagedata=NULL);
~wxWidgetVOI();
//if the MPR had generated the refresh event
ContourVOIWidget* GetContourVOIWidget();
+ void setImageData(vtkImageData * imagedata);
+ void setBaseView(wxVtkBaseView * wxvtkbaseview);
+
+ void initializeVOIWidget();
+
private:
// ContourVOI *mbbViewerMPR;
ContourVOIWidget *mcontourvoiwidget;
+ wxVtkBaseView * wxvtkbaseview;
+ vtkImageData * imagedata;
+
+
+
DECLARE_EVENT_TABLE( );
};
/// User callback called in the box contructor
virtual void bbUserConstructor();
/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor();
+virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
/// User callback called in the box destructor
virtual void bbUserDestructor();
//==================================================================
BBTK_PROCESS(Process);
void Process();
BBTK_CREATE_WIDGET(CreateWidget);
- void CreateWidget();
+ void CreateWidget(wxWindow*);
+
+private:
+ vtkImageData* _img;
+ wxVtkBaseView* _base;
};