VTK  9.7.20261116
vtkPResolveHangingNodes.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
38
39#ifndef vtkPResolveHangingNodes_h
40#define vtkPResolveHangingNodes_h
41
42#include "vtkFiltersParallelDIY2Module.h" // For export macro
44
45VTK_ABI_NAMESPACE_BEGIN
47
48class VTKFILTERSPARALLELDIY2_EXPORT vtkPResolveHangingNodes : public vtkResolveHangingNodes
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
61 vtkGetObjectMacro(Controller, vtkMultiProcessController);
63
64protected:
67
71 bool UseRemotePoints() override;
72
77 void GetGlobalMeasureRange(double range[2], int& dimension) override;
78
86 std::vector<vtkSmartPointer<vtkPolyData>> GetRemotePoints(
87 const std::vector<vtkPolyData*>& boundaries,
88 const std::vector<int>& partitionedDataSetIds) override;
89
95 void GetCentroidGlobalIdsOffset(vtkIdType& maxGlobalId, vtkIdType numberOfCentroidPoints,
96 vtkIdType& offset, vtkIdType& totalNumberOfCentroidPoints) override;
97
98private:
100 void operator=(const vtkPResolveHangingNodes&) = delete;
101
102 vtkMultiProcessController* Controller = nullptr;
103};
104
105VTK_ABI_NAMESPACE_END
106#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Multiprocessing communication superclass.
void GetGlobalMeasureRange(double range[2], int &dimension) override
Reduce the range of the cell measures (areas for 2D, volumes for 3D) and the dimension of the cells o...
virtual void SetController(vtkMultiProcessController *)
By default this filter uses the global controller, but this method can be used to set another instead...
std::vector< vtkSmartPointer< vtkPolyData > > GetRemotePoints(const std::vector< vtkPolyData * > &boundaries, const std::vector< int > &partitionedDataSetIds) override
Exchange the points of the boundary of the partitions with their neighbors, on this process or on oth...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkPResolveHangingNodes * New()
void GetCentroidGlobalIdsOffset(vtkIdType &maxGlobalId, vtkIdType numberOfCentroidPoints, vtkIdType &offset, vtkIdType &totalNumberOfCentroidPoints) override
Reduce the largest point global id over all the processes, and sum the numbers of center points of th...
~vtkPResolveHangingNodes() override
bool UseRemotePoints() override
True if there is more than one process.
vtkResolveHangingNodes()=default
int vtkIdType
Definition vtkType.h:366