VTK  9.2.6
vtkPStreamTracer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPStreamTracer.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 =========================================================================*/
31 #ifndef vtkPStreamTracer_h
32 #define vtkPStreamTracer_h
33 
34 #include "vtkSmartPointer.h" // This is a leaf node. No need to use PIMPL to avoid compile time penalty.
35 #include "vtkStreamTracer.h"
36 
39 
40 class PStreamTracerPoint;
41 class vtkOverlappingAMR;
42 class AbstractPStreamTracerUtils;
43 
44 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
45 
46 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPStreamTracer : public vtkStreamTracer
47 {
48 public:
50 
54  static vtkPStreamTracer* New();
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
65  virtual void SetController(vtkMultiProcessController* controller);
66  vtkGetObjectMacro(Controller, vtkMultiProcessController);
68 
69 protected:
71  ~vtkPStreamTracer() override;
72 
75 
77 
79  void SetInterpolator(vtkAbstractInterpolatedVelocityField*);
80 
81  int EmptyData;
82 
83 private:
84  vtkPStreamTracer(const vtkPStreamTracer&) = delete;
85  void operator=(const vtkPStreamTracer&) = delete;
86 
87  void Trace(vtkDataSet* input, int vecType, const char* vecName, PStreamTracerPoint* pt,
89  int maxCellSize);
90 
91  bool TraceOneStep(
92  vtkPolyData* traceOut, vtkAbstractInterpolatedVelocityField*, PStreamTracerPoint* pt);
93 
94  void Prepend(vtkPolyData* path, vtkPolyData* headh);
95  int Rank;
96  int NumProcs;
97 
98  friend class AbstractPStreamTracerUtils;
100 };
101 #endif
parallel streamline generators
vtkMultiProcessController * Controller
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
An abstract class for obtaining the interpolated velocity values at a point.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
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:39
vtkAbstractInterpolatedVelocityField * Interpolator
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information and print object state.
Streamline generator.
hierarchical dataset of vtkUniformGrids
Store zero or more vtkInformation instances.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Multiprocessing communication superclass.