X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=bbtk%2Fsrc%2FbbmaracasvisuContourVOI.h;h=7f134ea4d463742b619ca9823dedbfe313990764;hb=0b747197355924160b90ad9e4d9c7499fcef7503;hp=7c5ad734e2216641a478c842edf7926a554d1cf3;hpb=800f29fd7e4cc70d8706b3075454e63f0b1a5717;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuContourVOI.h b/bbtk/src/bbmaracasvisuContourVOI.h index 7c5ad73..7f134ea 100644 --- a/bbtk/src/bbmaracasvisuContourVOI.h +++ b/bbtk/src/bbmaracasvisuContourVOI.h @@ -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; };