VTK  9.3.20240425
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
57VTK_ABI_NAMESPACE_BEGIN
58class vtkOBBNode;
59class vtkShortArray;
60class vtkIdList;
61class vtkPoints;
62
63class VTKFILTERSGENERAL_EXPORT vtkOBBDicer : public vtkDicer
64{
65public:
66 vtkTypeMacro(vtkOBBDicer, vtkDicer);
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
72 static vtkOBBDicer* New();
73
74protected:
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
87private:
88 vtkOBBDicer(const vtkOBBDicer&) = delete;
89 void operator=(const vtkOBBDicer&) = delete;
90};
91
92VTK_ABI_NAMESPACE_END
93#endif
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
abstract superclass to divide dataset into pieces
Definition vtkDicer.h:44
list of point or cell ids
Definition vtkIdList.h:133
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
static vtkOBBDicer * New()
Instantiate an object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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:139
dynamic, self-adjusting array of short