X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuViewerMPR.h;h=af3673a55f61a9af80a1a8b6fb5e39a40ea4af8a;hb=0b747197355924160b90ad9e4d9c7499fcef7503;hp=878a9a645828338f85d9902f324e003c6038a8bc;hpb=800f29fd7e4cc70d8706b3075454e63f0b1a5717;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuViewerMPR.h b/bbtk/src/bbmaracasvisuViewerMPR.h index 878a9a6..af3673a 100644 --- a/bbtk/src/bbmaracasvisuViewerMPR.h +++ b/bbtk/src/bbmaracasvisuViewerMPR.h @@ -17,7 +17,7 @@ namespace bbcreaMaracasVisu class wxWidgetMPR : public wxPanel { public: - wxWidgetMPR(ViewerMPR* box,wxWindow* parent, marImageData *marimagedata); + wxWidgetMPR(ViewerMPR* box,wxWindow* parent, marImageData *marimagedata=NULL); ~wxWidgetMPR(); //if the MPR had generated the refresh event @@ -31,9 +31,12 @@ namespace bbcreaMaracasVisu //refreshView void Refresh(); + + void setMarImage(marImageData* marimagedata); + void ConfigureVTK(); private: - + ViewerMPR *mbbViewerMPR; wxMPRWidget2 *wxwidget; std::vector point; @@ -57,7 +60,7 @@ class /*BBTK_EXPORT*/ ViewerMPR /// 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(); //================================================================== @@ -68,10 +71,11 @@ virtual void bbUserDestructor(); BBTK_PROCESS(Process); void Process(); BBTK_CREATE_WIDGET(CreateWidget); - void CreateWidget(); + void CreateWidget(wxWindow* parent); private: - wxWidgetMPR *mwxwidgetmpr; + wxWidgetMPR *wxwidget; + marImageData *marimagedata; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(ViewerMPR,bbtk::WxBlackBox);