foamVtuCellsI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2016-2021 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "foamVtuCells.H"
29 
30 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
31 
34 {
35  return output_;
36 }
37 
38 
39 inline bool Foam::vtk::vtuCells::decomposeRequested() const noexcept
40 {
41  return decomposeRequest_;
42 }
43 
44 
45 inline bool Foam::vtk::vtuCells::empty() const noexcept
46 {
47  return cellTypes_.empty();
48 }
49 
50 
51 inline Foam::label Foam::vtk::vtuCells::size() const noexcept
52 {
53  return cellTypes_.size();
54 }
55 
56 
57 inline const Foam::List<uint8_t>&
59 {
60  return cellTypes_;
61 }
62 
63 
64 inline const Foam::labelList&
66 {
67  return vertLabels_;
68 }
69 
70 
71 inline const Foam::labelList&
73 {
74  return vertOffset_;
75 }
76 
77 
78 inline const Foam::labelList&
80 {
81  return faceLabels_;
82 }
83 
84 
85 inline const Foam::labelList&
87 {
88  return faceOffset_;
89 }
90 
91 
92 inline const Foam::labelList&
94 {
95  return maps_.additionalIds();
96 }
97 
98 
99 inline const Foam::labelList&
101 {
102  return maps_.cellMap();
103 }
104 
105 
106 // ************************************************************************* //
Foam::vtk::vtuCells::vertLabels
const labelList & vertLabels() const noexcept
Values for "connectivity" (XML) or "CELLS" (legacy)
Definition: foamVtuCellsI.H:65
Foam::vtk::vtuSizing::contentType
contentType
Types of content that the storage may represent.
Definition: foamVtuSizing.H:208
Foam::vtk::vtuCells::decomposeRequested
bool decomposeRequested() const noexcept
Query the polyhedral decompose requested flag.
Definition: foamVtuCellsI.H:39
Foam::vtk::vtuCells::vertOffsets
const labelList & vertOffsets() const noexcept
Values for "offsets" (XML only)
Definition: foamVtuCellsI.H:72
foamVtuCells.H
Foam::vtk::vtuCells::faceLabels
const labelList & faceLabels() const noexcept
Values for "faces" (XML only)
Definition: foamVtuCellsI.H:79
Foam::vtk::vtuCells::content
enum contentType content() const noexcept
The output content type.
Definition: foamVtuCellsI.H:33
Foam::vtk::vtuCells::size
label size() const noexcept
The size of populated cellTypes.
Definition: foamVtuCellsI.H:51
Foam::vtk::vtuCells::cellMap
const labelList & cellMap() const noexcept
Original cell ids for all cells (regular and decomposed).
Definition: foamVtuCellsI.H:100
Foam::vtk::vtuCells::addPointCellLabels
const labelList & addPointCellLabels() const noexcept
Additional point addressing (from added point to original cell)
Definition: foamVtuCellsI.H:93
Foam::List< uint8_t >
Foam::vtk::vtuCells::faceOffsets
const labelList & faceOffsets() const noexcept
Values for "faceoffset" (XML only)
Definition: foamVtuCellsI.H:86
Foam::vtk::vtuCells::cellTypes
const List< uint8_t > & cellTypes() const noexcept
Values for "types" (XML) and "CELL_TYPES" (legacy)
Definition: foamVtuCellsI.H:58
Foam::vtk::vtuCells::empty
bool empty() const noexcept
True if no cellTypes are populated.
Definition: foamVtuCellsI.H:45