From 58a206c99d6305185280adbbdcbcf326d88afb08 Mon Sep 17 00:00:00 2001 From: maintenance team Date: Mon, 10 Apr 2006 12:53:05 +0000 Subject: [PATCH] To provide compatibility between VTK 4.2.2, 4.2.6 & 4.4 versions --- src/OBJECT/SMESH_ActorUtils.h | 2 +- src/OBJECT/SMESH_ExtractGeometry.cxx | 16 ++++++++-------- src/OBJECT/SMESH_ExtractGeometry.h | 4 +++- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/OBJECT/SMESH_ActorUtils.h b/src/OBJECT/SMESH_ActorUtils.h index 58e72e0a9..19ed7e282 100644 --- a/src/OBJECT/SMESH_ActorUtils.h +++ b/src/OBJECT/SMESH_ActorUtils.h @@ -23,7 +23,7 @@ #include #include -#include +#include "VTKViewer.h" class vtkUnstructuredGrid; diff --git a/src/OBJECT/SMESH_ExtractGeometry.cxx b/src/OBJECT/SMESH_ExtractGeometry.cxx index de856a7ce..c7f59df94 100644 --- a/src/OBJECT/SMESH_ExtractGeometry.cxx +++ b/src/OBJECT/SMESH_ExtractGeometry.cxx @@ -20,14 +20,14 @@ #include "SMESH_ExtractGeometry.h" -#include "vtkCell.h" -#include "vtkCellData.h" -#include "vtkFloatArray.h" -#include "vtkIdList.h" -#include "vtkImplicitFunction.h" -#include "vtkObjectFactory.h" -#include "vtkPointData.h" -#include "vtkUnstructuredGrid.h" +#include +#include +#include +#include +#include +#include +#include +#include using namespace std; diff --git a/src/OBJECT/SMESH_ExtractGeometry.h b/src/OBJECT/SMESH_ExtractGeometry.h index 794229516..cbbcdc044 100644 --- a/src/OBJECT/SMESH_ExtractGeometry.h +++ b/src/OBJECT/SMESH_ExtractGeometry.h @@ -23,8 +23,10 @@ #include #include +#include "VTKViewer.h" -class SMESH_ExtractGeometry : public vtkExtractGeometry{ +class SMESH_ExtractGeometry : public vtkExtractGeometry +{ public: vtkTypeMacro(SMESH_ExtractGeometry,vtkExtractGeometry); -- 2.39.2