|
|
|
vtkTopo.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::vtkTopo 00027 00028 Description 00029 Polyhedral cell decomposition for VTK. 00030 00031 SourceFiles 00032 vtkTopo.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef vtkTopo_H 00037 #define vtkTopo_H 00038 00039 #include "labelList.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 // Forward declaration of classes 00047 class polyMesh; 00048 00049 /*---------------------------------------------------------------------------*\ 00050 Class vtkTopo Declaration 00051 \*---------------------------------------------------------------------------*/ 00052 00053 class vtkTopo 00054 { 00055 // Private data 00056 00057 const polyMesh& mesh_; 00058 00059 //- Vertices per cell (including added cells) in vtk ordering 00060 labelListList vertLabels_; 00061 00062 //- Cell types (including added cells) in vtk numbering 00063 labelList cellTypes_; 00064 00065 labelList addPointCellLabels_; 00066 00067 labelList superCells_; 00068 00069 00070 // Private Member Functions 00071 00072 //- Disallow default bitwise copy construct 00073 vtkTopo(const vtkTopo&); 00074 00075 //- Disallow default bitwise assignment 00076 void operator=(const vtkTopo&); 00077 00078 00079 public: 00080 00081 // Public static data 00082 00083 // this must be consistent with the enumeration in "vtkCell.H" 00084 enum vtkTypes 00085 { 00086 VTK_TRIANGLE = 5, 00087 VTK_POLYGON = 7, 00088 VTK_QUAD = 9, 00089 00090 VTK_TETRA = 10, 00091 VTK_PYRAMID = 14, 00092 VTK_WEDGE = 13, 00093 VTK_HEXAHEDRON = 12, 00094 }; 00095 00096 // Constructors 00097 00098 //- Construct from components 00099 vtkTopo(const polyMesh& mesh); 00100 00101 00102 // Member Functions 00103 00104 // Access 00105 00106 const labelListList& vertLabels() const 00107 { 00108 return vertLabels_; 00109 } 00110 00111 const labelList& cellTypes() const 00112 { 00113 return cellTypes_; 00114 } 00115 00116 const labelList& addPointCellLabels() const 00117 { 00118 return addPointCellLabels_; 00119 } 00120 00121 const labelList& superCells() const 00122 { 00123 return superCells_; 00124 } 00125 }; 00126 00127 00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00129 00130 } // End namespace Foam 00131 00132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00133 00134 #endif 00135 00136 // ************************************************************************* // |