VTK
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 =========================================================================*/
27 #ifndef vtkPTemporalStreamTracer_h
28 #define vtkPTemporalStreamTracer_h
29 
30 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
31 #include "vtkSmartPointer.h" // For protected ivars.
33 
34 #include <vector> // STL Header
35 #include <list> // STL Header
36 
38 
40 class vtkDataArray;
41 class vtkDoubleArray;
42 class vtkGenericCell;
43 class vtkIntArray;
45 class vtkPoints;
46 class vtkCellArray;
47 class vtkDoubleArray;
48 class vtkFloatArray;
49 class vtkIntArray;
50 class vtkCharArray;
52 
53 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPTemporalStreamTracer : public vtkTemporalStreamTracer
54 {
55 public:
56 
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
63  static vtkPTemporalStreamTracer *New();
64 
66 
70  virtual void SetController(vtkMultiProcessController* controller);
71  vtkGetObjectMacro(Controller, vtkMultiProcessController);
73 
74  protected:
75 
78 
79  //
80  // Generate output
81  //
82  virtual int RequestData(vtkInformation* request,
83  vtkInformationVector** inputVector,
84  vtkInformationVector* outputVector);
85 
86 //
87 
88 //
89 
96  virtual void AssignSeedsToProcessors(
97  vtkDataSet *source, int sourceID, int ptId,
99  int &LocalAssignedCount);
100 
105  virtual void AssignUniqueIds(
107 
112  virtual void TransmitReceiveParticles(
115  bool removeself);
116 
119 
120 //
121 
122 //
123 
124  // MPI controller needed when running in parallel
126 
127 private:
128  vtkPTemporalStreamTracer(const vtkPTemporalStreamTracer&) VTK_DELETE_FUNCTION;
129  void operator=(const vtkPTemporalStreamTracer&) VTK_DELETE_FUNCTION;
130 };
131 
132 #endif
A helper class for interpolating between times during particle tracing.
abstract class to write particle data to file
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual void AssignSeedsToProcessors(vtkDataSet *source, int sourceID, int ptId, vtkTemporalStreamTracerNamespace::ParticleVector &LocalSeedPoints, int &LocalAssignedCount)
all the injection/seed points according to which processor they belong to.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:41
provides thread-safe access to cells
dynamic, self-adjusting array of double
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkMultiProcessController * Controller
dynamic, self-adjusting array of char
Definition: vtkCharArray.h:38
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:45
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
void AddParticleToMPISendList(vtkTemporalStreamTracerNamespace::ParticleInformation &info)
A Parallel Particle tracer for unsteady vector fields.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
object to represent cell connectivity
Definition: vtkCellArray.h:50
Composite dataset that organizes datasets into blocks.
static vtkTemporalStreamTracer * New()
Construct object using 2nd order Runge Kutta.
Store zero or more vtkInformation instances.
virtual void AssignUniqueIds(vtkTemporalStreamTracerNamespace::ParticleVector &LocalSeedPoints)
give each one a uniqu ID.
std::vector< ParticleInformation > ParticleVector
represent and manipulate 3D points
Definition: vtkPoints.h:39
virtual void TransmitReceiveParticles(vtkTemporalStreamTracerNamespace::ParticleVector &outofdomain, vtkTemporalStreamTracerNamespace::ParticleVector &received, bool removeself)
this is used during classification of seed points and also between iterations of the main loop as par...
Multiprocessing communication superclass.