X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuViewerMPR.h;h=882fa43962a9c386d13dcc24b48acec2455d3e0a;hb=35a5d83be3d84f9d1544b8d3ad0de044f1e65286;hp=796c3893f75f0004cae6a79269026e260349357f;hpb=de5cb63cdc23317a114c77f7b6184126d7988508;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuViewerMPR.h b/bbtk/src/bbmaracasvisuViewerMPR.h index 796c389..882fa43 100644 --- a/bbtk/src/bbmaracasvisuViewerMPR.h +++ b/bbtk/src/bbmaracasvisuViewerMPR.h @@ -6,6 +6,7 @@ #include "wxMaracasMPR.h" #include "vtkImageData.h" #include "vtkRenderer.h" +#include "wxMPRWidget2.h" namespace bbcreaMaracasVisu { @@ -17,7 +18,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 +32,12 @@ namespace bbcreaMaracasVisu //refreshView void Refresh(); + + void setImageData(vtkImageData* img); + void ConfigureVTK(); private: - + ViewerMPR *mbbViewerMPR; wxMPRWidget2 *wxwidget; std::vector point; @@ -53,14 +57,6 @@ class /*BBTK_EXPORT*/ ViewerMPR public bbtk::WxBlackBox { BBTK_BLACK_BOX_INTERFACE(ViewerMPR,bbtk::WxBlackBox); -//================================================================== -/// User callback called in the box contructor -virtual void bbUserConstructor(); -/// User callback called in the box copy constructor -virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer); -/// User callback called in the box destructor -virtual void bbUserDestructor(); -//================================================================== BBTK_DECLARE_INPUT(Title,std::string); BBTK_DECLARE_INPUT(In, vtkImageData *); BBTK_DECLARE_OUTPUT(Renderer,vtkRenderer *); @@ -71,7 +67,8 @@ virtual void bbUserDestructor(); void CreateWidget(wxWindow* parent); private: - wxWidgetMPR *mwxwidgetmpr; + wxWidgetMPR *wxwidget; + vtkImageData *_img; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(ViewerMPR,bbtk::WxBlackBox);