VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
36 class VTKFILTERSFLOWPATHS_EXPORT ParticlePathFilterInternal
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 
51 class VTKFILTERSFLOWPATHS_EXPORT vtkParticlePathFilter: public vtkParticleTracerBase
52 {
53  public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
57  static vtkParticlePathFilter *New();
58 
59  protected:
61  ~vtkParticlePathFilter(){}
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  void Finalize();
68 
70 };
71 
72 
73 #endif
virtual void ResetCache()
A Parallel Particle tracer for unsteady vector fields.
virtual int OutputParticles(vtkPolyData *poly)=0
ParticlePathFilterInternal It
A particle tracer for vector fields.