VTK  9.2.6
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=========================================================================*/
39#ifndef vtkTemporalPathLineFilter_h
40#define vtkTemporalPathLineFilter_h
41
42#include "vtkFiltersGeneralModule.h" // For export macro
44
45class vtkPoints;
46class vtkCellArray;
47class vtkMergePoints;
48class vtkFloatArray;
49
50#include "vtkSmartPointer.h" // for memory safety
51#include <set> // Because we want to use it
52class ParticleTrail;
53class vtkTemporalPathLineFilterInternals;
55
56class VTKFILTERSGENERAL_EXPORT vtkTemporalPathLineFilter : public vtkPolyDataAlgorithm
57{
58public:
60
65 void PrintSelf(ostream& os, vtkIndent indent) override;
67
69
73 vtkSetMacro(MaskPoints, int);
74 vtkGetMacro(MaskPoints, int);
76
78
86 vtkSetMacro(MaxTrackLength, unsigned int);
87 vtkGetMacro(MaxTrackLength, unsigned int);
89
91
99 vtkSetStringMacro(IdChannelArray);
100 vtkGetStringMacro(IdChannelArray);
102
104
112 vtkSetVector3Macro(MaxStepDistance, double);
113 vtkGetVector3Macro(MaxStepDistance, double);
115
117
123 vtkSetMacro(KeepDeadTrails, bool);
124 vtkGetMacro(KeepDeadTrails, bool);
126
128
137 virtual void SetBackwardTime(bool backward);
138 vtkGetMacro(BackwardTime, bool);
140
145 void Flush();
146
153
160
161protected:
164
165 //
166 // Make sure the pipeline knows what type we expect as input
167 //
168 int FillInputPortInformation(int port, vtkInformation* info) override;
169 int FillOutputPortInformation(int port, vtkInformation* info) override;
170
172
176 //
178 vtkInformationVector* outputVector) override;
180
183
184 // internal data variables
185 int NumberOfTimeSteps = 0;
186 int MaskPoints = 200;
187 unsigned int MaxTrackLength = 10;
188 unsigned int LastTrackLength = 10;
189 int FirstTime = 1;
190 char* IdChannelArray = nullptr;
191 double MaxStepDistance[3] = { 1, 1, 1 };
193 bool KeepDeadTrails = false;
194 bool UsingSelection = false;
195 bool BackwardTime = false;
196 //
197
204 std::set<vtkIdType> SelectionIds;
205
206 //
207private:
209 void operator=(const vtkTemporalPathLineFilter&) = delete;
210};
211
212#endif
Proxy object to connect input/output ports.
object to represent cell connectivity
abstract class to specify dataset behavior
Definition vtkDataSet.h:63
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
merge exactly coincident points
represent and manipulate 3D points
Definition vtkPoints.h:40
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:332