Class documentation of Concepts

Loading...
Searching...
No Matches
meshDAT.hh
Go to the documentation of this file.
1
6#ifndef graphMeshDAT_hh
7#define graphMeshDAT_hh
8
9#include <string>
10#include <fstream>
11#include <memory>
12#include "basics/typedefs.hh"
14#include "basics/exceptions.hh"
15#include "toolbox/dynArray.hh"
16#include "space/postProcess.hh"
17
18namespace concepts {
19 // forward declartions
20 class Mesh2;
21 class Mesh3;
22} // namespace concepts
23
24namespace graphics {
25
26 using concepts::Real;
27
28 // *************************************************************** MeshDAT **
29
34 template<typename F>
35 class MeshDAT {
36 public:
38 MeshDAT(concepts::Mesh& msh, const std::string& filename);
40 MeshDAT(concepts::Space<F>& spc, const std::string& filename);
41 private:
42 std::string coordFilename_, boundFilename_, elmFilename_;
43 void createFilenames_(const std::string& filename);
44 };
45
49 void drawMeshDAT(concepts::Mesh& msh, const std::string& filename);
50
54 template<typename F>
55 void drawMeshDAT(concepts::Space<F>& spc, const std::string& filename);
56
57 // *********************************************************** MeshDATCell **
58
62 template<typename F>
64 public:
66 MeshDATCell(const std::string& coordFilename,
67 const std::string& boundFilename,
68 const std::string& elmFilename);
69 virtual ~MeshDATCell();
70 virtual void operator() (const concepts::Element<F>& elm);
71 virtual void operator() (const concepts::Cell& cell);
72 private:
73 std::ofstream coordFile_, boundFile_, elmFile_;
74
76 std::map<uint, uint> vtxList_;
77 std::map<uint, concepts::Real3d> vtxCoord_;
78 concepts::DynArray<bool> vtxBndNotDone_, edgBndNotDone_;
79
81 uint vtxCnt_, bndCnt_, elmCnt_;
82
83 uint getVertexNumber_(const uint key, const concepts::Real3d* coord = 0);
84 };
85
86} // namespace graphics
87
88#endif // graphMeshDAT_hh
virtual void operator()(const concepts::Element< F > &elm)
MeshDATCell(const std::string &coordFilename, const std::string &boundFilename, const std::string &elmFilename)
Constructor.
MeshDAT(concepts::Space< F > &spc, const std::string &filename)
Constructor.
MeshDAT(concepts::Mesh &msh, const std::string &filename)
Constructor.
double Real
Definition typedefs.hh:39
void drawMeshDAT(concepts::Mesh &msh, const std::string &filename)