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 SetClearCache(bool clearCache)
44  {
45  this->ClearCache = clearCache;
46  }
48  {
49  return this->ClearCache;
50  }
51  void Finalize();
52  void Reset();
53 
54 private:
55  vtkParticleTracerBase* Filter;
56  // Paths doesn't seem to work properly. it is meant to make connecting lines
57  // for the particles
58  std::vector<vtkSmartPointer<vtkIdList> > Paths;
59  bool ClearCache; // false by default
60 };
61 
63 {
64 public:
66  void PrintSelf(ostream& os, vtkIndent indent);
67 
68  static vtkParticlePathFilter *New();
69 
70 protected:
72  ~vtkParticlePathFilter();
73  vtkParticlePathFilter(const vtkParticlePathFilter&); // Not implemented.
74  void operator=(const vtkParticlePathFilter&); // Not implemented.
75 
76  virtual void ResetCache();
77  virtual int OutputParticles(vtkPolyData* poly);
78  virtual void InitializeExtraPointDataArrays(vtkPointData* outputPD);
79  virtual void AppendToExtraPointDataArrays(vtkParticleTracerBaseNamespace::ParticleInformation &);
80 
81  void Finalize();
82 
84 
85 private:
86  vtkDoubleArray* SimulationTime;
87  vtkIntArray* SimulationTimeStep;
88 };
89 
90 #endif
#define VTKFILTERSFLOWPATHS_EXPORT
represent and manipulate point attribute data
Definition: vtkPointData.h:36
void SetClearCache(bool clearCache)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
dynamic, self-adjusting array of double
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
a simple class to control print indentation
Definition: vtkIndent.h:38
A Parallel Particle tracer for unsteady vector fields.
A particle tracer for vector fields.