VTK
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
40 #include "vtkPolyDataAlgorithm.h"
41 
42 class vtkPoints;
43 class vtkCellArray;
44 class vtkMergePoints;
45 class vtkFloatArray;
46 
47 #include "vtkSmartPointer.h" // for memory safety
48 #include <set> // Because we want to use it
49 class ParticleTrail;
50 class vtkTemporalPathLineFilterInternals;
52 
53 class VTKFILTERSGENERAL_EXPORT vtkTemporalPathLineFilter : public vtkPolyDataAlgorithm
54 {
55 public:
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,int);
121  vtkGetMacro(KeepDeadTrails,int);
123 
128  void Flush();
129 
136 
143 
144 protected:
147 
148  //
149  // Make sure the pipeline knows what type we expect as input
150  //
153 
155 
160  vtkInformationVector *) override;
161  //
163  vtkInformationVector** inputVector,
164  vtkInformationVector* outputVector) override;
166 
169  TrailPointer trail, vtkDataSet *input, vtkIdType i);
170 
171  // internal data variables
174  unsigned int MaxTrackLength;
175  unsigned int LastTrackLength;
178  double MaxStepDistance[3];
179  double LatestTime;
182  //
183 
190  std::set<vtkIdType> SelectionIds;
191 
192  //
193 private:
195  void operator=(const vtkTemporalPathLineFilter&) = delete;
196 };
197 
198 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkTemporalPathLineFilter::PolyLines
vtkSmartPointer< vtkCellArray > PolyLines
Definition: vtkTemporalPathLineFilter.h:184
TrailPointer
vtkSmartPointer< ParticleTrail > TrailPointer
Definition: vtkTemporalPathLineFilter.h:50
vtkTemporalPathLineFilter::UsingSelection
int UsingSelection
Definition: vtkTemporalPathLineFilter.h:181
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkTemporalPathLineFilter::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
vtkTemporalPathLineFilter::SetSelectionConnection
void SetSelectionConnection(vtkAlgorithmOutput *algOutput)
Set a second input which is a selection.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTemporalPathLineFilter::~vtkTemporalPathLineFilter
~vtkTemporalPathLineFilter() override
vtkSmartPointer
Hold a reference to a vtkObjectBase instance.
Definition: vtkSmartPointer.h:37
vtkTemporalPathLineFilter::MaskPoints
int MaskPoints
Definition: vtkTemporalPathLineFilter.h:173
vtkTemporalPathLineFilter::New
static vtkTemporalPathLineFilter * New()
Standard Type-Macro.
vtkTemporalPathLineFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTemporalPathLineFilter::Flush
void Flush()
Flush will wipe any existing data so that traces can be restarted from whatever time step is next sup...
vtkTemporalPathLineFilter::IncrementTrail
void IncrementTrail(TrailPointer trail, vtkDataSet *input, vtkIdType i)
vtkPolyDataAlgorithm.h
vtkTemporalPathLineFilter::Internals
vtkSmartPointer< vtkTemporalPathLineFilterInternals > Internals
Definition: vtkTemporalPathLineFilter.h:189
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTemporalPathLineFilter::vtkTemporalPathLineFilter
vtkTemporalPathLineFilter()
vtkTemporalPathLineFilter::NumberOfTimeSteps
int NumberOfTimeSteps
Definition: vtkTemporalPathLineFilter.h:172
vtkTemporalPathLineFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:51
vtkTemporalPathLineFilter::LatestTime
double LatestTime
Definition: vtkTemporalPathLineFilter.h:179
vtkSmartPointer.h
vtkTemporalPathLineFilter::FirstTime
int FirstTime
Definition: vtkTemporalPathLineFilter.h:176
vtkTemporalPathLineFilter::LastTrackLength
unsigned int LastTrackLength
Definition: vtkTemporalPathLineFilter.h:175
vtkTemporalPathLineFilter::VertexCoordinates
vtkSmartPointer< vtkPoints > VertexCoordinates
Definition: vtkTemporalPathLineFilter.h:187
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkTemporalPathLineFilter::KeepDeadTrails
int KeepDeadTrails
Definition: vtkTemporalPathLineFilter.h:180
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkTemporalPathLineFilter
Generate a Polydata Pointset from any Dataset.
Definition: vtkTemporalPathLineFilter.h:54
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:40
vtkTemporalPathLineFilter::Vertices
vtkSmartPointer< vtkCellArray > Vertices
Definition: vtkTemporalPathLineFilter.h:185
vtkTemporalPathLineFilter::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkTemporalPathLineFilter::TrailId
vtkSmartPointer< vtkFloatArray > TrailId
Definition: vtkTemporalPathLineFilter.h:188
vtkTemporalPathLineFilter::MaxTrackLength
unsigned int MaxTrackLength
Definition: vtkTemporalPathLineFilter.h:174
vtkTemporalPathLineFilter::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
The necessary parts of the standard pipeline update mechanism.
vtkTemporalPathLineFilter::GetTrail
TrailPointer GetTrail(vtkIdType i)
vtkTemporalPathLineFilter::LineCoordinates
vtkSmartPointer< vtkPoints > LineCoordinates
Definition: vtkTemporalPathLineFilter.h:186
vtkMergePoints
merge exactly coincident points
Definition: vtkMergePoints.h:37
vtkTemporalPathLineFilter::IdChannelArray
char * IdChannelArray
Definition: vtkTemporalPathLineFilter.h:177
vtkTemporalPathLineFilter::SetSelectionData
void SetSelectionData(vtkDataSet *input)
Set a second input which is a selection.
vtkTemporalPathLineFilter::SelectionIds
std::set< vtkIdType > SelectionIds
Definition: vtkTemporalPathLineFilter.h:190
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45