Class documentation of Concepts

Loading...
Searching...
No Matches
meshMatlab.hh
Go to the documentation of this file.
1
6#ifndef graphMeshMatlab_hh
7#define graphMeshMatlab_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 // ************************************************************ MeshMatlab **
29
50 template<typename F>
51 class MeshMatlab {
52 public:
55 MeshMatlab(concepts::Mesh& msh, std::string filename);
58 MeshMatlab(concepts::Space<F>& spc, std::string filename);
60 private:
62 void createStreams_(std::string filename);
64 void closeStreams_();
66 std::unique_ptr<std::ofstream> ofs1_, ofs2_, ofs3_;
67 };
68
72 void drawMeshMatlab(concepts::Mesh& msh, std::string filename);
73
77 template<class F>
78 void drawMeshMatlab(concepts::Space<F>& spc, std::string filename);
79
80 // ******************************************************** MeshMatlabCell **
81
96 template<typename F>
98 public:
100 MeshMatlabCell(std::ostream* os1, std::ostream* os2, std::ostream* os3);
101 virtual ~MeshMatlabCell();
102 virtual void operator() (const concepts::Element<F>& elm);
103 virtual void operator() (const concepts::Cell& cell);
104 private:
106 std::ostream *os1_, *os2_, *os3_;
108 std::unique_ptr<concepts::DynArray<uint> > map_;
110 uint cnt_;
111 };
112
113} // namespace graphics
114
115#endif // graphMeshMatlab_hh
MeshMatlabCell(std::ostream *os1, std::ostream *os2, std::ostream *os3)
Constructor.
virtual void operator()(const concepts::Element< F > &elm)
MeshMatlab(concepts::Space< F > &spc, std::string filename)
MeshMatlab(concepts::Mesh &msh, std::string filename)
double Real
Definition typedefs.hh:39
void drawMeshMatlab(concepts::Mesh &msh, std::string filename)