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 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
47  virtual void SetController(vtkMultiProcessController* controller);
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  // Generate output
70  //
71  virtual int RequestData(vtkInformation* request,
72  vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector);
74 
75 //
76 //BTX
77 
78  virtual vtkPolyData* Execute(vtkInformationVector** inputVector);
81  vtkPointData*);
82 
84 
88  virtual void AssignSeedsToProcessors(double time,
89  vtkDataSet *source, int sourceID, int ptId,
91  int &localAssignedCount);
93 
95 
97  virtual void AssignUniqueIds(
100 
103  virtual void SendReceiveParticles(RemoteParticleVector &outofdomain, RemoteParticleVector &received);
104 
106 
110  virtual bool IsPointDataValid(vtkDataObject* input);
111 
112 
113 //
114 //ETX
115 //
116 
117  // MPI controller needed when running in parallel
119 
120  // List used for transmitting between processors during parallel operation
121  RemoteParticleVector MPISendList;
122 
123  RemoteParticleVector Tail; //this is to receive the "tails" of traces from other processes
124  private:
125  vtkPParticleTracerBase(const vtkPParticleTracerBase&); // Not implemented.
126  void operator=(const vtkPParticleTracerBase&); // Not implemented.
127 
128 };
129 
130 #endif
virtual void AssignSeedsToProcessors(double time, vtkDataSet *source, int sourceID, int ptId, vtkParticleTracerBaseNamespace::ParticleVector &localSeedPoints, int &localAssignedCount)
std::vector< RemoteParticleInfo > RemoteParticleVector
virtual void UpdateParticleListFromOtherProcesses()
represent and manipulate point attribute data
Definition: vtkPointData.h:36
Store vtkAlgorithm input/output information.
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
abstract class to specify dataset behavior
Definition: vtkDataSet.h:59
#define VTKFILTERSPARALLELFLOWPATHS_EXPORT
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData(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
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:632
vtkParticleTracerBaseNamespace::ParticleInformation Previous
vtkSmartPointer< vtkPointData > PreviousPD
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkMultiProcessController * Controller
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
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
A particle tracer for vector fields.
Multiprocessing communication superclass.