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 =========================================================================*/
26 #ifndef vtkPTemporalStreamTracer_h
27 #define vtkPTemporalStreamTracer_h
28 
29 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
30 #include "vtkSmartPointer.h" // For protected ivars.
32 
33 //BTX
34 #include <vector> // STL Header
35 #include <list> // STL Header
36 //ETX
37 
39 
41 class vtkDataArray;
42 class vtkDoubleArray;
43 class vtkGenericCell;
44 class vtkIntArray;
46 class vtkPoints;
47 class vtkCellArray;
48 class vtkDoubleArray;
49 class vtkFloatArray;
50 class vtkIntArray;
51 class vtkCharArray;
53 
54 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPTemporalStreamTracer : public vtkTemporalStreamTracer
55 {
56 public:
57 
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62  static vtkPTemporalStreamTracer *New();
63 
65 
67  virtual void SetController(vtkMultiProcessController* controller);
68  vtkGetObjectMacro(Controller, vtkMultiProcessController);
70 
71  protected:
72 
75 
76  //
77  // Generate output
78  //
79  virtual int RequestData(vtkInformation* request,
80  vtkInformationVector** inputVector,
81  vtkInformationVector* outputVector);
82 
83 //
84 //BTX
85 //
86 
88 
92  virtual void AssignSeedsToProcessors(
93  vtkDataSet *source, int sourceID, int ptId,
95  int &LocalAssignedCount);
97 
99 
101  virtual void AssignUniqueIds(
104 
106 
109  virtual void TransmitReceiveParticles(
112  bool removeself);
114 
117 
118 //
119 //ETX
120 //
121 
122  // MPI controller needed when running in parallel
124 
125 private:
126  vtkPTemporalStreamTracer(const vtkPTemporalStreamTracer&); // Not implemented.
127  void operator=(const vtkPTemporalStreamTracer&); // Not implemented.
128 };
129 
130 #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:61
virtual void AssignSeedsToProcessors(vtkDataSet *source, int sourceID, int ptId, vtkTemporalStreamTracerNamespace::ParticleVector &LocalSeedPoints, int &LocalAssignedCount)
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
provides thread-safe access to cells
dynamic, self-adjusting array of double
void PrintSelf(ostream &os, vtkIndent indent)
vtkMultiProcessController * Controller
dynamic, self-adjusting array of char
Definition: vtkCharArray.h:42
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
a simple class to control print indentation
Definition: vtkIndent.h:38
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)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
object to represent cell connectivity
Definition: vtkCellArray.h:49
Composite dataset that organizes datasets into blocks.
static vtkTemporalStreamTracer * New()
Store zero or more vtkInformation instances.
virtual void AssignUniqueIds(vtkTemporalStreamTracerNamespace::ParticleVector &LocalSeedPoints)
std::vector< ParticleInformation > ParticleVector
represent and manipulate 3D points
Definition: vtkPoints.h:38
virtual void TransmitReceiveParticles(vtkTemporalStreamTracerNamespace::ParticleVector &outofdomain, vtkTemporalStreamTracerNamespace::ParticleVector &received, bool removeself)
Multiprocessing communication superclass.