1 // Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef SMESH_FACEORIENTATIONFILTER_H
21 #define SMESH_FACEORIENTATIONFILTER_H
23 #include "SMESH_Object.h"
25 #include <vtkPolyDataAlgorithm.h>
28 class vtkGlyphSource2D;
31 class VTKViewer_CellCenters;
33 class SMESHOBJECT_EXPORT SMESH_FaceOrientationFilter : public vtkPolyDataAlgorithm
36 vtkTypeMacro( SMESH_FaceOrientationFilter, vtkPolyDataAlgorithm )
38 /*!Create a new SMESH_FaceOrientationFilter.*/
39 static SMESH_FaceOrientationFilter *New();
41 void SetOrientationScale( double );
42 double GetOrientationScale() const { return myOrientationScale; }
44 void Set3dVectors( bool );
45 bool Get3dVectors() const { return my3dVectors; }
48 SMESH_FaceOrientationFilter();
49 virtual ~SMESH_FaceOrientationFilter();
51 virtual int RequestData(vtkInformation *, vtkInformationVector **,
52 vtkInformationVector *); //generate output data
54 virtual int FillInputPortInformation(int port, vtkInformation *info);
56 vtkPolyData* CreateArrowPolyData();
59 SMESH_FaceOrientationFilter( const SMESH_FaceOrientationFilter& ); //!< Not implemented.
60 void operator=( const SMESH_FaceOrientationFilter& ); //!< Not implemented.
64 double myOrientationScale;
65 vtkPolyData* myArrowPolyData;
66 vtkPolyData* myFacePolyData;
67 VTKViewer_CellCenters* myFaceCenters;
68 vtkMaskPoints* myFaceMaskPoints;
69 vtkGlyphSource2D* myGlyphSource;
70 vtkGlyph3D* myBaseGlyph;