X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxMaracasSuperpositionPanel.cxx;h=99bb342acf75e1aeb960543b6088c83a9cb1429d;hb=65c158dc171f8d3114ee3544b2a94a1f41880df0;hp=803eaa5b90a03df9f72ef3fcc3c16607f0fdeb7e;hpb=4db65eb4d687cf3695582df7098db27b0d24ab97;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasSuperpositionPanel.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasSuperpositionPanel.cxx index 803eaa5..99bb342 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasSuperpositionPanel.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasSuperpositionPanel.cxx @@ -12,10 +12,11 @@ // Constructors & Destructors //------------------------------------------------------------------------------------------------------------ - wxMaracasSuperpositionPanel :: wxMaracasSuperpositionPanel ( std::vector imgs, wxWindow *parent, const wxPoint& pos, const wxSize& size,long style, int vertStart, int vertEnd, int horzStart, int horzEnd ) + wxMaracasSuperpositionPanel :: wxMaracasSuperpositionPanel ( std::vector 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(); @@ -45,7 +46,16 @@ std::vector * numViews = new std::vector (); 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)); @@ -120,4 +130,5 @@ void wxMaracasSuperpositionPanel::Refresh() { GetwxVtkMPR2DView()->GetRenWin()->Render(); - } \ No newline at end of file + } +