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