VTK  9.1.0
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 =========================================================================*/
28 #ifndef vtkPStreamTracer_h
29 #define vtkPStreamTracer_h
30 
31 #include "vtkSmartPointer.h" // This is a leaf node. No need to use PIMPL to avoid compile time penalty.
32 #include "vtkStreamTracer.h"
33 
36 
37 class PStreamTracerPoint;
38 class vtkOverlappingAMR;
39 class AbstractPStreamTracerUtils;
40 
41 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
42 
43 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPStreamTracer : public vtkStreamTracer
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
55  virtual void SetController(vtkMultiProcessController* controller);
56  vtkGetObjectMacro(Controller, vtkMultiProcessController);
58 
59  static vtkPStreamTracer* New();
60 
61 protected:
63  ~vtkPStreamTracer() override;
64 
67 
69 
72 
73  int EmptyData;
74 
75 private:
76  vtkPStreamTracer(const vtkPStreamTracer&) = delete;
77  void operator=(const vtkPStreamTracer&) = delete;
78 
79  void Trace(vtkDataSet* input, int vecType, const char* vecName, PStreamTracerPoint* pt,
81  int maxCellSize);
82 
83  bool TraceOneStep(
84  vtkPolyData* traceOut, vtkAbstractInterpolatedVelocityField*, PStreamTracerPoint* pt);
85 
86  void Prepend(vtkPolyData* path, vtkPolyData* headh);
87  int Rank;
88  int NumProcs;
89 
90  friend class AbstractPStreamTracerUtils;
92 };
93 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkStreamTracer.h
vtkSmartPointer< vtkPolyData >
vtkPStreamTracer::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPStreamTracer::New
static vtkPStreamTracer * New()
vtkPStreamTracer::EmptyData
int EmptyData
Definition: vtkPStreamTracer.h:73
vtkPStreamTracer::~vtkPStreamTracer
~vtkPStreamTracer() override
vtkPStreamTracer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPStreamTracer::SetController
virtual void SetController(vtkMultiProcessController *controller)
Set/Get the controller use in compositing (set to the global controller by default) If not using the ...
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:77
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkSmartPointer.h
vtkPStreamTracer::vtkPStreamTracer
vtkPStreamTracer()
vtkStreamTracer
Streamline generator.
Definition: vtkStreamTracer.h:217
vtkPStreamTracer
parallel streamline generators
Definition: vtkPStreamTracer.h:44
vtkOverlappingAMR
hierarchical dataset of vtkUniformGrids
Definition: vtkOverlappingAMR.h:80
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
vtkAbstractInterpolatedVelocityField
An abstract class for obtaining the interpolated velocity values at a point.
Definition: vtkAbstractInterpolatedVelocityField.h:83
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkPStreamTracer::Interpolator
vtkAbstractInterpolatedVelocityField * Interpolator
Definition: vtkPStreamTracer.h:70
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
vtkPStreamTracer::Controller
vtkMultiProcessController * Controller
Definition: vtkPStreamTracer.h:68
vtkPStreamTracer::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPStreamTracer::SetInterpolator
void SetInterpolator(vtkAbstractInterpolatedVelocityField *)