VTK
vtkHyperOctreeLimiter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperOctreeLimiter.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 =========================================================================*/
28 #ifndef vtkHyperOctreeLimiter_h
29 #define vtkHyperOctreeLimiter_h
30 
31 #include "vtkFiltersHyperTreeModule.h" // For export macro
32 #include "vtkDataSetAlgorithm.h"
33 
34 class vtkHyperOctree;
36 
37 class VTKFILTERSHYPERTREE_EXPORT vtkHyperOctreeLimiter : public vtkDataSetAlgorithm
38 {
39 public:
40  static vtkHyperOctreeLimiter *New();
42 
46  int GetMaximumLevel();
47 
51  void SetMaximumLevel(int levels);
52 
53 protected:
56 
60 
63 
64  void BuildNextCell(vtkHyperOctreeCursor *, vtkHyperOctreeCursor *, int);
65 
66  void AddInteriorAttributes(vtkHyperOctreeCursor *, int);
67  double MeasureCell(int);
68 
70  double TopSize;
71  int Dimension;
74 
75  double *AccumScratch;
76  int AccumSize;
77 
78 private:
79  vtkHyperOctreeLimiter(const vtkHyperOctreeLimiter&) VTK_DELETE_FUNCTION;
80  void operator=(const vtkHyperOctreeLimiter&) VTK_DELETE_FUNCTION;
81 };
82 
83 #endif
Store vtkAlgorithm input/output information.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
A dataset structured as a tree where each node has exactly 2^n children.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Objects that can traverse hyperoctree nodes.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Limit the tree's depth, averaging data from lower level branches into the new leaves at the cut point...