VTK  9.0.20201027
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 "vtkParticleTracerBase.h"
31 #include "vtkSmartPointer.h" // For protected ivars.
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) override;
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, vtkInformationVector** inputVector,
66  vtkInformationVector* outputVector) override;
67 
68  //
69 
70  vtkPolyData* Execute(vtkInformationVector** inputVector) override;
73 
81  void AssignSeedsToProcessors(double time, vtkDataSet* source, int sourceID, int ptId,
83  int& localAssignedCount) override;
84 
90 
96  bool SendReceiveParticles(RemoteParticleVector& outofdomain, RemoteParticleVector& received);
97 
99 
105  bool IsPointDataValid(vtkDataObject* input) override;
106 
107  //
108 
109  //
110 
111  // MPI controller needed when running in parallel
113 
114  // List used for transmitting between processors during parallel operation
116 
117  RemoteParticleVector Tail; // this is to receive the "tails" of traces from other processes
118 private:
120  void operator=(const vtkPParticleTracerBase&) = delete;
121 };
122 #endif
vtkParticleTracerBase::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkParticleTracerBase
A particle tracer for vector fields.
Definition: vtkParticleTracerBase.h:102
vtkPParticleTracerBase::RemoteParticleInfo::Current
vtkParticleTracerBaseNamespace::ParticleInformation Current
Definition: vtkPParticleTracerBase.h:55
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:32
vtkPParticleTracerBase
Definition: vtkPParticleTracerBase.h:37
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPParticleTracerBase::Controller
vtkMultiProcessController * Controller
Definition: vtkPParticleTracerBase.h:112
vtkSmartPointer< vtkPointData >
vtkPParticleTracerBase::MPISendList
RemoteParticleVector MPISendList
Definition: vtkPParticleTracerBase.h:115
vtkParticleTracerBaseNamespace::ParticleVector
std::vector< ParticleInformation > ParticleVector
Definition: vtkParticleTracerBase.h:96
vtkX3D::time
Definition: vtkX3D.h:503
vtkParticleTracerBase.h
vtkParticleTracerBase::AssignSeedsToProcessors
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.
vtkParticleTracerBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPParticleTracerBase::RemoteParticleVector
std::vector< RemoteParticleInfo > RemoteParticleVector
Definition: vtkPParticleTracerBase.h:60
vtkPParticleTracerBase::RemoteParticleInfo::Previous
vtkParticleTracerBaseNamespace::ParticleInformation Previous
Definition: vtkPParticleTracerBase.h:56
vtkParticleTracerBase::Execute
virtual vtkPolyData * Execute(vtkInformationVector **inputVector)
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:76
vtkParticleTracerBase::AssignUniqueIds
virtual void AssignUniqueIds(vtkParticleTracerBaseNamespace::ParticleVector &localSeedPoints)
give each one a unique ID.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSmartPointer.h
vtkParticleTracerBaseNamespace::ParticleInformation_t
Definition: vtkParticleTracerBase.h:65
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPParticleTracerBase::RemoteParticleInfo::PreviousPD
vtkSmartPointer< vtkPointData > PreviousPD
Definition: vtkPParticleTracerBase.h:57
vtkX3D::info
Definition: vtkX3D.h:382
vtkParticleTracerBase::SendParticleToAnotherProcess
virtual bool SendParticleToAnotherProcess(vtkParticleTracerBaseNamespace::ParticleInformation &, vtkParticleTracerBaseNamespace::ParticleInformation &, vtkPointData *)
Definition: vtkParticleTracerBase.h:399
vtkParticleTracerBase::UpdateParticleListFromOtherProcesses
virtual bool UpdateParticleListFromOtherProcesses()
this is used during classification of seed points and also between iterations of the main loop as par...
Definition: vtkParticleTracerBase.h:389
vtkX3D::previous
Definition: vtkX3D.h:455
vtkPParticleTracerBase::RemoteParticleInfo
Definition: vtkPParticleTracerBase.h:53
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkParticleTracerBase::IsPointDataValid
virtual bool IsPointDataValid(vtkDataObject *input)
Methods that check that the input arrays are ordered the same on all data sets.
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:959
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkPParticleTracerBase::Tail
RemoteParticleVector Tail
Definition: vtkPParticleTracerBase.h:117