VTK
vtkGeoTreeNodeCache.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoTreeNodeCache.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
31 #ifndef vtkGeoTreeNodeCache_h
32 #define vtkGeoTreeNodeCache_h
33 
34 #include "vtkGeovisCoreModule.h" // For export macro
35 #include "vtkObject.h"
36 #include "vtkSmartPointer.h" // For SP ivars
37 
38 class vtkGeoTreeNode;
39 
40 #if !defined(VTK_LEGACY_REMOVE)
41 class VTKGEOVISCORE_EXPORT vtkGeoTreeNodeCache : public vtkObject
42 {
43 public:
44  static vtkGeoTreeNodeCache *New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
54  vtkSetMacro(CacheMaximumLimit, int);
55  vtkGetMacro(CacheMaximumLimit, int);
57 
59 
62  vtkSetMacro(CacheMinimumLimit, int);
63  vtkGetMacro(CacheMinimumLimit, int);
65 
71  void SendToFront(vtkGeoTreeNode* node);
72 
76  void RemoveNode(vtkGeoTreeNode* node);
77 
79 
82  vtkGetMacro(Size, int);
84 
85 protected:
87  ~vtkGeoTreeNodeCache() override;
88 
93  void TrimToCacheMinimum();
94 
100  void DeleteDataFromSiblings(vtkGeoTreeNode* node);
101 
102  int Size;
105 
108 
109 private:
110  vtkGeoTreeNodeCache(const vtkGeoTreeNodeCache&) = delete;
111  void operator=(const vtkGeoTreeNodeCache&) = delete;
112 };
113 
114 #endif //VTK_LEGACY_REMOVE
115 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkGeoTreeNode > Newest
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmartPointer< vtkGeoTreeNode > Oldest
Stores data for a patch of the globe.
Manages a list of vtkGeoTreeNodes.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...