ParaView
vtkInSituPParticlePathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
29 #ifndef vtkInSituPParticlePathFilter_h
30 #define vtkInSituPParticlePathFilter_h
31 
32 #include "vtkPParticlePathFilter.h"
33 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
34 
35 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkInSituPParticlePathFilter : public vtkPParticlePathFilter
36 {
37 public:
38  vtkTypeMacro(vtkInSituPParticlePathFilter, vtkPParticlePathFilter) void PrintSelf(
39  ostream& os, vtkIndent indent);
40 
41  static vtkInSituPParticlePathFilter* New();
42 
47  void SetClearCache(bool);
48 
50 
53  void AddRestartConnection(vtkAlgorithmOutput* input);
54  void RemoveAllRestarts();
56 
58 
63  vtkSetMacro(RestartedSimulation, bool);
64  vtkGetMacro(RestartedSimulation, bool);
66 
68 
73  vtkSetMacro(FirstTimeStep, int);
74  vtkGetMacro(FirstTimeStep, int);
76 
77 protected:
80 
89  virtual std::vector<vtkDataSet*> GetSeedSources(vtkInformationVector* inputVector, int timeStep);
90 
96  virtual int FillInputPortInformation(int port, vtkInformation* info);
97 
98  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
99  vtkInformationVector* outputVector);
100 
105  virtual void AddRestartSeeds(vtkInformationVector**);
106 
116  virtual void AssignSeedsToProcessors(double time, vtkDataSet* source, int sourceID, int ptId,
117  vtkParticleTracerBaseNamespace::ParticleVector& localSeedPoints, int& localAssignedCount);
118 
119 private:
121  void operator=(const vtkInSituPParticlePathFilter&) VTK_DELETE_FUNCTION;
122 
128  bool UseArrays;
129 
135  bool RestartedSimulation;
136 
138 
145  int FirstTimeStep;
146 };
147 #endif
148 
An In Situ Particle tracer for unsteady vector fields.