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 
55  vtkGetObjectMacro(Controller, vtkMultiProcessController);
57 
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:44
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkPointSetAlgorithm.h
vtkDistributedPointCloudFilter::~vtkDistributedPointCloudFilter
~vtkDistributedPointCloudFilter() override
vtkDistributedPointCloudFilter::OptimizeBoundingBox
bool OptimizeBoundingBox(std::vector< vtkMPIController * > &, vtkPointSet *, double bounds[6])
Optimize bounding box following this rules:
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkDistributedPointCloudFilter::New
static vtkDistributedPointCloudFilter * New()
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:83
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkDistributedPointCloudFilter::SetController
void SetController(vtkMultiProcessController *)
Set/Get the communicator object.
vtkDistributedPointCloudFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkDistributedPointCloudFilter::vtkDistributedPointCloudFilter
vtkDistributedPointCloudFilter()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkDistributedPointCloudFilter::InitializeKdTree
bool InitializeKdTree(std::vector< vtkMPIController * > &)
Initialize KdTreeRound: creates subControllers from Controller.
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:43
vtkDistributedPointCloudFilter::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkDistributedPointCloudFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMPIController
Process communication using MPI.
Definition: vtkMPIController.h:62
vtkDistributedPointCloudFilter::GetPointsInsideBounds
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.
vtkDistributedPointCloudFilter
Distributes points among MPI processors.
Definition: vtkDistributedPointCloudFilter.h:44