VTK  9.3.20240423
vtkParallelVectors.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
24#ifndef vtkParallelVectors_h
25#define vtkParallelVectors_h
26
27#include "vtkFiltersFlowPathsModule.h" // For export macro
29
30#include "vtkNew.h" // for vtkNew
31
32namespace detail
33{
34VTK_ABI_NAMESPACE_BEGIN
35template <typename VArrayType, typename WArrayType>
37VTK_ABI_NAMESPACE_END
38}
39
40VTK_ABI_NAMESPACE_BEGIN
41class VTKFILTERSFLOWPATHS_EXPORT vtkParallelVectors : public vtkPolyDataAlgorithm
42{
43 template <typename, typename>
45
46public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
55 vtkSetStringMacro(FirstVectorFieldName);
56 vtkGetStringMacro(FirstVectorFieldName);
58
60
63 vtkSetStringMacro(SecondVectorFieldName);
64 vtkGetStringMacro(SecondVectorFieldName);
66
67protected:
70
73
79
80 virtual bool AcceptSurfaceTriangle(const vtkIdType surfaceSimplexIndices[3]);
81
88 virtual bool ComputeAdditionalCriteria(const vtkIdType surfaceSimplexIndices[3], double s,
89 double t, std::vector<double>& criterionArrayValues);
90
95
100
101 // The arrays are used to store additional criteria related arrays with 1 component.
102 // The size of this vector should be resized inside Prefilter.
103 std::vector<vtkSmartPointer<vtkDoubleArray>> CriteriaArrays;
104
105private:
106 vtkParallelVectors(const vtkParallelVectors&) = delete;
107 void operator=(const vtkParallelVectors&) = delete;
108};
109
110VTK_ABI_NAMESPACE_END
111#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Compute polylines corresponding to locations where two vector fields are parallel.
char * FirstVectorFieldName
Contains the name of the first vector field to compare.
virtual void Postfilter(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
std::vector< vtkSmartPointer< vtkDoubleArray > > CriteriaArrays
virtual void Prefilter(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Prefilter should resize the CriteriaArrays, initialize them and set their names.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
static vtkParallelVectors * New()
char * SecondVectorFieldName
Contains the name of the second vector field to compare.
virtual bool ComputeAdditionalCriteria(const vtkIdType surfaceSimplexIndices[3], double s, double t, std::vector< double > &criterionArrayValues)
Computes additional criteria to determine if a point should be added to a vortex core.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkParallelVectors() override
virtual bool AcceptSurfaceTriangle(const vtkIdType surfaceSimplexIndices[3])
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
int vtkIdType
Definition vtkType.h:315