VTK  9.3.0
vtkTemporalPathLineFilter.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
27#ifndef vtkTemporalPathLineFilter_h
28#define vtkTemporalPathLineFilter_h
29
30#include "vtkFiltersGeneralModule.h" // For export macro
32
33VTK_ABI_NAMESPACE_BEGIN
34class vtkPoints;
35class vtkCellArray;
36class vtkMergePoints;
37class vtkFloatArray;
38
39VTK_ABI_NAMESPACE_END
40#include "vtkSmartPointer.h" // for memory safety
41#include <set> // Because we want to use it
42VTK_ABI_NAMESPACE_BEGIN
43class ParticleTrail;
44class vtkTemporalPathLineFilterInternals;
46
47class VTKFILTERSGENERAL_EXPORT vtkTemporalPathLineFilter : public vtkPolyDataAlgorithm
48{
49public:
51
56 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
64 vtkSetMacro(MaskPoints, int);
65 vtkGetMacro(MaskPoints, int);
67
69
77 vtkSetMacro(MaxTrackLength, unsigned int);
78 vtkGetMacro(MaxTrackLength, unsigned int);
80
82
90 vtkSetStringMacro(IdChannelArray);
91 vtkGetStringMacro(IdChannelArray);
93
95
103 vtkSetVector3Macro(MaxStepDistance, double);
104 vtkGetVector3Macro(MaxStepDistance, double);
106
108
114 vtkSetMacro(KeepDeadTrails, bool);
115 vtkGetMacro(KeepDeadTrails, bool);
117
119
128 virtual void SetBackwardTime(bool backward);
129 vtkGetMacro(BackwardTime, bool);
131
136 void Flush();
137
144
151
152protected:
155
156 //
157 // Make sure the pipeline knows what type we expect as input
158 //
159 int FillInputPortInformation(int port, vtkInformation* info) override;
160 int FillOutputPortInformation(int port, vtkInformation* info) override;
161
163
167 //
169 vtkInformationVector* outputVector) override;
171
174
175 // internal data variables
176 int NumberOfTimeSteps = 0;
177 int MaskPoints = 200;
178 unsigned int MaxTrackLength = 10;
179 unsigned int LastTrackLength = 10;
180 int FirstTime = 1;
181 char* IdChannelArray = nullptr;
182 double MaxStepDistance[3] = { 1, 1, 1 };
184 bool KeepDeadTrails = false;
185 bool UsingSelection = false;
186 bool BackwardTime = false;
187 //
188
195 std::set<vtkIdType> SelectionIds;
196
197 //
198private:
200 void operator=(const vtkTemporalPathLineFilter&) = delete;
201};
202
203VTK_ABI_NAMESPACE_END
204#endif
Proxy object to connect input/output ports.
object to represent cell connectivity
abstract class to specify dataset behavior
Definition vtkDataSet.h:53
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
merge exactly coincident points
represent and manipulate 3D points
Definition vtkPoints.h:29
Superclass for algorithms that produce only polydata as output.
Hold a reference to a vtkObjectBase instance.
Generate a Polydata Pointset from any Dataset.
void SetSelectionConnection(vtkAlgorithmOutput *algOutput)
Set a second input which is a selection.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
The necessary parts of the standard pipeline update mechanism.
vtkSmartPointer< vtkTemporalPathLineFilterInternals > Internals
void IncrementTrail(TrailPointer trail, vtkDataSet *input, vtkIdType i)
TrailPointer GetTrail(vtkIdType i)
vtkSmartPointer< vtkFloatArray > TrailId
vtkSmartPointer< vtkPoints > LineCoordinates
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkSmartPointer< vtkCellArray > Vertices
~vtkTemporalPathLineFilter() override
void Flush()
Flush will wipe any existing data so that traces can be restarted from whatever time step is next sup...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard Type-Macro.
vtkSmartPointer< vtkCellArray > PolyLines
void SetSelectionData(vtkDataSet *input)
Set a second input which is a selection.
virtual void SetBackwardTime(bool backward)
Set / Get if the filter is configured to work in backward time going mode.
vtkSmartPointer< vtkPoints > VertexCoordinates
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
static vtkTemporalPathLineFilter * New()
Standard Type-Macro.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
The necessary parts of the standard pipeline update mechanism.
vtkSmartPointer< ParticleTrail > TrailPointer
int vtkIdType
Definition vtkType.h:315