You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
graphics
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
"
13
#include "
basics/vectorsMatricesForward.hh
"
14
#include "
basics/exceptions.hh
"
15
#include "
toolbox/dynArray.hh
"
16
#include "
space/postProcess.hh
"
17
18
namespace
concepts
{
19
// forward declartions
20
class
Mesh2;
21
class
Mesh3;
22
}
// namespace concepts
23
24
namespace
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>
63
class
MeshDATCell
:
public
concepts::CellPostprocess
<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
exceptions.hh
concepts::CellPostprocess
Definition
postProcess.hh:38
concepts::Cell
Definition
cell.hh:39
concepts::DynArray
Definition
dynArray.hh:105
concepts::Element
Definition
element.hh:52
concepts::Mesh
Definition
mesh.hh:76
concepts::Point< Real, 3 >
concepts::Space
Definition
space.hh:44
graphics::MeshDATCell
Definition
meshDAT.hh:63
graphics::MeshDATCell::operator()
virtual void operator()(const concepts::Element< F > &elm)
graphics::MeshDATCell::MeshDATCell
MeshDATCell(const std::string &coordFilename, const std::string &boundFilename, const std::string &elmFilename)
Constructor.
graphics::MeshDAT
Definition
meshDAT.hh:35
graphics::MeshDAT::MeshDAT
MeshDAT(concepts::Space< F > &spc, const std::string &filename)
Constructor.
graphics::MeshDAT::MeshDAT
MeshDAT(concepts::Mesh &msh, const std::string &filename)
Constructor.
dynArray.hh
concepts
Definition
pml_formula.h:16
concepts::Real
double Real
Definition
typedefs.hh:39
graphics
Definition
graphics.hh:26
graphics::drawMeshDAT
void drawMeshDAT(concepts::Mesh &msh, const std::string &filename)
postProcess.hh
typedefs.hh
vectorsMatricesForward.hh
Generated on Wed Sep 13 2023 21:06:20 for Concepts by
1.9.8