X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuViewerNV.h;h=71d159c42e072954f19c9ce7eb2598cbd6b5be2b;hb=bf403544fe90a939c6a988f2c06ead7f4738d545;hp=c1bd8311832d2196a9b07eb7d1dcebb983469005;hpb=44e4be7013ea566bd2bdefb9d48e1da0071c3d91;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuViewerNV.h b/bbtk/src/bbmaracasvisuViewerNV.h index c1bd831..71d159c 100644 --- a/bbtk/src/bbmaracasvisuViewerNV.h +++ b/bbtk/src/bbmaracasvisuViewerNV.h @@ -1,6 +1,6 @@ #ifdef _USE_WXWIDGETS_ -#ifndef __bbmaracasvisuViewerNV_h_INCLUDED__ -#define __bbmaracasvisuViewerNV_h_INCLUDED__ +#ifndef __bbcreaMaracasVisuViewerNV_h_INCLUDED__ +#define __bbcreaMaracasVisuViewerNV_h_INCLUDED__ #include "bbtkWxBlackBox.h" @@ -12,9 +12,32 @@ #include "widgets/wxMaracas_ViewerWidget.h" #include "widgets/wxMaracas_N_ViewersWidget.h" -namespace bbmaracasvisu +namespace bbcreaMaracasVisu { + + + class ViewerNV; + class bbwxMaracas_N_ViewersWidget : public wxMaracas_N_ViewersWidget + { + public: + bbwxMaracas_N_ViewersWidget(ViewerNV* box,wxWindow *parent, vtkImageData* imagedata, std::vector *nTypeView); + ~bbwxMaracas_N_ViewersWidget(); + + //if the MPR had generated the refresh event + void OnRefreshView(wxCommandEvent & event); + void OnDClickLeft(wxCommandEvent & event); + private: + ViewerNV *mbbViewerNV; + DECLARE_EVENT_TABLE( ); + }; + + +//------------------------------------------------------------------- +//------------------------------------------------------------------- +//------------------------------------------------------------------- + + class /*BBTK_EXPORT*/ ViewerNV : public bbtk::WxBlackBox @@ -24,7 +47,7 @@ class /*BBTK_EXPORT*/ ViewerNV /// 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 p); /// User callback called in the box destructor virtual void bbUserDestructor(); //================================================================== @@ -43,7 +66,7 @@ virtual void bbUserDestructor(); BBTK_PROCESS(Process); void Process(); BBTK_CREATE_WIDGET(CreateWidget); - void CreateWidget(); + void CreateWidget(wxWindow* parent); private: wxMaracas_N_ViewersWidget *mwxwidget; @@ -69,8 +92,8 @@ BBTK_DESCRIPTION("Viewer : N view configuration 2D and 3D"); BBTK_OUTPUT(ViewerNV,Point,"Axis point",std::vector,""); BBTK_END_DESCRIBE_BLACK_BOX(ViewerNV); } -// EO namespace bbmaracasvisu +// EO namespace bbcreaMaracasVisu -#endif // __bbmaracasvisuViewerNV_h_INCLUDED__ +#endif // __bbcreaMaracasVisuViewerNV_h_INCLUDED__ #endif // _USE_WXWIDGETS_