X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FInterface_ManagerContour_NDimensions%2FwxContourViewPanel.cxx;h=08bc31e0ec5465420e9dd667d0daadf9044825e8;hb=9212d387102a09fbbfb8876fb7d3eef9ee2617b2;hp=00465c1ea5afed17d733f95847d5e57e615bcbc1;hpb=378b0eb29f4ed8dc8e64726b326a9781f92f9295;p=creaContours.git diff --git a/lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx b/lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx index 00465c1..08bc31e 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx +++ b/lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx @@ -91,7 +91,6 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHANGE ) :wxPanel(parent, -1, pos, size, style) { theShowingImage->GetSpacing(last_spacing); - showingVID = theShowingImage; int gapH = 20; int gapV = 10; @@ -148,7 +147,6 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHANGE ) //outSizer->Fit( this ); initializeScenceManager(); - } @@ -212,17 +210,18 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHANGE ) } //------------------------------------------------------------------------------------------------------------ - void wxContourViewPanel :: createViewPanel() + void wxContourViewPanel::createViewPanel() { std::vector * numViews = new std::vector (); - numViews->push_back(2); + numViews->push_back(-1); theViewPanel = new wxMaracas_N_ViewersWidget( this, showingVID, numViews ); SetVisibleAxis(false); theViewPanel->SetBackgroundColour(wxColour(0,0,0)); theViewPanel->SetSize(800,600); - theViewPanel->GetWindow(1)->SetSize(800,600); + theViewPanel->GetWindow(1)->SetSize(800,600); + } //------------------------------------------------------------------------------------------------------------ @@ -311,14 +310,14 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHANGE ) */ void wxContourViewPanel :: onStartChange_Bar_Horizontal(wxCommandEvent& event) { - int nxStart_h = getStartHorizontal(); +// int nxStart_h = getStartHorizontal(); } /** * Handles the event wxEVT_TSBAR_END from the horizontal bar */ void wxContourViewPanel :: onEndChange_Bar_Horizontal(wxCommandEvent& event) { - int nxEnd_h = getEndHorizontal(); +// int nxEnd_h = getEndHorizontal(); } /** * Handles the event wxEVT_SELECTION_END from the horizontal bar @@ -332,8 +331,8 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHANGE ) */ void wxContourViewPanel :: onMovedBar_Horizontal(wxCommandEvent& event) { - int nxStart_h = getStartHorizontal(); - int nxEnd_h = getEndHorizontal(); +// int nxStart_h = getStartHorizontal(); +// int nxEnd_h = getEndHorizontal(); }