VTK: Filters/Parallel/vtkTransmitPolyDataPiece.h Source File

| VTK 9.3.1

vtkTransmitPolyDataPiece.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
14 #ifndef vtkTransmitPolyDataPiece_h
15 #define vtkTransmitPolyDataPiece_h
16
17 #include "vtkFiltersParallelModule.h" // For export macro
18 #include "vtkPolyDataAlgorithm.h"
19
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkMultiProcessController;
22
23 class VTKFILTERSPARALLEL_EXPORT vtkTransmitPolyDataPiece : public vtkPolyDataAlgorithm
24 {
25 public:
26 static vtkTransmitPolyDataPiece* New();
27 vtkTypeMacro(vtkTransmitPolyDataPiece, vtkPolyDataAlgorithm);
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31
35 virtual void SetController(vtkMultiProcessController*);
36 vtkGetObjectMacro(Controller, vtkMultiProcessController);
38
40
43 vtkSetMacro(CreateGhostCells, vtkTypeBool);
44 vtkGetMacro(CreateGhostCells, vtkTypeBool);
45 vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
47
48 protected:
49 vtkTransmitPolyDataPiece();
50 ~vtkTransmitPolyDataPiece() override;
51
52 // Data generation method
53 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
54 void RootExecute(vtkPolyData* input, vtkPolyData* output, vtkInformation* outInfo);
55 void SatelliteExecute(int procId, vtkPolyData* output, vtkInformation* outInfo);
56
57 vtkTypeBool CreateGhostCells;
58 vtkMultiProcessController* Controller;
59
60 private:
61 vtkTransmitPolyDataPiece(const vtkTransmitPolyDataPiece&) = delete;
62 void operator=(const vtkTransmitPolyDataPiece&) = delete;
63 };
64
65 VTK_ABI_NAMESPACE_END
66 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:72
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:89
vtkTransmitPolyDataPiece
Definition: vtkTransmitPolyDataPiece.h:24
vtkTransmitPolyDataPiece::New
static vtkTransmitPolyDataPiece * New()
vtkTransmitPolyDataPiece::~vtkTransmitPolyDataPiece
~vtkTransmitPolyDataPiece() override
vtkTransmitPolyDataPiece::SetController
virtual void SetController(vtkMultiProcessController *)
By default this filter uses the global controller, but this method can be used to set another instead...
vtkTransmitPolyDataPiece::SatelliteExecute
void SatelliteExecute(int procId, vtkPolyData *output, vtkInformation *outInfo)
vtkTransmitPolyDataPiece::vtkTransmitPolyDataPiece
vtkTransmitPolyDataPiece()
vtkTransmitPolyDataPiece::RootExecute
void RootExecute(vtkPolyData *input, vtkPolyData *output, vtkInformation *outInfo)
vtkTransmitPolyDataPiece::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTransmitPolyDataPiece::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTransmitPolyDataPiece::CreateGhostCells
vtkTypeBool CreateGhostCells
Definition: vtkTransmitPolyDataPiece.h:57
vtkTransmitPolyDataPiece::Controller
vtkMultiProcessController * Controller
Definition: vtkTransmitPolyDataPiece.h:58
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkPolyDataAlgorithm.h