VTK
vtkPParticleTracerBase.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParticleTracerBase.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 vtkPParticleTracerBase_h
28 #define vtkPParticleTracerBase_h
29 
30 #include "vtkSmartPointer.h" // For protected ivars.
31 #include "vtkParticleTracerBase.h"
32 
33 #include <vector> // STL Header
34 
35 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
36 
37 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPParticleTracerBase : public vtkParticleTracerBase
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
48  virtual void SetController(vtkMultiProcessController* controller);
49  vtkGetObjectMacro(Controller, vtkMultiProcessController);
51 
52 protected:
54  {
58  };
59 
60  typedef std::vector<RemoteParticleInfo> RemoteParticleVector;
61 
64 
65  virtual int RequestUpdateExtent(vtkInformation* request,
66  vtkInformationVector** inputVector,
67  vtkInformationVector* outputVector);
68 
69 //
70 
71  virtual vtkPolyData* Execute(vtkInformationVector** inputVector);
74  vtkPointData*);
75 
83  virtual void AssignSeedsToProcessors(double time,
84  vtkDataSet *source, int sourceID, int ptId,
86  int &localAssignedCount);
87 
92  virtual void AssignUniqueIds(
94 
100  virtual bool SendReceiveParticles(RemoteParticleVector &outofdomain, RemoteParticleVector &received);
101 
103 
109  virtual bool IsPointDataValid(vtkDataObject* input);
110 
111 
112 //
113 
114 //
115 
116  // MPI controller needed when running in parallel
118 
119  // List used for transmitting between processors during parallel operation
120  RemoteParticleVector MPISendList;
121 
122  RemoteParticleVector Tail; //this is to receive the "tails" of traces from other processes
123 private:
124  vtkPParticleTracerBase(const vtkPParticleTracerBase&) VTK_DELETE_FUNCTION;
125  void operator=(const vtkPParticleTracerBase&) VTK_DELETE_FUNCTION;
126 };
127 #endif
virtual void AssignSeedsToProcessors(double time, vtkDataSet *source, int sourceID, int ptId, vtkParticleTracerBaseNamespace::ParticleVector &localSeedPoints, int &localAssignedCount)
all the injection/seed points according to which processor they belong to.
std::vector< RemoteParticleInfo > RemoteParticleVector
represent and manipulate point attribute data
Definition: vtkPointData.h:37
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
virtual void AssignUniqueIds(vtkParticleTracerBaseNamespace::ParticleVector &localSeedPoints)
give each one a uniqu ID.
vtkParticleTracerBaseNamespace::ParticleInformation Current
virtual vtkPolyData * Execute(vtkInformationVector **inputVector)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual bool SendParticleToAnotherProcess(vtkParticleTracerBaseNamespace::ParticleInformation &, vtkParticleTracerBaseNamespace::ParticleInformation &, vtkPointData *)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkParticleTracerBaseNamespace::ParticleInformation Previous
vtkSmartPointer< vtkPointData > PreviousPD
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMultiProcessController * Controller
virtual bool IsPointDataValid(vtkDataObject *input)
Methods that check that the input arrays are ordered the same on all data sets.
RemoteParticleVector MPISendList
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
std::vector< ParticleInformation > ParticleVector
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64
virtual bool UpdateParticleListFromOtherProcesses()
this is used during classification of seed points and also between iterations of the main loop as par...
A particle tracer for vector fields.
Multiprocessing communication superclass.