VTK  9.3.20240328
vtkOBBDicer.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
51 #ifndef vtkOBBDicer_h
52 #define vtkOBBDicer_h
53 
54 #include "vtkDicer.h"
55 #include "vtkFiltersGeneralModule.h" // For export macro
56 
57 VTK_ABI_NAMESPACE_BEGIN
58 class vtkOBBNode;
59 class vtkShortArray;
60 class vtkIdList;
61 class vtkPoints;
62 
63 class VTKFILTERSGENERAL_EXPORT vtkOBBDicer : public vtkDicer
64 {
65 public:
66  vtkTypeMacro(vtkOBBDicer, vtkDicer);
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
72  static vtkOBBDicer* New();
73 
74 protected:
75  vtkOBBDicer() = default;
76  ~vtkOBBDicer() override = default;
77 
78  // Usual data generation method
80 
81  // implementation ivars and methods
82  void BuildTree(vtkIdList* ptIds, vtkOBBNode* OBBptr, vtkDataSet* input);
83  void MarkPoints(vtkOBBNode* OBBptr, vtkShortArray* groupIds);
84  void DeleteTree(vtkOBBNode* OBBptr);
86 
87 private:
88  vtkOBBDicer(const vtkOBBDicer&) = delete;
89  void operator=(const vtkOBBDicer&) = delete;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:165
abstract superclass to divide dataset into pieces
Definition: vtkDicer.h:44
list of point or cell ids
Definition: vtkIdList.h:132
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
divide dataset into spatially aggregated pieces
Definition: vtkOBBDicer.h:64
void BuildTree(vtkIdList *ptIds, vtkOBBNode *OBBptr, vtkDataSet *input)
vtkOBBDicer()=default
vtkPoints * PointsList
Definition: vtkOBBDicer.h:85
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:138
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:51