]> SALOME platform Git repositories - tools/paravisaddons_common.git/blob - src/ElectromagnetismVecteur/plugin/VecteurFilters/vtkElectromagnetismVecteur.h
Salome HOME
Issues/Warnings detected by Paraview 5.9 in some plugins
[tools/paravisaddons_common.git] / src / ElectromagnetismVecteur / plugin / VecteurFilters / vtkElectromagnetismVecteur.h
1 // Copyright (C) 2021  CEA/DEN, EDF R&D
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef __vtkElectromagnetismVecteur_h__
21 #define __vtkElectromagnetismVecteur_h__
22
23 #include <vtkPolyDataAlgorithm.h>
24
25 #include <vtkSmartPointer.h>
26
27 #include <string>
28 #include <vector>
29
30 class vtkDoubleArray;
31 class vtkUnstructuredGrid;
32
33 class VTK_EXPORT vtkElectromagnetismVecteur : public vtkPolyDataAlgorithm
34 {
35 public:
36   enum GlyphModeType
37   {
38     ALL_POINTS,
39     EVERY_NTH_POINT,
40     SPATIALLY_UNIFORM_DISTRIBUTION,
41     SPATIALLY_UNIFORM_INVERSE_TRANSFORM_SAMPLING_SURFACE,
42     SPATIALLY_UNIFORM_INVERSE_TRANSFORM_SAMPLING_VOLUME
43   };
44 public:
45   static vtkElectromagnetismVecteur* New();
46   vtkTypeMacro(vtkElectromagnetismVecteur, vtkPolyDataAlgorithm);
47   void PrintSelf(ostream& os, vtkIndent indent) override;
48
49   vtkGetMacro(ScaleFactor, double);
50   vtkSetMacro(ScaleFactor, double);
51
52   vtkSetClampMacro(GlyphMode, int, ALL_POINTS, SPATIALLY_UNIFORM_INVERSE_TRANSFORM_SAMPLING_VOLUME);
53   vtkGetMacro(GlyphMode, int);
54
55   vtkSetClampMacro(Stride, int, 1, VTK_INT_MAX);
56   vtkGetMacro(Stride, int);
57
58   vtkSetMacro(Seed, int);
59   vtkGetMacro(Seed, int);
60
61   vtkSetClampMacro(MaximumNumberOfSamplePoints, int, 1, VTK_INT_MAX);
62   vtkGetMacro(MaximumNumberOfSamplePoints, int);
63
64   static const char *GetColorArrayName();
65
66
67 protected:
68   vtkElectromagnetismVecteur();
69   ~vtkElectromagnetismVecteur() override = default;
70
71   int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
72
73   double ScaleFactor;
74
75   int GlyphMode;
76   int MaximumNumberOfSamplePoints;
77   int Seed;
78   int Stride;
79
80 private:
81   vtkElectromagnetismVecteur(const vtkElectromagnetismVecteur&) = delete;
82   void operator=(const vtkElectromagnetismVecteur&) = delete;
83
84   static const char NAME_COLOR_ARRAY[];
85 };
86
87 #endif