VTK  9.0.3
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 "vtkConfigure.h" // For legacy defines
36 #include "vtkSetGet.h" // For legacy macros
37 #ifndef VTK_LEGACY_REMOVE
38 
39 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
40 #include "vtkSmartPointer.h" // For protected ivars.
42 
43 #include <list> // STL Header
44 #include <vector> // STL Header
45 
47 
49 class vtkDataArray;
50 class vtkDoubleArray;
51 class vtkGenericCell;
52 class vtkIntArray;
54 class vtkPoints;
55 class vtkCellArray;
56 class vtkDoubleArray;
57 class vtkFloatArray;
58 class vtkIntArray;
59 class vtkCharArray;
61 
62 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPTemporalStreamTracer : public vtkTemporalStreamTracer
63 {
64 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
72 
74 
78  virtual void SetController(vtkMultiProcessController* controller);
79  vtkGetObjectMacro(Controller, vtkMultiProcessController);
81 
82 protected:
83  VTK_LEGACY(vtkPTemporalStreamTracer());
85 
86  //
87  // Generate output
88  //
89  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector) override;
91 
92  //
93 
94  //
95 
102  virtual void AssignSeedsToProcessors(vtkDataSet* source, int sourceID, int ptId,
104  int& LocalAssignedCount) override;
105 
110  virtual void AssignUniqueIds(
111  vtkTemporalStreamTracerNamespace::ParticleVector& LocalSeedPoints) override;
112 
119  vtkTemporalStreamTracerNamespace::ParticleVector& received, bool removeself) override;
120 
122 
123  //
124 
125  //
126 
127  // MPI controller needed when running in parallel
129 
130 private:
132  void operator=(const vtkPTemporalStreamTracer&) = delete;
133 };
134 
135 #endif // VTK_LEGACY_REMOVE
136 
137 #endif
abstract class to write particle data to file
object to represent cell connectivity
Definition: vtkCellArray.h:180
dynamic, self-adjusting array of char
Definition: vtkCharArray.h:36
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 *)