VTK  9.1.0
vtkPTemporalStreamTracer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTemporalStreamTracer.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 =========================================================================*/
32 #ifndef vtkPTemporalStreamTracer_h
33 #define vtkPTemporalStreamTracer_h
34 
35 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_0_0
36 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
37 #include "vtkSmartPointer.h" // For protected ivars.
39 
40 #include <list> // STL Header
41 #include <vector> // STL Header
42 
44 
46 class vtkDataArray;
47 class vtkDoubleArray;
48 class vtkGenericCell;
49 class vtkIntArray;
51 class vtkPoints;
52 class vtkCellArray;
53 class vtkDoubleArray;
54 class vtkFloatArray;
55 class vtkIntArray;
57 
58 VTK_DEPRECATED_IN_9_0_0("Use one of vtkParticleTracerBase, vtkParticleTracer, "
59  "vtkParticlePathFilter, or vtkStreaklineFilter")
60 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPTemporalStreamTracer : public vtkTemporalStreamTracer
61 {
62 public:
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
70 
72 
76  virtual void SetController(vtkMultiProcessController* controller);
77  vtkGetObjectMacro(Controller, vtkMultiProcessController);
79 
80 protected:
83 
84  //
85  // Generate output
86  //
87  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
88  vtkInformationVector* outputVector) override;
89 
90  //
91 
92  //
93 
100  virtual void AssignSeedsToProcessors(vtkDataSet* source, int sourceID, int ptId,
102  int& LocalAssignedCount) override;
103 
108  virtual void AssignUniqueIds(
109  vtkTemporalStreamTracerNamespace::ParticleVector& LocalSeedPoints) override;
110 
117  vtkTemporalStreamTracerNamespace::ParticleVector& received, bool removeself) override;
118 
120 
121  // MPI controller needed when running in parallel
123 
124 private:
126  void operator=(const vtkPTemporalStreamTracer&) = delete;
127 };
128 
129 #endif
abstract class to write particle data to file
object to represent cell connectivity
Definition: vtkCellArray.h:181
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
dynamic, self-adjusting array of double
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:36
provides thread-safe access to cells
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:40
Composite dataset that organizes datasets into blocks.
Multiprocessing communication superclass.
vtkMultiProcessController * Controller
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void AssignUniqueIds(vtkTemporalStreamTracerNamespace::ParticleVector &LocalSeedPoints) override
give each one a unique ID.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void AddParticleToMPISendList(vtkTemporalStreamTracerNamespace::ParticleInformation &info)
static vtkPTemporalStreamTracer * New()
Construct object using 2nd order Runge Kutta.
virtual void AssignSeedsToProcessors(vtkDataSet *source, int sourceID, int ptId, vtkTemporalStreamTracerNamespace::ParticleVector &LocalSeedPoints, int &LocalAssignedCount) override
all the injection/seed points according to which processor they belong to.
virtual void TransmitReceiveParticles(vtkTemporalStreamTracerNamespace::ParticleVector &outofdomain, vtkTemporalStreamTracerNamespace::ParticleVector &received, bool removeself) override
this is used during classification of seed points and also between iterations of the main loop as par...
virtual void SetController(vtkMultiProcessController *controller)
Set/Get the controller used when sending particles between processes The controller must be an instan...
represent and manipulate 3D points
Definition: vtkPoints.h:34
A helper class for interpolating between times during particle tracing.
A Parallel Particle tracer for unsteady vector fields.
std::vector< ParticleInformation > ParticleVector
@ info
Definition: vtkX3D.h:382
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_DEPRECATED_IN_9_0_0(reason)