VTK  9.1.0
vtkDistributedPointCloudFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDistributedPointCloudFilter.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=========================================================================*/
15
32#ifndef vtkDistributedPointCloudFilter_h
33#define vtkDistributedPointCloudFilter_h
34
35#include "vtkFiltersParallelMPIModule.h" // For export macro
37
38#include <vector> // for vector
39
42
43class VTKFILTERSPARALLELMPI_EXPORT vtkDistributedPointCloudFilter : public vtkPointSetAlgorithm
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
55 vtkGetObjectMacro(Controller, vtkMultiProcessController);
57
63 vtkMPIController*, vtkPointSet* input, vtkPointSet* output, const double innerBounds[6]);
64
65protected:
68
70
72
81 bool OptimizeBoundingBox(std::vector<vtkMPIController*>&, vtkPointSet*, double bounds[6]);
82
88 bool InitializeKdTree(std::vector<vtkMPIController*>&);
89
90private:
92 void operator=(const vtkDistributedPointCloudFilter&) = delete;
93
94 vtkMultiProcessController* Controller;
95};
96
97#endif
Distributes points among MPI processors.
static vtkDistributedPointCloudFilter * New()
static void GetPointsInsideBounds(vtkMPIController *, vtkPointSet *input, vtkPointSet *output, const double innerBounds[6])
Get the points that are inside innerBounds and put them in output DataSet.
bool InitializeKdTree(std::vector< vtkMPIController * > &)
Initialize KdTreeRound: creates subControllers from Controller.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
~vtkDistributedPointCloudFilter() override
bool OptimizeBoundingBox(std::vector< vtkMPIController * > &, vtkPointSet *, double bounds[6])
Optimize bounding box following this rules:
void SetController(vtkMultiProcessController *)
Set/Get the communicator object.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Process communication using MPI.
Multiprocessing communication superclass.
Superclass for algorithms that produce output of the same type as input.
concrete class for storing a set of points
Definition: vtkPointSet.h:106
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453