ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
fracwriter.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
#ifndef __FRACWRITER_H
14
#define __FRACWRITER_H
15
16
// --- project includes ---
17
#include "
fracframe.h
"
18
#include "
Foundation/vec3.h
"
19
#include "
Geometry/Plane3D.h
"
20
21
// --- STL includes ---
22
#include <vector>
23
#include <string>
24
25
using
std::vector;
26
using
std::string;
27
28
struct
fwdata
29
{
30
Vec3
pos
;
31
Vec3
normal
;
32
double
size
;
33
int
time
;
34
int
id1
,
id2
;
35
int
tag
;
36
37
fwdata
(
const
FracFrame::fdata
&,
int
);
38
};
39
40
class
FracWriter
41
{
42
private
:
43
vector<fwdata>
m_data
;
44
map<int,int>
m_nbrk_map
;
45
46
Vec3
m_c1
,
m_c2
,
m_c3
,
m_c4
;
47
bool
with_plane
;
48
49
void
writePlane
(
const
string
&);
50
51
public
:
52
FracWriter
();
53
void
addData
(
const
vector<FracFrame::fdata>&,
int
);
54
void
addPlane
(
const
Plane3D
&);
55
void
write
(
const
string
&);
56
void
writeText
(
const
string
&);
57
void
writeProfile
(
double
,
double
,
int
,
const
string
&);
58
void
writeParticleList
(
const
string
&);
59
};
60
61
#endif //__FRACWRITER_H
Tools
ExtractFractures
fracwriter.h
Generated on Mon May 6 2013 23:26:31 for ESyS-Particle by
1.8.3.1