VTK  9.1.0
vtkTemporalPathLineFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTemporalPathLineFilter.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 vtkTemporalPathLineFilter_h
37#define vtkTemporalPathLineFilter_h
38
39#include "vtkFiltersGeneralModule.h" // For export macro
41
42class vtkPoints;
43class vtkCellArray;
44class vtkMergePoints;
45class vtkFloatArray;
46
47#include "vtkSmartPointer.h" // for memory safety
48#include <set> // Because we want to use it
49class ParticleTrail;
50class vtkTemporalPathLineFilterInternals;
52
53class VTKFILTERSGENERAL_EXPORT vtkTemporalPathLineFilter : public vtkPolyDataAlgorithm
54{
55public:
57
62 void PrintSelf(ostream& os, vtkIndent indent) override;
64
66
70 vtkSetMacro(MaskPoints, int);
71 vtkGetMacro(MaskPoints, int);
73
75
83 vtkSetMacro(MaxTrackLength, unsigned int);
84 vtkGetMacro(MaxTrackLength, unsigned int);
86
88
96 vtkSetStringMacro(IdChannelArray);
97 vtkGetStringMacro(IdChannelArray);
99
101
109 vtkSetVector3Macro(MaxStepDistance, double);
110 vtkGetVector3Macro(MaxStepDistance, double);
112
114
120 vtkSetMacro(KeepDeadTrails, bool);
121 vtkGetMacro(KeepDeadTrails, bool);
123
125
134 virtual void SetBackwardTime(bool backward);
135 vtkGetMacro(BackwardTime, bool);
137
142 void Flush();
143
150
157
158protected:
161
162 //
163 // Make sure the pipeline knows what type we expect as input
164 //
167
169
173 //
175 vtkInformationVector* outputVector) override;
177
180
181 // internal data variables
182 int NumberOfTimeSteps = 0;
183 int MaskPoints = 200;
184 unsigned int MaxTrackLength = 10;
185 unsigned int LastTrackLength = 10;
186 int FirstTime = 1;
187 char* IdChannelArray = nullptr;
188 double MaxStepDistance[3] = { 1, 1, 1 };
190 bool KeepDeadTrails = false;
191 bool UsingSelection = false;
192 bool BackwardTime = false;
193 //
194
201 std::set<vtkIdType> SelectionIds;
202
203 //
204private:
206 void operator=(const vtkTemporalPathLineFilter&) = delete;
207};
208
209#endif
Proxy object to connect input/output ports.
object to represent cell connectivity
Definition: vtkCellArray.h:290
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
merge exactly coincident points
represent and manipulate 3D points
Definition: vtkPoints.h:143
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.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
vtkSmartPointer< ParticleTrail > TrailPointer
int vtkIdType
Definition: vtkType.h:332