From 47134513c56dd09d1fc3b880d068c219990b19e2 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 20 Sep 2010 13:00:13 +0000 Subject: [PATCH] Issue 0020226: [CEA 329] Invalid glyphs position in vector fields on polyhedrons cell. --- src/OBJECT/SMESH_Actor.cxx | 4 ++-- src/OBJECT/SMESH_ActorDef.h | 5 +++-- src/OBJECT/SMESH_FaceOrientationFilter.cxx | 5 +++-- src/OBJECT/SMESH_FaceOrientationFilter.h | 5 +++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index 38dddb2ae..8f5c5bae6 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -30,6 +30,7 @@ #include "SMESH_DeviceActor.h" #include "SMESH_ObjectDef.h" #include "SMESH_ControlsDef.hxx" +#include "VTKViewer_CellCenters.h" #include "VTKViewer_ExtractUnstructuredGrid.h" #include "VTKViewer_FramedTextActor.h" #include "SALOME_InteractiveObject.hxx" @@ -59,7 +60,6 @@ #include #include #include -#include #include #include #include @@ -428,7 +428,7 @@ SMESH_ActorDef::SMESH_ActorDef() //--------------------------------------- myCellsNumDataSet = vtkUnstructuredGrid::New(); - myCellCenters = vtkCellCenters::New(); + myCellCenters = VTKViewer_CellCenters::New(); myCellCenters->SetInput(myCellsNumDataSet); myClsMaskPoints = vtkMaskPoints::New(); diff --git a/src/OBJECT/SMESH_ActorDef.h b/src/OBJECT/SMESH_ActorDef.h index e3d65ff7a..0a740163b 100644 --- a/src/OBJECT/SMESH_ActorDef.h +++ b/src/OBJECT/SMESH_ActorDef.h @@ -63,7 +63,6 @@ class vtkPolyData; class vtkMapper; class vtkActor2D; class vtkMaskPoints; -class vtkCellCenters; class vtkLabeledDataMapper; class vtkSelectVisiblePoints; @@ -75,6 +74,8 @@ class vtkImplicitBoolean; class vtkTimeStamp; +class VTKViewer_CellCenters; + class SMESH_DeviceActor; @@ -271,7 +272,7 @@ class SMESH_ActorDef : public SMESH_Actor vtkUnstructuredGrid* myCellsNumDataSet; vtkActor2D *myCellsLabels; vtkMaskPoints* myClsMaskPoints; - vtkCellCenters* myCellCenters; + VTKViewer_CellCenters* myCellCenters; vtkLabeledDataMapper* myClsLabeledDataMapper; vtkSelectVisiblePoints* myClsSelectVisiblePoints; diff --git a/src/OBJECT/SMESH_FaceOrientationFilter.cxx b/src/OBJECT/SMESH_FaceOrientationFilter.cxx index 9f01d0bdc..d2407af6b 100644 --- a/src/OBJECT/SMESH_FaceOrientationFilter.cxx +++ b/src/OBJECT/SMESH_FaceOrientationFilter.cxx @@ -23,6 +23,8 @@ #include "SUIT_Session.h" #include "SUIT_ResourceMgr.h" +#include + #include #include #include @@ -33,7 +35,6 @@ #include #include #include -#include #include #include @@ -59,7 +60,7 @@ SMESH_FaceOrientationFilter::SMESH_FaceOrientationFilter() myFacePolyData = vtkPolyData::New(); - myFaceCenters = vtkCellCenters::New(); + myFaceCenters = VTKViewer_CellCenters::New(); myFaceCenters->SetInput(myFacePolyData); myFaceMaskPoints = vtkMaskPoints::New(); diff --git a/src/OBJECT/SMESH_FaceOrientationFilter.h b/src/OBJECT/SMESH_FaceOrientationFilter.h index 7a1721cb6..813468047 100644 --- a/src/OBJECT/SMESH_FaceOrientationFilter.h +++ b/src/OBJECT/SMESH_FaceOrientationFilter.h @@ -24,11 +24,12 @@ #include -class vtkCellCenters; class vtkGlyph3D; class vtkGlyphSource2D; class vtkMaskPoints; +class VTKViewer_CellCenters; + class SMESHOBJECT_EXPORT SMESH_FaceOrientationFilter : public vtkPolyDataAlgorithm { public: @@ -63,7 +64,7 @@ private: vtkFloatingPointType myOrientationScale; vtkPolyData* myArrowPolyData; vtkPolyData* myFacePolyData; - vtkCellCenters* myFaceCenters; + VTKViewer_CellCenters* myFaceCenters; vtkMaskPoints* myFaceMaskPoints; vtkGlyphSource2D* myGlyphSource; vtkGlyph3D* myBaseGlyph; -- 2.39.2