Salome HOME
Copyright update 2021
[modules/paravis.git] / src / Plugins / EllipseBuilder / plugin / EllipseBuilderModule / vtkEllipseBuilderFilter.h
1 // Copyright (C) 2014-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 __ElliplseBuilderFilter_h
21 #define __ElliplseBuilderFilter_h
22
23 #include <vtkMultiBlockDataSetAlgorithm.h>
24
25 class vtkDataObjectTreeIterator;
26 class vtkStringArray;
27
28 /**
29  * Description of class: TODO
30  */
31 class vtkEllipseBuilderFilter : public vtkMultiBlockDataSetAlgorithm
32 {
33 public:
34   /// Returns pointer on a new instance of the class
35   static vtkEllipseBuilderFilter* New();
36
37   vtkTypeMacro(vtkEllipseBuilderFilter, vtkMultiBlockDataSetAlgorithm)
38
39   /// Prints current state of the objects
40   void PrintSelf(ostream& os, vtkIndent indent) override;
41
42   /// Set and Get methods for scale factor
43   vtkSetMacro(ScaleFactor, double);
44   vtkGetMacro(ScaleFactor, double);
45
46   virtual vtkStringArray* GetFieldList();
47
48   /// Set and Get methods for field of real part
49   vtkSetStringMacro(RealField);
50   vtkGetStringMacro(RealField);
51
52   /// Set and Get methods for field of imag part
53   vtkSetStringMacro(ImagField);
54   vtkGetStringMacro(ImagField);
55
56   /// Set and Get methods for start angle
57   vtkSetMacro(StartAngle, double);
58   vtkGetMacro(StartAngle, double);
59
60   /// Set and Get methods for end angle
61   vtkSetMacro(EndAngle, double);
62   vtkGetMacro(EndAngle, double);
63
64   /// Set and Get methods for resolution
65   vtkSetMacro(Resolution, int);
66   vtkGetMacro(Resolution, int);
67
68   /// Set and Get methods for axis
69   vtkSetMacro(Axis, int);
70   vtkGetMacro(Axis, int);
71
72 protected:
73   /// Constructor
74   vtkEllipseBuilderFilter();
75
76   /// Destructor
77   ~vtkEllipseBuilderFilter() override;
78
79   /// A method which is called on filtering data
80   int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
81   int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
82
83   vtkStringArray* FieldList;
84
85   double ScaleFactor;
86   double StartAngle;
87   double EndAngle;
88   int Resolution;
89   int Axis;
90   char* RealField;
91   char* ImagField;
92
93 private:
94   /// Methods for copy of the filter: Not implemented
95   vtkEllipseBuilderFilter(const vtkEllipseBuilderFilter&) = delete;
96   void operator=(const vtkEllipseBuilderFilter&) = delete;
97 };
98
99 #endif