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 
70  void SetInterpolator(vtkAbstractInterpolatedVelocityField*);
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:35
vtkPolyDataAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkStreamTracer::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkStreamTracer.h
vtkSmartPointer< vtkPolyData >
vtkPStreamTracer::EmptyData
int EmptyData
Definition: vtkPStreamTracer.h:72
vtkStreamTracer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:75
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSmartPointer.h
vtkStreamTracer
Streamline generator.
Definition: vtkStreamTracer.h:102
vtkPStreamTracer
parallel streamline generators
Definition: vtkPStreamTracer.h:41
vtkOverlappingAMR
hierarchical dataset of vtkUniformGrids
Definition: vtkOverlappingAMR.h:40
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkAbstractInterpolatedVelocityField
An abstract class for obtaining the interpolated velocity values at a point.
Definition: vtkAbstractInterpolatedVelocityField.h:82
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPStreamTracer::Interpolator
vtkAbstractInterpolatedVelocityField * Interpolator
Definition: vtkPStreamTracer.h:69
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkPStreamTracer::Controller
vtkMultiProcessController * Controller
Definition: vtkPStreamTracer.h:67
vtkStreamTracer::New
static vtkStreamTracer * New()
Construct object to start from position (0,0,0), with forward integration, terminal speed 1....