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