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 =========================================================================*/
27 #ifndef __vtkHyperOctreeLimiter_h
28 #define __vtkHyperOctreeLimiter_h
29 
30 #include "vtkDataSetAlgorithm.h"
31 
32 class vtkHyperOctree;
34 
36 {
37 public:
38  static vtkHyperOctreeLimiter *New();
40 
42  int GetMaximumLevel();
43 
45  void SetMaximumLevel(int levels);
46 
47 protected:
50 
54 
57 
58  void BuildNextCell(vtkHyperOctreeCursor *, vtkHyperOctreeCursor *, int);
59 
60  void AddInteriorAttributes(vtkHyperOctreeCursor *, int);
61  double MeasureCell(int);
62 
64  double TopSize;
65  int Dimension;
68 
69  double *AccumScratch;
70  int AccumSize;
71 
72 private:
73  vtkHyperOctreeLimiter(const vtkHyperOctreeLimiter&); // Not implemented.
74  void operator=(const vtkHyperOctreeLimiter&); // Not implemented.
75 };
76 
77 #endif