]> Creatis software - creaMaracasVisu.git/commitdiff
Clean code
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Mon, 14 Apr 2025 08:26:10 +0000 (10:26 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Mon, 14 Apr 2025 08:26:10 +0000 (10:26 +0200)
bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx
lib/maracasVisuLib/src/CutModule/kernel/CutModelPolygon.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourExtractData.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourExtractData.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/creaContoursFactory.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualBaseModel.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualPoint.cpp
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx

index 47ebd80..258cccd 100644 (file)
@@ -821,8 +821,6 @@ void ManualContourModel_Box::ShiftValues(   std::vector<double> *lstInX,
        } // if sizeLstIndexIn
 }
 
-
-
 void ManualContourModel_Box::Process()
 {
 // THE MAIN PROCESSING METHOD BODY
index 1f7482f..aa8f4c2 100644 (file)
@@ -24,6 +24,7 @@
 # ------------------------------------------------------------------------ */
 
 #include "CutModelPolygon.h"
+#include <vtkVersionMacros.h>
 
 
 CutModelPolygon::CutModelPolygon() 
index 948e37d..97919ee 100644 (file)
@@ -24,6 +24,7 @@
 # ------------------------------------------------------------------------ */
 
 #include "ContourExtractData.h"
+#include <vtkVersionMacros.h>
 
 
 //----------------------------------------------------------------------
index 265d6d3..4d64a31 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "manualContourModel.h"
 #include "marTypes.h"
-
+#include <vtkImageData.h>
 
   //--------------------------------------------------------------------------
   class creaMaracasVisu_EXPORT ContourExtractData 
index 25057a2..e30c00f 100644 (file)
 #ifndef manualBaseModel_h
 #define manualBaseModel_h
 
-#include "vtkRenderWindow.h"
-
-#include "vtkRenderer.h"
-#include "vtkRenderWindowInteractor.h" //extremely important with VC++ don't remove !
-#include "vtkCommand.h"
-#include "vtkPolyData.h"
-#include "vtkCellArray.h"
-#include "vtkPolyDataMapper.h"
-#include "vtkInteractorObserver.h"
-#include "vtkInteractorStyleImage.h"
-#include <vtkCellPicker.h> 
-#include <vtkCamera.h> 
-#include <vtkPolyLine.h>
-#include <vtkDataSetMapper.h>
-#include <vtkUnstructuredGrid.h>
-
-#include "creawxVTKRenderWindowInteractor.h"
-
+#include <stdio.h>
+#include <string>
 #include <vector>
-#include "wxVtkBaseView.h"
-#include "marTypes.h"
+
+#include "creaMaracasVisu_EXPORT.h"
 #include "manualPoint.h"
 
 // --------------------------------------------------------------------------------------------
index e94a2b7..96e6ded 100644 (file)
 #ifndef manualContourModel_h
 #define manualContourModel_h
 
-#include "vtkRenderWindow.h"
-
-#include "vtkRenderer.h"
-#include "vtkRenderWindowInteractor.h" //extremely important with VC++ don't remove !
-#include "vtkCommand.h"
-#include "vtkPolyData.h"
-#include "vtkCellArray.h"
-#include "vtkPolyDataMapper.h"
-#include "vtkInteractorObserver.h"
-#include "vtkInteractorStyleImage.h"
-#include <vtkKochanekSpline.h> 
-
-#include <vtkCellPicker.h> 
-
-
-#include <vtkCamera.h> 
-#include <vtkPolyLine.h>
-#include <vtkDataSetMapper.h>
-#include <vtkUnstructuredGrid.h>
-
-#include "creawxVTKRenderWindowInteractor.h"
-
-
-//--
-
-#include <vector>
-#include "wxVtkBaseView.h"
-#include "marTypes.h"
-#include "manualPoint.h"
+#include <vtkKochanekSpline.h>
 #include "manualBaseModel.h"
 
 
+
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
index 6a532b1..c9963dd 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "manualPoint.h"
 
-
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
index 6f41447..8584910 100644 (file)
@@ -172,9 +172,9 @@ void wxVtk3DBaseView::Configure()
         
                _renWin->AddRenderer(_aRenderer);
 
-               _aRenderer->GradientBackgroundOn();
                _aRenderer->SetBackground( 0.33 , 0.33 , 0.33 );
                _aRenderer->SetBackground2( 0.66 , 0.66 , 0.66 );
+        _aRenderer->GradientBackgroundOn();
 
 //             _aRenderer->GradientBackgroundOff();
 //             _aRenderer->SetBackground(0,0,0 );