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 class VTKGEOVISCORE_EXPORT vtkGeoTreeNodeCache : public vtkObject
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
48 
53  vtkSetMacro(CacheMaximumLimit, int);
54  vtkGetMacro(CacheMaximumLimit, int);
56 
58 
61  vtkSetMacro(CacheMinimumLimit, int);
62  vtkGetMacro(CacheMinimumLimit, int);
64 
71 
76 
78 
81  vtkGetMacro(Size, int);
83 
84 protected:
87 
93 
100 
101  int Size;
104 
107 
108 private:
109  vtkGeoTreeNodeCache(const vtkGeoTreeNodeCache&) VTK_DELETE_FUNCTION;
110  void operator=(const vtkGeoTreeNodeCache&) VTK_DELETE_FUNCTION;
111 };
112 
113 #endif
vtkGeoTreeNodeCache::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGeoTreeNodeCache::vtkGeoTreeNodeCache
vtkGeoTreeNodeCache()
vtkGeoTreeNodeCache::Oldest
vtkSmartPointer< vtkGeoTreeNode > Oldest
Definition: vtkGeoTreeNodeCache.h:106
vtkGeoTreeNodeCache::CacheMinimumLimit
int CacheMinimumLimit
Definition: vtkGeoTreeNodeCache.h:102
vtkGeoTreeNodeCache::DeleteDataFromSiblings
void DeleteDataFromSiblings(vtkGeoTreeNode *node)
Checks whether a node is the last of a set of siblings to be removed from the list.
vtkGeoTreeNode
Stores data for a patch of the globe.
Definition: vtkGeoTreeNode.h:47
vtkGeoTreeNodeCache::RemoveNode
void RemoveNode(vtkGeoTreeNode *node)
Remove the node from the list.
vtkSmartPointer< vtkGeoTreeNode >
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkGeoTreeNodeCache
Manages a list of vtkGeoTreeNodes.
Definition: vtkGeoTreeNodeCache.h:41
vtkGeoTreeNodeCache::CacheMaximumLimit
int CacheMaximumLimit
Definition: vtkGeoTreeNodeCache.h:103
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSmartPointer.h
vtkObject.h
vtkGeoTreeNodeCache::~vtkGeoTreeNodeCache
~vtkGeoTreeNodeCache()
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGeoTreeNodeCache::Size
int Size
Definition: vtkGeoTreeNodeCache.h:101
vtkGeoTreeNodeCache::SendToFront
void SendToFront(vtkGeoTreeNode *node)
Send a node to the front of the list.
vtkGeoTreeNodeCache::New
static vtkGeoTreeNodeCache * New()
vtkGeoTreeNodeCache::TrimToCacheMinimum
void TrimToCacheMinimum()
Removes data from the oldest nodes and removes them from the list until the list is of size CacheSize...
vtkGeoTreeNodeCache::Newest
vtkSmartPointer< vtkGeoTreeNode > Newest
Definition: vtkGeoTreeNodeCache.h:105