VTK  9.2.6
vtkParallelVectors.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParallelVectors.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
36 #ifndef vtkParallelVectors_h
37 #define vtkParallelVectors_h
38 
39 #include "vtkFiltersFlowPathsModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
42 #include "vtkNew.h" // for vtkNew
43 
44 namespace detail
45 {
46 template <typename VArrayType, typename WArrayType>
48 }
49 
50 class VTKFILTERSFLOWPATHS_EXPORT vtkParallelVectors : public vtkPolyDataAlgorithm
51 {
52  template <typename, typename>
54 
55 public:
56  static vtkParallelVectors* New();
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
61 
64  vtkSetStringMacro(FirstVectorFieldName);
65  vtkGetStringMacro(FirstVectorFieldName);
67 
69 
72  vtkSetStringMacro(SecondVectorFieldName);
73  vtkGetStringMacro(SecondVectorFieldName);
75 
76 protected:
78  ~vtkParallelVectors() override;
79 
81  int FillInputPortInformation(int, vtkInformation*) override;
82 
87  virtual void Postfilter(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
88 
89  virtual bool AcceptSurfaceTriangle(const vtkIdType surfaceSimplexIndices[3]);
90 
97  virtual bool ComputeAdditionalCriteria(const vtkIdType surfaceSimplexIndices[3], double s,
98  double t, std::vector<double>& criterionArrayValues);
99 
104 
109 
110  // The arrays are used to store additional criteria related arrays with 1 component.
111  // The size of this vector should be resized inside Prefilter.
112  std::vector<vtkSmartPointer<vtkDoubleArray>> CriteriaArrays;
113 
114 private:
115  vtkParallelVectors(const vtkParallelVectors&) = delete;
116  void operator=(const vtkParallelVectors&) = delete;
117 };
118 
119 #endif
Compute polylines corresponding to locations where two vector fields are parallel.
char * SecondVectorFieldName
Contains the name of the second vector field to compare.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:332
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void Prefilter(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Prefilter should resize the CriteriaArrays, initialize them and set their names.
std::vector< vtkSmartPointer< vtkDoubleArray > > CriteriaArrays
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
char * FirstVectorFieldName
Contains the name of the first vector field to compare.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.