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
43 #include "vtkPolyDataAlgorithm.h"
44 
45 class vtkPoints;
46 class vtkCellArray;
47 class vtkMergePoints;
48 class vtkFloatArray;
49 
50 #include "vtkSmartPointer.h" // for memory safety
51 #include <set> // Because we want to use it
52 class ParticleTrail;
53 class vtkTemporalPathLineFilterInternals;
55 
56 class VTKFILTERSGENERAL_EXPORT vtkTemporalPathLineFilter : public vtkPolyDataAlgorithm
57 {
58 public:
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 
152  void SetSelectionConnection(vtkAlgorithmOutput* algOutput);
153 
159  void SetSelectionData(vtkDataSet* input);
160 
161 protected:
163  ~vtkTemporalPathLineFilter() override;
164 
165  //
166  // Make sure the pipeline knows what type we expect as input
167  //
168  int FillInputPortInformation(int port, vtkInformation* info) override;
170 
172 
176  //
177  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
178  vtkInformationVector* outputVector) override;
180 
181  TrailPointer GetTrail(vtkIdType i);
182  void IncrementTrail(TrailPointer trail, vtkDataSet* input, vtkIdType i);
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 };
192  double LatestTime;
193  bool KeepDeadTrails = false;
194  bool UsingSelection = false;
195  bool BackwardTime = false;
196  //
197 
204  std::set<vtkIdType> SelectionIds;
205 
206  //
207 private:
209  void operator=(const vtkTemporalPathLineFilter&) = delete;
210 };
211 
212 #endif
vtkSmartPointer< vtkFloatArray > TrailId
vtkSmartPointer< vtkCellArray > Vertices
vtkSmartPointer< vtkPoints > VertexCoordinates
Generate a Polydata Pointset from any Dataset.
vtkSmartPointer< ParticleTrail > TrailPointer
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:41
Hold a reference to a vtkObjectBase instance.
Definition: vtkMeta.h:32
int vtkIdType
Definition: vtkType.h:332
Proxy object to connect input/output ports.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
merge exactly coincident points
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSmartPointer< vtkPoints > LineCoordinates
vtkSmartPointer< vtkTemporalPathLineFilterInternals > Internals
object to represent cell connectivity
Definition: vtkCellArray.h:186
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
vtkSmartPointer< vtkCellArray > PolyLines
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.