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
class
VTKGEOVISCORE_EXPORT
vtkGeoTreeNodeCache
:
public
vtkObject
41
{
42
public
:
43
static
vtkGeoTreeNodeCache
*
New
();
44
vtkTypeMacro(
vtkGeoTreeNodeCache
,
vtkObject
);
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
70
void
SendToFront(
vtkGeoTreeNode
* node);
71
75
void
RemoveNode(
vtkGeoTreeNode
* node);
76
78
81
vtkGetMacro(Size,
int
);
83
84
protected
:
85
vtkGeoTreeNodeCache
();
86
~
vtkGeoTreeNodeCache
();
87
92
void
TrimToCacheMinimum();
93
99
void
DeleteDataFromSiblings(
vtkGeoTreeNode
* node);
100
101
int
Size
;
102
int
CacheMinimumLimit
;
103
int
CacheMaximumLimit
;
104
105
vtkSmartPointer<vtkGeoTreeNode>
Newest
;
106
vtkSmartPointer<vtkGeoTreeNode>
Oldest
;
107
108
private
:
109
vtkGeoTreeNodeCache
(
const
vtkGeoTreeNodeCache
&) VTK_DELETE_FUNCTION;
110
void
operator=(
const
vtkGeoTreeNodeCache
&) VTK_DELETE_FUNCTION;
111
};
112
113
#endif
vtkGeoTreeNodeCache::Oldest
vtkSmartPointer< vtkGeoTreeNode > Oldest
Definition:
vtkGeoTreeNodeCache.h:106
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:102
vtkGeoTreeNode
Stores data for a patch of the globe.
Definition:
vtkGeoTreeNode.h:46
vtkSmartPointer< vtkGeoTreeNode >
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkGeoTreeNodeCache
Manages a list of vtkGeoTreeNodes.
Definition:
vtkGeoTreeNodeCache.h:40
vtkGeoTreeNodeCache::CacheMaximumLimit
int CacheMaximumLimit
Definition:
vtkGeoTreeNodeCache.h:103
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
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGeoTreeNodeCache::Size
int Size
Definition:
vtkGeoTreeNodeCache.h:101
vtkGeoTreeNodeCache::Newest
vtkSmartPointer< vtkGeoTreeNode > Newest
Definition:
vtkGeoTreeNodeCache.h:105
Generated by
1.8.17