X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuContourVOI.h;h=7f134ea4d463742b619ca9823dedbfe313990764;hb=0b747197355924160b90ad9e4d9c7499fcef7503;hp=4f55e46e71c3cab1c1a7a5ab7b6c01cea7f906ac;hpb=44e4be7013ea566bd2bdefb9d48e1da0071c3d91;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuContourVOI.h b/bbtk/src/bbmaracasvisuContourVOI.h index 4f55e46..7f134ea 100644 --- a/bbtk/src/bbmaracasvisuContourVOI.h +++ b/bbtk/src/bbmaracasvisuContourVOI.h @@ -1,8 +1,8 @@ #ifdef _USE_WXWIDGETS_ -#ifndef __bbmaracasvisuContourVOI_h_INCLUDED__ -#define __bbmaracasvisuContourVOI_h_INCLUDED__ +#ifndef __bbcreaMaracasVisuContourVOI_h_INCLUDED__ +#define __bbcreaMaracasVisuContourVOI_h_INCLUDED__ #include "bbtkWxBlackBox.h" @@ -10,7 +10,7 @@ #include "Contour/ContourVOIWidget.h" -namespace bbmaracasvisu +namespace bbcreaMaracasVisu { @@ -19,7 +19,7 @@ namespace bbmaracasvisu 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 bbmaracasvisu 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; }; @@ -85,8 +99,8 @@ BBTK_DESCRIPTION("define VOI widget"); 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_