VTK
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
36 #include "vtkPointSetAlgorithm.h"
37 
38 #include <vector> // for vector
39 
40 class vtkMPIController;
42 
43 class VTKFILTERSPARALLELMPI_EXPORT vtkDistributedPointCloudFilter : public vtkPointSetAlgorithm
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  void SetController(vtkMultiProcessController*);
55  vtkGetObjectMacro(Controller, vtkMultiProcessController);
57 
62  static void GetPointsInsideBounds(vtkMPIController*,
63  vtkPointSet *input, vtkPointSet *output, const double innerBounds[6]);
64 
65 protected:
68 
70 
72 
81  bool OptimizeBoundingBox(std::vector<vtkMPIController*> &, vtkPointSet *, double bounds[6]);
82 
88  bool InitializeKdTree(std::vector<vtkMPIController*> &);
89 
90 private:
92  void operator=(const vtkDistributedPointCloudFilter&) = delete;
93 
94  vtkMultiProcessController* Controller;
95 };
96 
97 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:42
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce output of the same type as input.
Process communication using MPI.
Distributes points among MPI processors.
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.
Multiprocessing communication superclass.