]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuContourVOI.h
*** empty log message ***
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuContourVOI.h
index 7c5ad734e2216641a478c842edf7926a554d1cf3..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( );     
   };
   
@@ -57,7 +67,7 @@ class /*BBTK_EXPORT*/ ContourVOI
 /// 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();
 //==================================================================
@@ -69,7 +79,11 @@ virtual void bbUserDestructor();
   BBTK_PROCESS(Process);
   void Process();
   BBTK_CREATE_WIDGET(CreateWidget);
-  void CreateWidget();
+  void CreateWidget(wxWindow*);
+
+private:
+       vtkImageData* _img;
+       wxVtkBaseView* _base;
 
 };