1 // Copyright (C) 2021 CEA/DEN, EDF R&D
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 __vtkElectromagnetismVecteur_h__
21 #define __vtkElectromagnetismVecteur_h__
23 #include <vtkPolyDataAlgorithm.h>
25 #include <vtkSmartPointer.h>
31 class vtkUnstructuredGrid;
33 class VTK_EXPORT vtkElectromagnetismVecteur : public vtkPolyDataAlgorithm
40 SPATIALLY_UNIFORM_DISTRIBUTION,
41 SPATIALLY_UNIFORM_INVERSE_TRANSFORM_SAMPLING_SURFACE,
42 SPATIALLY_UNIFORM_INVERSE_TRANSFORM_SAMPLING_VOLUME
45 static vtkElectromagnetismVecteur* New();
46 vtkTypeMacro(vtkElectromagnetismVecteur, vtkPolyDataAlgorithm);
47 void PrintSelf(ostream& os, vtkIndent indent) override;
49 vtkGetMacro(ScaleFactor, double);
50 vtkSetMacro(ScaleFactor, double);
52 vtkSetClampMacro(GlyphMode, int, ALL_POINTS, SPATIALLY_UNIFORM_INVERSE_TRANSFORM_SAMPLING_VOLUME);
53 vtkGetMacro(GlyphMode, int);
55 vtkSetClampMacro(Stride, int, 1, VTK_INT_MAX);
56 vtkGetMacro(Stride, int);
58 vtkSetMacro(Seed, int);
59 vtkGetMacro(Seed, int);
61 vtkSetClampMacro(MaximumNumberOfSamplePoints, int, 1, VTK_INT_MAX);
62 vtkGetMacro(MaximumNumberOfSamplePoints, int);
64 static const char *GetColorArrayName();
68 vtkElectromagnetismVecteur();
69 ~vtkElectromagnetismVecteur() override = default;
71 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
76 int MaximumNumberOfSamplePoints;
81 vtkElectromagnetismVecteur(const vtkElectromagnetismVecteur&) = delete;
82 void operator=(const vtkElectromagnetismVecteur&) = delete;
84 static const char NAME_COLOR_ARRAY[];