vtkInSituPParticlePathFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkInSituPParticlePathFilter_h
18 #define vtkInSituPParticlePathFilter_h
19 
21 #include "vtkPVVTKExtensionsFiltersGeneralMPIModule.h" //needed for exports
22 #include "vtkParaViewDeprecation.h" // For PARAVIEW_DEPRECATED_IN_6_3_0
23 
24 class PARAVIEW_DEPRECATED_IN_6_3_0("Use vtkPParticlePathFilter instead.")
25  VTKPVVTKEXTENSIONSFILTERSGENERALMPI_EXPORT vtkInSituPParticlePathFilter
27 {
28 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
38  void SetClearCache(bool);
39 
41 
44  void AddRestartConnection(vtkAlgorithmOutput* input);
45  void RemoveAllRestarts();
47 
49 
54  vtkSetMacro(RestartedSimulation, bool);
55  vtkGetMacro(RestartedSimulation, bool);
57 
59 
64  vtkSetMacro(FirstTimeStep, int);
65  vtkGetMacro(FirstTimeStep, int);
67 
68 protected:
70  ~vtkInSituPParticlePathFilter() override;
71 
80  std::vector<vtkDataSet*> GetSeedSources(vtkInformationVector* inputVector, int timeStep) override;
81 
87  int FillInputPortInformation(int port, vtkInformation* info) override;
88 
89  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector) override;
91 
96  void AddRestartSeeds(vtkInformationVector**) override;
97 
107  void AssignSeedsToProcessors(double time, vtkDataSet* source, int sourceID, int ptId,
109  int& localAssignedCount) override;
110 
111 private:
113  void operator=(const vtkInSituPParticlePathFilter&) = delete;
114 
120  bool UseArrays;
121 
127  bool RestartedSimulation;
128 
130 
137  int FirstTimeStep;
138 };
139 #endif
140 
An In Situ Particle tracer for unsteady vector fields.
virtual void AddRestartSeeds(vtkInformationVector **)
For restarts of particle paths, we add in the ability to add in particles from a previous computation...
void PrintSelf(ostream &os, vtkIndent indent) override
void AssignSeedsToProcessors(double time, vtkDataSet *source, int sourceID, int ptId, vtkLegacyParticleTracerBaseNamespace::ParticleVector &localSeedPoints, int &localAssignedCount) override
Before starting the particle trace, classify all the injection/seed points according to which process...
virtual std::vector< vtkDataSet * > GetSeedSources(vtkInformationVector *inputVector, int timeStep)
Method to get the data set seed sources.
A Parallel Particle tracer for unsteady vector fields.
std::vector< ParticleInformation > ParticleVector
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
static vtkLegacyPParticlePathFilter * New()
int FillInputPortInformation(int port, vtkInformation *info) override