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
41
42#include "vtkNew.h" // for vtkNew
43
44namespace detail
45{
46template <typename VArrayType, typename WArrayType>
48}
49
50class VTKFILTERSFLOWPATHS_EXPORT vtkParallelVectors : public vtkPolyDataAlgorithm
51{
52 template <typename, typename>
54
55public:
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
76protected:
79
82
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
114private:
115 vtkParallelVectors(const vtkParallelVectors&) = delete;
116 void operator=(const vtkParallelVectors&) = delete;
117};
118
119#endif
a simple class to control print indentation
Definition vtkIndent.h:40
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:332