VTK
9.0.1
IO
AMR
vtkAMRDataSetCache.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAMRDataSetCache.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
=========================================================================*/
25
#ifndef vtkAMRDataSetCache_h
26
#define vtkAMRDataSetCache_h
27
28
#include "vtkIOAMRModule.h"
// For export macro
29
#include "
vtkObject.h
"
30
#include <map>
// For STL map used as the data-structure for the cache.
31
32
class
vtkUniformGrid
;
33
class
vtkDataArray
;
34
35
class
VTKIOAMR_EXPORT
vtkAMRDataSetCache
:
public
vtkObject
36
{
37
public
:
38
static
vtkAMRDataSetCache
*
New
();
39
vtkTypeMacro(
vtkAMRDataSetCache
,
vtkObject
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
41
45
void
InsertAMRBlock(
int
compositeIdx,
vtkUniformGrid
* amrGrid);
46
51
void
InsertAMRBlockPointData(
int
compositeIdx,
vtkDataArray
* dataArray);
52
57
void
InsertAMRBlockCellData(
int
compositeIdx,
vtkDataArray
* dataArray);
58
64
vtkDataArray
* GetAMRBlockCellData(
int
compositeIdx,
const
char
* dataName);
65
71
vtkDataArray
* GetAMRBlockPointData(
int
compositeIdx,
const
char
* dataName);
72
77
vtkUniformGrid
* GetAMRBlock(
int
compositeIdx);
78
83
bool
HasAMRBlockCellData(
int
compositeIdx,
const
char
*
name
);
84
89
bool
HasAMRBlockPointData(
int
compositeIdx,
const
char
*
name
);
90
94
bool
HasAMRBlock(
const
int
compositeIdx);
95
96
protected
:
97
vtkAMRDataSetCache
();
98
~
vtkAMRDataSetCache
()
override
;
99
100
typedef
std::map<int, vtkUniformGrid*>
AMRCacheType
;
101
AMRCacheType
Cache
;
102
103
private
:
104
vtkAMRDataSetCache
(
const
vtkAMRDataSetCache
&) =
delete
;
105
void
operator=(
const
vtkAMRDataSetCache
&) =
delete
;
106
};
107
108
#endif
/* vtkAMRDataSetCache_h */
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkUniformGrid
image data with blanking
Definition:
vtkUniformGrid.h:34
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkDataArray
abstract superclass for arrays of numeric data
Definition:
vtkDataArray.h:49
vtkAMRDataSetCache::AMRCacheType
std::map< int, vtkUniformGrid * > AMRCacheType
Definition:
vtkAMRDataSetCache.h:100
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkAMRDataSetCache::Cache
AMRCacheType Cache
Definition:
vtkAMRDataSetCache.h:101
vtkAMRDataSetCache
Definition:
vtkAMRDataSetCache.h:35
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::name
@ name
Definition:
vtkX3D.h:225
vtkObject.h
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17