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