VTK  9.0.1
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 =========================================================================*/
26 #ifndef vtkPStreamTracer_h
27 #define vtkPStreamTracer_h
28 
29 #include "vtkSmartPointer.h" // This is a leaf node. No need to use PIMPL to avoid compile time penalty.
30 #include "vtkStreamTracer.h"
31 
34 
35 class PStreamTracerPoint;
36 class vtkOverlappingAMR;
37 class AbstractPStreamTracerUtils;
38 
39 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
40 
41 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPStreamTracer : public vtkStreamTracer
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
53  virtual void SetController(vtkMultiProcessController* controller);
54  vtkGetObjectMacro(Controller, vtkMultiProcessController);
56 
57  static vtkPStreamTracer* New();
58 
59 protected:
61  ~vtkPStreamTracer() override;
62 
64  virtual int RequestUpdateExtent(
66 
68 
71 
72  int EmptyData;
73 
74 private:
75  vtkPStreamTracer(const vtkPStreamTracer&) = delete;
76  void operator=(const vtkPStreamTracer&) = delete;
77 
78  void Trace(vtkDataSet* input, int vecType, const char* vecName, PStreamTracerPoint* pt,
80  int maxCellSize);
81 
82  bool TraceOneStep(
83  vtkPolyData* traceOut, vtkAbstractInterpolatedVelocityField*, PStreamTracerPoint* pt);
84 
85  void Prepend(vtkPolyData* path, vtkPolyData* headh);
86  int Rank;
87  int NumProcs;
88 
89  friend class AbstractPStreamTracerUtils;
91 };
92 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkStreamTracer.h
vtkSmartPointer< vtkPolyData >
vtkPStreamTracer::New
static vtkPStreamTracer * New()
vtkPStreamTracer::EmptyData
int EmptyData
Definition: vtkPStreamTracer.h:72
vtkPStreamTracer::~vtkPStreamTracer
~vtkPStreamTracer() override
vtkPStreamTracer::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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:76
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkSmartPointer.h
vtkPStreamTracer::vtkPStreamTracer
vtkPStreamTracer()
vtkStreamTracer
Streamline generator.
Definition: vtkStreamTracer.h:103
vtkPStreamTracer::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPStreamTracer
parallel streamline generators
Definition: vtkPStreamTracer.h:42
vtkOverlappingAMR
hierarchical dataset of vtkUniformGrids
Definition: vtkOverlappingAMR.h:41
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
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:65
vtkPStreamTracer::Interpolator
vtkAbstractInterpolatedVelocityField * Interpolator
Definition: vtkPStreamTracer.h:69
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkPStreamTracer::Controller
vtkMultiProcessController * Controller
Definition: vtkPStreamTracer.h:67
vtkPStreamTracer::SetInterpolator
void SetInterpolator(vtkAbstractInterpolatedVelocityField *)