VTK  9.0.1
VTXTypes.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: VTXTypes.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  * VTXTypes.h : header-only type definitions needed by the VTK::IOADIOS2 module
18  *
19  * Created on: May 14, 2019
20  * Author: William F Godoy godoywf@ornl.gov
21  */
22 
23 #ifndef VTK_IO_ADIOS2_VTX_COMMON_VTXTypes_h
24 #define VTK_IO_ADIOS2_VTX_COMMON_VTXTypes_h
25 
26 #include <map>
27 #include <vector>
28 
29 #include "VTXDataArray.h"
30 
31 #include <adios2.h>
32 
33 namespace vtx
34 {
35 namespace types
36 {
37 
39 using DataSet = std::map<std::string, DataArray>;
40 
41 enum class DataSetType
42 {
43  CellData,
44  PointData,
45  Points,
47  Cells,
48  Verts,
49  Lines,
50  Strips,
51  Polys
52 };
53 
54 using Piece = std::map<DataSetType, DataSet>;
55 
56 #define VTK_IO_ADIOS2_VTX_ARRAY_TYPE(MACRO) \
57  MACRO(int32_t) \
58  MACRO(uint32_t) \
59  MACRO(int64_t) \
60  MACRO(uint64_t) \
61  MACRO(float) \
62  MACRO(double)
63 
64 } // end namespace types
65 } // end namespace vtx
66 
67 #endif /* VTK_IO_ADIOS2_VTX_COMMON_VTXTypes_h */
vtx::types::DataSet
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:39
vtx::types::DataSetType::Polys
@ Polys
vtx::types::Piece
std::map< DataSetType, DataSet > Piece
Definition: VTXTypes.h:54
VTXDataArray.h
vtx::types::DataSetType::Lines
@ Lines
vtx::types::DataSetType::Coordinates
@ Coordinates
vtx::types::DataSetType
DataSetType
Definition: VTXTypes.h:41
vtx::types::DataSetType::PointData
@ PointData
vtx
Definition: vtkADIOS2VTXReader.h:35
vtx::types::DataSetType::CellData
@ CellData
vtx::types::DataSetType::Verts
@ Verts
vtx::types::DataSetType::Strips
@ Strips
vtx::types::DataSetType::Points
@ Points
vtx::types::DataSetType::Cells
@ Cells