]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourMainFrame.cxx
index d21f9a58b0c0b202d6768a10989a83f9407f3518..c126f7c3e2f21771a4445aacd571f4efdcd85f22 100644 (file)
@@ -225,6 +225,20 @@ void wxContourMainFrame::setVectImages( std::vector<vtkImageData*> images ){
                return configured;
        }
 
+
+       bool wxContourMainFrame::addNewPanel(wxPanel* panel)
+               {
+               bool configured = panel!=NULL;
+               configured &= panel!=NULL;
+               
+               if( configured )
+               {
+                       notebook->AddPage( panel, wxT("       Viewer       "), true );
+                       m_mgr.Update();
+               }
+               return configured;
+       }
+
        //------------------------------------------------------------------------------------------------------------
        //  Attributes getters and setters
        //------------------------------------------------------------------------------------------------------------
@@ -1705,8 +1719,6 @@ void wxContourMainFrame::onThreshold(int minVal, int maxVal)
        //Assign a fake color for the upper image, and set the white as transparent
        for(int i = range[0]; i < range[1]; i++)
        {
-               //std::cout<<"Int equal: " << i << std::endl;
-               
                if( i >= minVal && i <= maxVal )
                {
                        lookup->SetTableValue(i, 1.0, 0.0, 0.0, 1);
@@ -1739,30 +1751,10 @@ void wxContourMainFrame::onThreshold(int minVal, int maxVal)
                viewer->GetRenderer()->AddActor( upperImageActor );
                viewer->Render();
 
-               //wxThresholdPanel * panel = new wxThresholdPanel( viewer, notebook );
-
-               //onThresholdPanel(panel);
-
                RefreshInterface();
-
-               //baseImageActor = vtkImageActor::New( );
-               //baseImageActor->SetInput( mBox->bbGetInputImage1() );
 }
 
 
-bool wxContourMainFrame::onThresholdPanel(wxPanel* panel)
-       {
-       bool configured = panel!=NULL;
-       configured &= panel!=NULL;
-       
-       if( configured )
-       {
-               notebook->AddPage( panel, wxT("       Threshold       "), true );
-               m_mgr.Update();
-       }
-       return configured;
-}
-
 void wxContourMainFrame::showAxis(bool show)
 {
        _theViewPanel->SetVisibleAxis(show);