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
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPointSetAlgorithm.h
vtkX3D::port
Definition: vtkX3D.h:447
vtkPointSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:132
vtkPointSetAlgorithm::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:82
vtkPointSetAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:42
vtkMPIController
Process communication using MPI.
Definition: vtkMPIController.h:61
vtkPointSetAlgorithm::New
static vtkPointSetAlgorithm * New()
vtkDistributedPointCloudFilter
Distributes points among MPI processors.
Definition: vtkDistributedPointCloudFilter.h:43