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 
66 class vtkOBBNode;
67 class vtkShortArray;
68 class vtkIdList;
69 class vtkPoints;
70 
71 class VTKFILTERSGENERAL_EXPORT vtkOBBDicer : public vtkDicer
72 {
73 public:
74  vtkTypeMacro(vtkOBBDicer, vtkDicer);
75  void PrintSelf(ostream& os, vtkIndent indent) override;
76 
80  static vtkOBBDicer* New();
81 
82 protected:
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 
95 private:
96  vtkOBBDicer(const vtkOBBDicer&) = delete;
97  void operator=(const vtkOBBDicer&) = delete;
98 };
99 
100 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:143
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkOBBDicer::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkDicer.h
vtkOBBDicer::~vtkOBBDicer
~vtkOBBDicer() override=default
vtkOBBDicer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOBBDicer::BuildTree
void BuildTree(vtkIdList *ptIds, vtkOBBNode *OBBptr, vtkDataSet *input)
vtkOBBDicer::vtkOBBDicer
vtkOBBDicer()=default
vtkOBBDicer::New
static vtkOBBDicer * New()
Instantiate an object.
vtkOBBNode
Definition: vtkOBBTree.h:145
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:140
vtkOBBDicer::DeleteTree
void DeleteTree(vtkOBBNode *OBBptr)
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkDicer
abstract superclass to divide dataset into pieces
Definition: vtkDicer.h:55
vtkOBBDicer::PointsList
vtkPoints * PointsList
Definition: vtkOBBDicer.h:93
vtkOBBDicer
divide dataset into spatially aggregated pieces
Definition: vtkOBBDicer.h:72
vtkShortArray
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:59
vtkOBBDicer::MarkPoints
void MarkPoints(vtkOBBNode *OBBptr, vtkShortArray *groupIds)