VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Geovis
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
-------------------------------------------------------------------------*/
30
#ifndef __vtkGeoTreeNodeCache_h
31
#define __vtkGeoTreeNodeCache_h
32
33
#include "
vtkObject.h
"
34
#include "
vtkSmartPointer.h
"
// For SP ivars
35
36
class
vtkGeoTreeNode
;
37
38
class
VTK_GEOVIS_EXPORT
vtkGeoTreeNodeCache
:
public
vtkObject
39
{
40
public
:
41
static
vtkGeoTreeNodeCache
*
New
();
42
vtkTypeMacro(
vtkGeoTreeNodeCache
,
vtkObject
);
43
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
46
49
vtkSetMacro(CacheMaximumLimit,
int
);
50
vtkGetMacro(CacheMaximumLimit,
int
);
52
54
55
vtkSetMacro(CacheMinimumLimit,
int
);
56
vtkGetMacro(CacheMinimumLimit,
int
);
58
62
void
SendToFront(
vtkGeoTreeNode
* node);
63
65
void
RemoveNode(
vtkGeoTreeNode
* node);
66
68
69
vtkGetMacro(Size,
int
);
71
72
protected
:
73
vtkGeoTreeNodeCache
();
74
~
vtkGeoTreeNodeCache
();
75
78
void
TrimToCacheMinimum();
79
82
void
DeleteDataFromSiblings(
vtkGeoTreeNode
* node);
83
84
int
Size
;
85
int
CacheMinimumLimit
;
86
int
CacheMaximumLimit
;
87
//BTX
88
vtkSmartPointer<vtkGeoTreeNode>
Newest
;
89
vtkSmartPointer<vtkGeoTreeNode>
Oldest
;
90
//ETX
91
92
private
:
93
vtkGeoTreeNodeCache
(
const
vtkGeoTreeNodeCache
&);
// Not implemented
94
void
operator=(
const
vtkGeoTreeNodeCache
&);
// Not implemented
95
};
96
97
#endif
Generated on Wed Nov 21 2012 21:33:47 for VTK by
1.8.2