ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
fracframe.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 __FRACFRAME_H
14
#define __FRACFRAME_H
15
16
//--- system includes ---
17
#include <string>
18
#include <vector>
19
#include <set>
20
#include <utility>
21
#include <map>
22
23
using
std::string;
24
using
std::vector;
25
using
std::set;
26
using
std::pair;
27
using
std::map;
28
29
//--- project includes ---
30
#include "
Foundation/vec3.h
"
31
32
33
34
class
FracFrame
35
{
36
private
:
37
// bond data
38
39
struct
bdata
40
{
41
int
id1
,
id2
,
tag
;
42
};
43
44
class
cmp
45
{
46
public
:
47
bool
operator ()
(
const
bdata
&,
const
bdata
&);
48
};
49
50
set<bdata,FracFrame::cmp>
m_bonds
;
51
map<int,Vec3>
posmap
;
52
map<int,float>
radmap
;
53
map<int,int>
tagmap
;
54
55
// private helper functions
56
int
get_version
(
const
string
&);
57
vector<string>
get_filenames
(
const
string
&,
int
);
58
59
public
:
60
61
// types
62
struct
fdata
63
{
64
Vec3
pos
;
65
Vec3
normal
;
66
double
size
;
67
int
id1
,
id2
;
68
int
tag
;
69
};
70
71
72
FracFrame
();
73
74
void
readFile
(
const
string
&);
75
void
readFileRot
(
const
string
&,
bool
);
76
void
readFileTagged
(
const
string
&,
int
);
77
void
readFileRotTagged
(
const
string
&,
int
);
78
vector<fdata>
getFrac
(
FracFrame
&);
79
};
80
81
#endif // __FRACFRAME_H
Tools
ExtractFractures
fracframe.h
Generated on Mon May 6 2013 23:26:31 for ESyS-Particle by
1.8.3.1