You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
graphics
meshGnuplot.hh
Go to the documentation of this file.
1
6
#ifndef graphMeshGnuplot_hh
7
#define graphMeshGnuplot_hh
8
9
#include <string>
10
#include <fstream>
11
#include <memory>
12
#include "
basics/typedefs.hh
"
13
#include "
basics/vectorsMatricesForward.hh
"
14
#include "
basics/exceptions.hh
"
15
#include "
space/postProcess.hh
"
16
17
namespace
graphics
{
18
using
concepts::Real
;
19
20
// ******************************************************* MeshGnuplotCell **
21
25
template
<
typename
F>
26
class
MeshGnuplotCell
:
public
concepts::CellPostprocess
<F> {
27
public
:
28
MeshGnuplotCell
(std::ofstream* ofs) : ofs_(ofs) {}
29
virtual
~MeshGnuplotCell
();
30
virtual
void
operator()
(
const
concepts::Element<F>
& elm);
31
virtual
void
operator()
(
const
concepts::Cell
& cell);
32
std::ofstream* write() {
return
ofs_; }
33
private
:
34
std::ofstream* ofs_;
35
};
36
37
// *********************************************************** MeshGnuplot **
38
43
template
<
typename
T>
44
void
drawMeshGnuplot
(T& msh_spc, std::string filename) {
45
std::ofstream ofs(filename.c_str());
46
concepts::GlobalPostprocess<Real>
postProcess(msh_spc);
47
MeshGnuplotCell<Real>
gnu(&ofs);
48
postProcess(gnu);
49
}
50
51
}
// namespace graphics
52
53
#endif
// graphMeshGnuplot_hh
exceptions.hh
concepts::CellPostprocess
Definition
postProcess.hh:38
concepts::Cell
Definition
cell.hh:39
concepts::Element
Definition
element.hh:52
concepts::GlobalPostprocess
Definition
postProcess.hh:70
graphics::MeshGnuplotCell
Definition
meshGnuplot.hh:26
graphics::MeshGnuplotCell::operator()
virtual void operator()(const concepts::Element< F > &elm)
concepts::Real
double Real
Definition
typedefs.hh:39
graphics
Definition
graphics.hh:26
graphics::drawMeshGnuplot
void drawMeshGnuplot(T &msh_spc, std::string filename)
Definition
meshGnuplot.hh:44
postProcess.hh
typedefs.hh
vectorsMatricesForward.hh
Generated on Wed Sep 13 2023 21:06:20 for Concepts by
1.9.8