VTK
vtkSMPMergePolyDataHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSMPMergePolyDataHelper.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 =========================================================================*/
24 #ifndef vtkSMPMergePolyDataHelper_h
25 #define vtkSMPMergePolyDataHelper_h
26 
27 #include "vtkConfigure.h"
28 #include "vtkFiltersSMPModule.h"
29 
30 #include <vector>
31 
32 class vtkPolyData;
33 class vtkSMPMergePoints;
34 class vtkIdList;
35 
36 class VTKFILTERSSMP_EXPORT vtkSMPMergePolyDataHelper
37 {
38 public:
39 
41 
50  struct InputData
51  {
58 
60  vtkSMPMergePoints* locator,
61  vtkIdList* vertOffsets,
62  vtkIdList* lineOffsets,
63  vtkIdList* polyOffsets) : Input(input),
64  Locator(locator),
65  VertOffsets(vertOffsets),
66  LineOffsets(lineOffsets),
67  PolyOffsets(polyOffsets)
68  {
69  }
70  };
71 
79  static vtkPolyData* MergePolyData(std::vector<InputData>& inputs);
80 
81 protected:
84 
85 private:
87  void operator=(const vtkSMPMergePolyDataHelper&) = delete;
88 };
89 
90 #endif
91 // VTK-HeaderTest-Exclude: vtkSMPMergePolyDataHelper.h
Class designed to help with merging of points in parallel.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
Utility class for merging poly data in parallel This class is designed as a utility class to help mer...
list of point or cell ids
Definition: vtkIdList.h:36
InputData(vtkPolyData *input, vtkSMPMergePoints *locator, vtkIdList *vertOffsets, vtkIdList *lineOffsets, vtkIdList *polyOffsets)
This is the data structure needed by the MergePolyData function.