TTK
Loading...
Searching...
No Matches
ttkIntegralLines.h
Go to the documentation of this file.
1
65
66#pragma once
67
68// VTK Module
69#include <ttkIntegralLinesModule.h>
70
71// ttk code includes
72#include <IntegralLines.h>
73#include <ttkAlgorithm.h>
74
75class vtkUnstructuredGrid;
76
77class TTKINTEGRALLINES_EXPORT ttkIntegralLines : public ttkAlgorithm,
78 protected ttk::IntegralLines {
79
80public:
82
84
85 vtkGetMacro(Direction, int);
86 vtkSetMacro(Direction, int);
87
88 vtkSetMacro(ForceInputVertexScalarField, bool);
89 vtkGetMacro(ForceInputVertexScalarField, bool);
90
91 vtkSetMacro(ForceInputOffsetScalarField, bool);
92 vtkGetMacro(ForceInputOffsetScalarField, bool);
93
94 vtkSetMacro(EnableForking, bool);
95 vtkGetMacro(EnableForking, bool);
96
102 template <typename triangulationType>
103 int getTrajectories(
104 vtkDataSet *input,
105 const triangulationType *triangulation,
108 &integralLines,
109#ifdef TTK_ENABLE_MPI
110 const std::vector<ttk::SimplexId> &globalVertexId,
111 const std::vector<ttk::SimplexId> &globalCellId,
112#endif
113 vtkUnstructuredGrid *output);
114
115protected:
118
119 int FillInputPortInformation(int port, vtkInformation *info) override;
120 int FillOutputPortInformation(int port, vtkInformation *info) override;
121 int RequestData(vtkInformation *request,
122 vtkInformationVector **inputVector,
123 vtkInformationVector *outputVector) override;
124
125private:
126 int Direction{0};
127 bool ForceInputVertexScalarField{false};
128 bool ForceInputOffsetScalarField{false};
129};
#define INTEGRAL_LINE_TABULAR_SIZE
Baseclass of all VTK filters that wrap ttk modules.
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
TTK VTK-filter for the computation of edge-based integral lines of the gradient of an input scalar fi...
static ttkIntegralLines * New()
~ttkIntegralLines() override
This class describes a dynamic size data structure for thread safe computation. It is a linked list o...
TTK processing package for the computation of edge-based integral lines of the gradient of an input s...
Struct containing the data of an integral line. trajectories: vector of identifiers of each vertex th...