VTK  9.1.0
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=========================================================================*/
33#ifndef vtkParallelVectors_h
34#define vtkParallelVectors_h
35
36#include "vtkFiltersFlowPathsModule.h" // For export macro
38
39#include "vtkNew.h" // for vtkNew
40
41namespace detail
42{
43template <typename VArrayType, typename WArrayType>
45}
46
47class VTKFILTERSFLOWPATHS_EXPORT vtkParallelVectors : public vtkPolyDataAlgorithm
48{
49 template <typename, typename>
51
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
58
61 vtkSetStringMacro(FirstVectorFieldName);
62 vtkGetStringMacro(FirstVectorFieldName);
64
66
69 vtkSetStringMacro(SecondVectorFieldName);
70 vtkGetStringMacro(SecondVectorFieldName);
72
73protected:
76
79
85
86 virtual bool AcceptSurfaceTriangle(const vtkIdType surfaceSimplexIndices[3]);
87
94 virtual bool ComputeAdditionalCriteria(const vtkIdType surfaceSimplexIndices[3], double s,
95 double t, std::vector<double>& criterionArrayValues);
96
101
106
107 // The arrays are used to store additional criteria related arrays with 1 component.
108 // The size of this vector should be resized inside Prefilter.
109 std::vector<vtkSmartPointer<vtkDoubleArray>> CriteriaArrays;
110
111private:
112 vtkParallelVectors(const vtkParallelVectors&) = delete;
113 void operator=(const vtkParallelVectors&) = delete;
114};
115
116#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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