TTK
Loading...
Searching...
No Matches
ttkIntegralLines.h
Go to the documentation of this file.
1
60
61#pragma once
62
63// VTK Module
64#include <ttkIntegralLinesModule.h>
65
66// ttk code includes
67#include <IntegralLines.h>
68#include <ttkAlgorithm.h>
69
70class vtkUnstructuredGrid;
71
72class TTKINTEGRALLINES_EXPORT ttkIntegralLines : public ttkAlgorithm,
73 protected ttk::IntegralLines {
74
75public:
77
79
80 vtkGetMacro(Direction, int);
81 vtkSetMacro(Direction, int);
82
83 vtkSetMacro(ForceInputVertexScalarField, bool);
84 vtkGetMacro(ForceInputVertexScalarField, bool);
85
86 vtkSetMacro(ForceInputOffsetScalarField, bool);
87 vtkGetMacro(ForceInputOffsetScalarField, bool);
88
89 vtkSetMacro(EnableForking, bool);
90 vtkGetMacro(EnableForking, bool);
91
97 template <typename triangulationType>
98 int getTrajectories(
99 vtkDataSet *input,
100 const triangulationType *triangulation,
103 &integralLines,
104#ifdef TTK_ENABLE_MPI
105 const std::vector<ttk::SimplexId> &globalVertexId,
106 const std::vector<ttk::SimplexId> &globalCellId,
107#endif
108 vtkUnstructuredGrid *output);
109
110protected:
113
114 int FillInputPortInformation(int port, vtkInformation *info) override;
115 int FillOutputPortInformation(int port, vtkInformation *info) override;
116 int RequestData(vtkInformation *request,
117 vtkInformationVector **inputVector,
118 vtkInformationVector *outputVector) override;
119
120private:
121 int Direction{0};
122 bool ForceInputVertexScalarField{false};
123 bool ForceInputOffsetScalarField{false};
124};
#define INTEGRAL_LINE_TABULAR_SIZE
Definition: IntegralLines.h:31
Baseclass of all VTK filters that wrap ttk modules.
Definition: ttkAlgorithm.h:34
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
Definition: ttkAlgorithm.h:390
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:404
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:419
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...
Definition: IntegralLines.h:49