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