VTK  9.1.0
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=========================================================================*/
60#ifndef vtkOBBDicer_h
61#define vtkOBBDicer_h
62
63#include "vtkDicer.h"
64#include "vtkFiltersGeneralModule.h" // For export macro
65
66class vtkOBBNode;
67class vtkShortArray;
68class vtkIdList;
69class vtkPoints;
70
71class VTKFILTERSGENERAL_EXPORT vtkOBBDicer : public vtkDicer
72{
73public:
74 vtkTypeMacro(vtkOBBDicer, vtkDicer);
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
80 static vtkOBBDicer* New();
81
82protected:
83 vtkOBBDicer() = default;
84 ~vtkOBBDicer() override = default;
85
86 // Usual data generation method
88
89 // implementation ivars and methods
90 void BuildTree(vtkIdList* ptIds, vtkOBBNode* OBBptr, vtkDataSet* input);
91 void MarkPoints(vtkOBBNode* OBBptr, vtkShortArray* groupIds);
92 void DeleteTree(vtkOBBNode* OBBptr);
94
95private:
96 vtkOBBDicer(const vtkOBBDicer&) = delete;
97 void operator=(const vtkOBBDicer&) = delete;
98};
99
100#endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
abstract superclass to divide dataset into pieces
Definition: vtkDicer.h:55
list of point or cell ids
Definition: vtkIdList.h:140
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
divide dataset into spatially aggregated pieces
Definition: vtkOBBDicer.h:72
void BuildTree(vtkIdList *ptIds, vtkOBBNode *OBBptr, vtkDataSet *input)
vtkOBBDicer()=default
vtkPoints * PointsList
Definition: vtkOBBDicer.h:93
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:143
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:59