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  =========================================================================*/
26 #ifndef vtkPParticleTracerBase_h
27 #define vtkPParticleTracerBase_h
28 
29 #include "vtkSmartPointer.h" // For protected ivars.
30 #include "vtkParticleTracerBase.h"
31 
32 //BTX
33 #include <vector> // STL Header
34 //ETX
35 
36 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
37 
38 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPParticleTracerBase : public vtkParticleTracerBase
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
47  virtual void SetController(vtkMultiProcessController* controller);
48  vtkGetObjectMacro(Controller, vtkMultiProcessController);
50 
51 protected:
53  {
57  };
58 
59  typedef std::vector<RemoteParticleInfo> RemoteParticleVector;
60 
63 
64  virtual int RequestUpdateExtent(vtkInformation* request,
65  vtkInformationVector** inputVector,
66  vtkInformationVector* outputVector);
67 
68 //
69 //BTX
70 
71  virtual vtkPolyData* Execute(vtkInformationVector** inputVector);
74  vtkPointData*);
75 
77 
81  virtual void AssignSeedsToProcessors(double time,
82  vtkDataSet *source, int sourceID, int ptId,
84  int &localAssignedCount);
86 
88 
90  virtual void AssignUniqueIds(
93 
97  virtual bool SendReceiveParticles(RemoteParticleVector &outofdomain, RemoteParticleVector &received);
98 
100 
104  virtual bool IsPointDataValid(vtkDataObject* input);
105 
106 
107 //
108 //ETX
109 //
110 
111  // MPI controller needed when running in parallel
113 
114  // List used for transmitting between processors during parallel operation
115  RemoteParticleVector MPISendList;
116 
117  RemoteParticleVector Tail; //this is to receive the "tails" of traces from other processes
118  private:
119  vtkPParticleTracerBase(const vtkPParticleTracerBase&); // Not implemented.
120  void operator=(const vtkPParticleTracerBase&); // Not implemented.
121 
122 };
123 
124 #endif
virtual void AssignSeedsToProcessors(double time, vtkDataSet *source, int sourceID, int ptId, vtkParticleTracerBaseNamespace::ParticleVector &localSeedPoints, int &localAssignedCount)
std::vector< RemoteParticleInfo > RemoteParticleVector
represent and manipulate point attribute data
Definition: vtkPointData.h:36
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void AssignUniqueIds(vtkParticleTracerBaseNamespace::ParticleVector &localSeedPoints)
vtkParticleTracerBaseNamespace::ParticleInformation Current
virtual vtkPolyData * Execute(vtkInformationVector **inputVector)
void PrintSelf(ostream &os, vtkIndent indent)
virtual bool SendParticleToAnotherProcess(vtkParticleTracerBaseNamespace::ParticleInformation &, vtkParticleTracerBaseNamespace::ParticleInformation &, vtkPointData *)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
vtkParticleTracerBaseNamespace::ParticleInformation Previous
vtkSmartPointer< vtkPointData > PreviousPD
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkMultiProcessController * Controller
virtual bool IsPointDataValid(vtkDataObject *input)
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()
A particle tracer for vector fields.
Multiprocessing communication superclass.