VTK  9.3.0
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
31 #ifndef vtkOBBDicer_h
32 #define vtkOBBDicer_h
33 
34 #include "vtkDicer.h"
35 #include "vtkFiltersGeneralModule.h" // For export macro
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class vtkOBBNode;
39 class vtkShortArray;
40 class vtkIdList;
41 class vtkPoints;
42 
43 class VTKFILTERSGENERAL_EXPORT vtkOBBDicer : public vtkDicer
44 {
45 public:
46  vtkTypeMacro(vtkOBBDicer, vtkDicer);
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
52  static vtkOBBDicer* New();
53 
54 protected:
55  vtkOBBDicer() = default;
56  ~vtkOBBDicer() override = default;
57 
58  // Usual data generation method
60 
61  // implementation ivars and methods
62  void BuildTree(vtkIdList* ptIds, vtkOBBNode* OBBptr, vtkDataSet* input);
63  void MarkPoints(vtkOBBNode* OBBptr, vtkShortArray* groupIds);
64  void DeleteTree(vtkOBBNode* OBBptr);
66 
67 private:
68  vtkOBBDicer(const vtkOBBDicer&) = delete;
69  void operator=(const vtkOBBDicer&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
abstract superclass to divide dataset into pieces
Definition: vtkDicer.h:44
list of point or cell ids
Definition: vtkIdList.h:32
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
divide dataset into spatially aggregated pieces
Definition: vtkOBBDicer.h:44
void BuildTree(vtkIdList *ptIds, vtkOBBNode *OBBptr, vtkDataSet *input)
vtkOBBDicer()=default
vtkPoints * PointsList
Definition: vtkOBBDicer.h:65
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:38
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:41