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 "vtkPVVTKExtensionsFiltersGeneralMPIModule.h" //needed for exports
34 
36  : public vtkPParticlePathFilter
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
48  void SetClearCache(bool);
49 
51 
54  void AddRestartConnection(vtkAlgorithmOutput* input);
55  void RemoveAllRestarts();
57 
59 
64  vtkSetMacro(RestartedSimulation, bool);
65  vtkGetMacro(RestartedSimulation, bool);
67 
69 
74  vtkSetMacro(FirstTimeStep, int);
75  vtkGetMacro(FirstTimeStep, int);
77 
78 protected:
81 
90  virtual std::vector<vtkDataSet*> GetSeedSources(
91  vtkInformationVector* inputVector, int timeStep) override;
92 
98  virtual int FillInputPortInformation(int port, vtkInformation* info) override;
99 
100  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
101  vtkInformationVector* outputVector) override;
102 
107  virtual void AddRestartSeeds(vtkInformationVector**) override;
108 
118  virtual void AssignSeedsToProcessors(double time, vtkDataSet* source, int sourceID, int ptId,
120  int& localAssignedCount) override;
121 
122 private:
124  void operator=(const vtkInSituPParticlePathFilter&) = delete;
125 
131  bool UseArrays;
132 
138  bool RestartedSimulation;
139 
141 
148  int FirstTimeStep;
149 };
150 #endif
151 
An In Situ Particle tracer for unsteady vector fields.
virtual std::vector< vtkDataSet *> GetSeedSources(vtkInformationVector *inputVector, int timeStep)
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void AddRestartSeeds(vtkInformationVector **)
static vtkPParticlePathFilter * New()
void PrintSelf(ostream &os, vtkIndent indent)
virtual void AssignSeedsToProcessors(double time, vtkDataSet *source, int sourceID, int ptId, vtkParticleTracerBaseNamespace::ParticleVector &localSeedPoints, int &localAssignedCount)
std::vector< ParticleInformation > ParticleVector
virtual int FillInputPortInformation(int port, vtkInformation *info)
void operator=(const vtkObjectBase &)
#define VTKPVVTKEXTENSIONSFILTERSGENERALMPI_EXPORT