]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasSuperpositionPanel.cxx
Fix wxString vs std::string
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMaracasSuperpositionPanel.cxx
index 803eaa5b90a03df9f72ef3fcc3c16607f0fdeb7e..99bb342acf75e1aeb960543b6088c83a9cb1429d 100644 (file)
        // Constructors & Destructors
        //------------------------------------------------------------------------------------------------------------
 
-       wxMaracasSuperpositionPanel :: wxMaracasSuperpositionPanel ( std::vector<vtkImageData*> imgs, wxWindow *parent, const wxPoint& pos, const wxSize& size,long style, int vertStart, int vertEnd, int horzStart, int horzEnd )     
+       wxMaracasSuperpositionPanel :: wxMaracasSuperpositionPanel ( std::vector<vtkImageData*> imgs, int type, wxWindow *parent, const wxPoint& pos, const wxSize& size,long style, int vertStart, int vertEnd, int horzStart, int horzEnd )   
        :wxPanel(parent, -1, pos, size, style)          
        {                               
                _images = imgs;
+               _type = type;
                int gapH = 20;
                int gapV = 10;
                createSuperpositionPanel();
 
                std::vector<int> * numViews = new std::vector<int> ();
                numViews->push_back(0);
-               theViewPanel = new wxMaracas_N_ViewersWidget( this, _images[0], numViews );
+               
+               if (_type==1 || _type==3)
+               {
+                       theViewPanel = new wxMaracas_N_ViewersWidget( this, _images[0], numViews );                     
+               }
+               else if (_type==2)
+               {
+                       theViewPanel = new wxMaracas_N_ViewersWidget( this, _images[1], numViews );                                             
+               }
+               
                SetVisibleAxis(false);
 
                theViewPanel->SetBackgroundColour(wxColour(0,0,0));
        void wxMaracasSuperpositionPanel::Refresh()
        {
                GetwxVtkMPR2DView()->GetRenWin()->Render();
-       }
\ No newline at end of file
+       }
+