VTK  9.7.1
vtkPStreamTracer.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkPStreamTracer_h
20 #define vtkPStreamTracer_h
21 
22 #include "vtkSmartPointer.h" // This is a leaf node. No need to use PIMPL to avoid compile time penalty.
23 #include "vtkStreamTracer.h"
24 
25 VTK_ABI_NAMESPACE_BEGIN
28 
29 class PStreamTracerPoint;
30 class vtkOverlappingAMR;
31 class AbstractPStreamTracerUtils;
32 
33 VTK_ABI_NAMESPACE_END
34 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
35 
36 VTK_ABI_NAMESPACE_BEGIN
37 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPStreamTracer : public vtkStreamTracer
38 {
39 public:
41 
45  static vtkPStreamTracer* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
56  virtual void SetController(vtkMultiProcessController* controller);
57  vtkGetObjectMacro(Controller, vtkMultiProcessController);
59 
60 protected:
62  ~vtkPStreamTracer() override;
63 
66 
68 
69  int EmptyData;
70 
71 private:
72  vtkPStreamTracer(const vtkPStreamTracer&) = delete;
73  void operator=(const vtkPStreamTracer&) = delete;
74 
75  void Trace(vtkDataSet* input, int vecType, const char* vecName, PStreamTracerPoint* pt,
77  int maxCellSize);
78 
79  bool TraceOneStep(
80  vtkPolyData* traceOut, vtkAbstractInterpolatedVelocityField*, PStreamTracerPoint* pt);
81 
82  void Prepend(vtkPolyData* path, vtkPolyData* headh);
83  int Rank;
84  int NumProcs;
85 
86  friend class AbstractPStreamTracerUtils;
88 };
89 VTK_ABI_NAMESPACE_END
90 #endif
parallel streamline generators
vtkMultiProcessController * Controller
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
An abstract class for obtaining the interpolated velocity values at a point.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:71
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkStreamTracer * New()
Construct the object to start from position (0,0,0), with forward integration, terminal speed 1...
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information and print object state.
Streamline generator.
a multi-resolution dataset based on vtkCartesianGrid allowing overlaps
Store zero or more vtkInformation instances.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Multiprocessing communication superclass.