VTK
dox
Geovis
Core
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
();
45
vtkTypeMacro(
vtkGeoTreeNodeCache
,
vtkObject
);
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
:
86
vtkGeoTreeNodeCache
();
87
~
vtkGeoTreeNodeCache
()
override
;
88
93
void
TrimToCacheMinimum();
94
100
void
DeleteDataFromSiblings(
vtkGeoTreeNode
* node);
101
102
int
Size
;
103
int
CacheMinimumLimit
;
104
int
CacheMaximumLimit
;
105
106
vtkSmartPointer<vtkGeoTreeNode>
Newest
;
107
vtkSmartPointer<vtkGeoTreeNode>
Oldest
;
108
109
private
:
110
vtkGeoTreeNodeCache
(
const
vtkGeoTreeNodeCache
&) =
delete
;
111
void
operator=(
const
vtkGeoTreeNodeCache
&) =
delete
;
112
};
113
114
#endif //VTK_LEGACY_REMOVE
115
#endif
vtkGeoTreeNodeCache::Oldest
vtkSmartPointer< vtkGeoTreeNode > Oldest
Definition:
vtkGeoTreeNodeCache.h:107
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkGeoTreeNodeCache::CacheMinimumLimit
int CacheMinimumLimit
Definition:
vtkGeoTreeNodeCache.h:103
vtkGeoTreeNode
Stores data for a patch of the globe.
Definition:
vtkGeoTreeNode.h:47
vtkSmartPointer< vtkGeoTreeNode >
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkGeoTreeNodeCache
Manages a list of vtkGeoTreeNodes.
Definition:
vtkGeoTreeNodeCache.h:41
vtkGeoTreeNodeCache::CacheMaximumLimit
int CacheMaximumLimit
Definition:
vtkGeoTreeNodeCache.h:104
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkSmartPointer.h
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkGeoTreeNodeCache::Size
int Size
Definition:
vtkGeoTreeNodeCache.h:102
vtkGeoTreeNodeCache::Newest
vtkSmartPointer< vtkGeoTreeNode > Newest
Definition:
vtkGeoTreeNodeCache.h:106
Generated by
1.8.16