VTK  9.2.20230205
vtkOBBDicer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOBBDicer.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 =========================================================================*/
63 #ifndef vtkOBBDicer_h
64 #define vtkOBBDicer_h
65 
66 #include "vtkDicer.h"
67 #include "vtkFiltersGeneralModule.h" // For export macro
68 
69 VTK_ABI_NAMESPACE_BEGIN
70 class vtkOBBNode;
71 class vtkShortArray;
72 class vtkIdList;
73 class vtkPoints;
74 
75 class VTKFILTERSGENERAL_EXPORT vtkOBBDicer : public vtkDicer
76 {
77 public:
78  vtkTypeMacro(vtkOBBDicer, vtkDicer);
79  void PrintSelf(ostream& os, vtkIndent indent) override;
80 
84  static vtkOBBDicer* New();
85 
86 protected:
87  vtkOBBDicer() = default;
88  ~vtkOBBDicer() override = default;
89 
90  // Usual data generation method
92 
93  // implementation ivars and methods
94  void BuildTree(vtkIdList* ptIds, vtkOBBNode* OBBptr, vtkDataSet* input);
95  void MarkPoints(vtkOBBNode* OBBptr, vtkShortArray* groupIds);
96  void DeleteTree(vtkOBBNode* OBBptr);
98 
99 private:
100  vtkOBBDicer(const vtkOBBDicer&) = delete;
101  void operator=(const vtkOBBDicer&) = delete;
102 };
103 
104 VTK_ABI_NAMESPACE_END
105 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:174
abstract superclass to divide dataset into pieces
Definition: vtkDicer.h:56
list of point or cell ids
Definition: vtkIdList.h:144
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
divide dataset into spatially aggregated pieces
Definition: vtkOBBDicer.h:76
void BuildTree(vtkIdList *ptIds, vtkOBBNode *OBBptr, vtkDataSet *input)
vtkOBBDicer()=default
vtkPoints * PointsList
Definition: vtkOBBDicer.h:97
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkOBBDicer * New()
Instantiate an object.
void MarkPoints(vtkOBBNode *OBBptr, vtkShortArray *groupIds)
~vtkOBBDicer() override=default
void DeleteTree(vtkOBBNode *OBBptr)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
represent and manipulate 3D points
Definition: vtkPoints.h:150
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:63