#ifdef _USE_WXWIDGETS_
-#ifndef __bbmaracasvisuContourVOI_h_INCLUDED__
-#define __bbmaracasvisuContourVOI_h_INCLUDED__
+#ifndef __bbcreaMaracasVisuContourVOI_h_INCLUDED__
+#define __bbcreaMaracasVisuContourVOI_h_INCLUDED__
#include "bbtkWxBlackBox.h"
#include "Contour/ContourVOIWidget.h"
-namespace bbmaracasvisu
+namespace bbcreaMaracasVisu
{
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;
};
BBTK_OUTPUT(ContourVOI,Size, "Size" , std::string,"");
BBTK_END_DESCRIBE_BLACK_BOX(ContourVOI);
}
-// EO namespace bbmaracasvisu
+// EO namespace bbcreaMaracasVisu
-#endif // __bbmaracasvisuContourVOI_h_INCLUDED__
+#endif // __bbcreaMaracasVisuContourVOI_h_INCLUDED__
#endif // _USE_WXWIDGETS_