]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuContourVOI.h
BUG interaction ROI-creation line, rectangle, circle,
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuContourVOI.h
index 76d61c171de40a8b8f584bf18db5c4f552255ac5..7f134ea4d463742b619ca9823dedbfe313990764 100644 (file)
@@ -19,7 +19,7 @@ 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
@@ -31,11 +31,21 @@ namespace bbcreaMaracasVisu
 
                ContourVOIWidget* GetContourVOIWidget();
 
+           void setImageData(vtkImageData * imagedata);
+               void setBaseView(wxVtkBaseView * wxvtkbaseview);
+
+               void initializeVOIWidget();
+
        private:
 
 //             ContourVOI                      *mbbViewerMPR;
                ContourVOIWidget        *mcontourvoiwidget;
 
+               wxVtkBaseView * wxvtkbaseview;
+               vtkImageData * imagedata;
+
+               
+
        DECLARE_EVENT_TABLE( );     
   };
   
@@ -71,6 +81,10 @@ virtual void bbUserDestructor();
   BBTK_CREATE_WIDGET(CreateWidget);
   void CreateWidget(wxWindow*);
 
+private:
+       vtkImageData* _img;
+       wxVtkBaseView* _base;
+
 };
 
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ContourVOI,bbtk::WxBlackBox);