Salome HOME
initial commit from paravisaddons
[tools/paravisaddons_common.git] / src / RateOfFlowThroughSection / plugin / RateOfFlowThroughSectionModule / vtkExplodePolyLine.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 __vtkExplodePolyLine_h__
21 #define __vtkExplodePolyLine_h__
22
23 #include <vtkPointSetAlgorithm.h>
24
25 #include <vtkSmartPointer.h>
26 #include <vtkPolyData.h>
27 #include <vtkDataSetSurfaceFilter.h>
28 #include <vtkCellArray.h>
29 #include <vtkCellData.h>
30 #include <vtkCompositeDataToUnstructuredGridFilter.h>
31 #include <vtkDataSetSurfaceFilter.h>
32 #include <vtkDoubleArray.h>
33 #include <vtkFloatArray.h>
34 #include <vtkInformation.h>
35 #include <vtkInformationVector.h>
36 #include <vtkLineSource.h>
37 #include <vtkMultiBlockDataGroupFilter.h>
38 #include <vtkMultiBlockDataSet.h>
39 #include <vtkNew.h>
40 #include <vtkObjectFactory.h>
41 #include <vtkRibbonFilter.h>
42 #include <vtkPVGlyphFilter.h>
43 #include <vtkPointData.h>
44 #include <vtkPolyData.h>
45 #include <vtkPolyDataNormals.h>
46 #include <vtkTable.h>
47 #include <vtkTessellatorFilter.h>
48 #include <vtkUnstructuredGrid.h>
49 #include <vtkVariant.h>
50 #include <vtkVariantArray.h>
51 #include <vtkMeshQuality.h>
52 #include <vtkCellCenters.h>
53
54 #include <string>
55 #include <vector>
56
57 class vtkDoubleArray;
58
59 class VTK_EXPORT vtkExplodePolyLine : public vtkPointSetAlgorithm
60 {
61 public:
62   static vtkExplodePolyLine* New();
63   vtkTypeMacro(vtkExplodePolyLine, vtkPointSetAlgorithm);
64   void PrintSelf(ostream& os, vtkIndent indent) override;
65
66   int FillInputPortInformation(int vtkNotUsed(port), vtkInformation *info) override;
67   int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
68
69 protected:
70   vtkExplodePolyLine() = default;
71   ~vtkExplodePolyLine() override = default;
72
73   int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
74
75   void ExtractInfo(vtkInformationVector* inputVector, vtkSmartPointer<vtkPolyData>& usgIn);
76
77 private:
78   vtkExplodePolyLine(const vtkExplodePolyLine&) = delete;
79   void operator=(const vtkExplodePolyLine&) = delete;
80 };
81
82 #endif