]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuViewerMPR.h
*** empty log message ***
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuViewerMPR.h
index 8f004ea7e8ad06533ccb72386dd54cfc59ac5bde..af3673a55f61a9af80a1a8b6fb5e39a40ea4af8a 100644 (file)
@@ -1,13 +1,13 @@
 #ifdef _USE_WXWIDGETS_
-#ifndef __bbmaracasvisuViewerMPR_h_INCLUDED__
-#define __bbmaracasvisuViewerMPR_h_INCLUDED__
+#ifndef __bbcreaMaracasVisuViewerMPR_h_INCLUDED__
+#define __bbcreaMaracasVisuViewerMPR_h_INCLUDED__
 #include "bbtkWxBlackBox.h"
 
 #include "wxMaracasMPR.h"
 #include "vtkImageData.h"
 #include "vtkRenderer.h"
 
-namespace bbmaracasvisu
+namespace bbcreaMaracasVisu
 {
 
 
@@ -17,7 +17,7 @@ namespace bbmaracasvisu
   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 bbmaracasvisu
 
                //refreshView
                void Refresh();
+
+               void setMarImage(marImageData* marimagedata);
+               void ConfigureVTK();
                
        private:
-
+               
                ViewerMPR                       *mbbViewerMPR;
                wxMPRWidget2            *wxwidget;
                std::vector<int>        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);
@@ -86,8 +90,8 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(ViewerMPR,bbtk::WxBlackBox);
 
 BBTK_END_DESCRIBE_BLACK_BOX(ViewerMPR);
 }
-// EO namespace bbmaracasvisu
+// EO namespace bbcreaMaracasVisu
 
-#endif // __bbmaracasvisuViewerMPR_h_INCLUDED__
+#endif // __bbcreaMaracasVisuViewerMPR_h_INCLUDED__
 #endif // _USE_WXWIDGETS_