VTK
9.2.6
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
IO
ADIOS2
VTX
schema
vtk
VTXvtkVTU.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: VTXvtkVTU.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
/*
17
* VTXvtkVTU.h : class that supports UnstructuredMesh schema in VTK XML
18
* format .vtu extends abstract VTXvtkBase
19
*
20
* Created on: June 24, 2019
21
* Author: William F Godoy godoywf@ornl.gov
22
*/
23
24
#ifndef VTK_IO_ADIOS2_VTX_SCHEMA_VTK_VTXxmlVTU_h
25
#define VTK_IO_ADIOS2_VTX_SCHEMA_VTK_VTXxmlVTU_h
26
27
#include <map>
28
#include <string>
29
#include <vector>
30
31
#include "
vtkNew.h
"
32
#include "
vtkUnstructuredGrid.h
"
33
34
#include "
VTX/schema/vtk/VTXvtkBase.h
"
35
36
namespace
vtx
37
{
38
namespace
schema
39
{
40
class
VTXvtkVTU
:
public
VTXvtkBase
41
{
42
public
:
43
VTXvtkVTU
(
const
std::string& schema, adios2::IO& io, adios2::Engine& engine);
44
~VTXvtkVTU
();
45
46
private
:
48
vtkNew<vtkUnstructuredGrid>
UnstructuredGrid;
49
51
std::vector<size_t> BlockIDs;
52
53
void
DoFill(
vtkMultiBlockDataSet
* multiBlock,
const
size_t
step)
final
;
54
void
ReadPiece(
const
size_t
step,
const
size_t
pieceID)
final
;
55
56
void
Init() final;
57
58
#define declare_type(T) \
59
void SetBlocks(adios2::Variable<T> variable, types::DataArray& dataArray, const size_t step) \
60
final;
61
VTK_IO_ADIOS2_VTX_ARRAY_TYPE
(
declare_type
)
62
#undef declare_type
63
64
template
<
class
T>
65
void
SetBlocksCommon(
66
adios2::Variable<T> variable, types::DataArray& dataArray,
const
size_t
step);
67
};
68
69
}
// end namespace schema
70
}
// end namespace vtx
71
72
#endif
/* VTK_IO_ADIOS2_VTX_SCHEMA_VTK_VTXxmlVTU_h */
VTK_IO_ADIOS2_VTX_ARRAY_TYPE
#define VTK_IO_ADIOS2_VTX_ARRAY_TYPE(MACRO)
Definition
VTXTypes.h:56
VTXvtkBase.h
declare_type
#define declare_type(T)
Definition
VTXvtkVTI.h:60
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition
vtkMultiBlockDataSet.h:52
vtkNew
Allocate and hold a VTK object.
Definition
vtkNew.h:62
vtx::schema::VTXvtkBase
Definition
VTXvtkBase.h:43
vtx::schema::VTXvtkVTU
Definition
VTXvtkVTU.h:41
vtx::schema::VTXvtkVTU::~VTXvtkVTU
~VTXvtkVTU()
vtx::schema::VTXvtkVTU::VTXvtkVTU
VTXvtkVTU(const std::string &schema, adios2::IO &io, adios2::Engine &engine)
vtx
Definition
vtkADIOS2VTXReader.h:36
vtkNew.h
vtkUnstructuredGrid.h
Generated on Sat Dec 14 2024 00:00:00 for VTK by
1.12.0