VTK
vtkParticlePathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParticlePathFilter.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 =========================================================================*/
28 #ifndef vtkParticlePathFilter_h
29 #define vtkParticlePathFilter_h
30 
31 #include "vtkFiltersFlowPathsModule.h" // For export macro
32 #include "vtkSmartPointer.h" // For protected ivars.
33 #include "vtkParticleTracerBase.h"
34 #include <vector> // For protected ivars
35 
37 {
38 public:
39  ParticlePathFilterInternal():Filter(NULL){}
40  void Initialize(vtkParticleTracerBase* filter);
42  virtual int OutputParticles(vtkPolyData* poly);
43  void Finalize();
44  void Reset();
45 
46 private:
47  vtkParticleTracerBase* Filter;
48  std::vector<vtkSmartPointer<vtkIdList> > Paths;
49 };
50 
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
57  static vtkParticlePathFilter *New();
58 
59 protected:
62  vtkParticlePathFilter(const vtkParticlePathFilter&); // Not implemented.
63  void operator=(const vtkParticlePathFilter&); // Not implemented.
64 
65  virtual void ResetCache();
66  virtual int OutputParticles(vtkPolyData* poly);
67  virtual void InitializeExtraPointDataArrays(vtkPointData* outputPD);
69 
70  void Finalize();
71 
73 
74 private:
75  vtkDoubleArray* SimulationTime;
76  vtkIntArray* SimulationTimeStep;
77 };
78 
79 
80 #endif
#define VTKFILTERSFLOWPATHS_EXPORT
represent and manipulate point attribute data
Definition: vtkPointData.h:36
void PrintSelf(ostream &os, vtkIndent indent)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
dynamic, self-adjusting array of double
static vtkPolyDataAlgorithm * New()
virtual void AppendToExtraPointDataArrays(vtkParticleTracerBaseNamespace::ParticleInformation &)
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void ResetCache()
A Parallel Particle tracer for unsteady vector fields.
virtual void InitializeExtraPointDataArrays(vtkPointData *vtkNotUsed(outputPD))
virtual int OutputParticles(vtkPolyData *poly)=0
ParticlePathFilterInternal It
A particle tracer for vector fields.