AO4MO
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Enumerator
Wolfgang
Documents
Studium
Semster 11
Vis2
Abgabe
src
AO4OM
MolecularData.h
1
#pragma once
2
#include <string>
3
#include <map>
4
#include <vector>
5
#include <qcolor.h>
6
11
class
MolecularData
12
{
13
public
:
14
MolecularData
(
void
);
15
~
MolecularData
(
void
);
16
20
struct
atom
{
21
float
pos
[3];
22
std::string
type
;
23
char
group
;
24
};
25
30
std::map<int,atom>
atomData
;
35
std::vector<long long>
bondData
;
36
40
enum
colorMode
{
41
ATOM_TPYE
,
42
ATOM_GROUP
43
};
50
void
getColorfromAtom
(
int
id
,
colorMode
mode,
float
*color);
56
float
getRadiusFromAtom
(
int
id
);
57
private
:
61
struct
AtomPropertieElement{
62
std::string name;
63
int
color[3];
64
float
radius;
65
};
69
struct
ChainPropertieElement{
70
char
names[3];
71
int
color[3];
72
};
76
static
AtomPropertieElement
const
atomProperties[];
80
static
ChainPropertieElement
const
chainProperties[];
81
82
83
84
85
86
87
88
89
};
90
Generated on Tue Jun 11 2013 13:19:20 for AO4MO by
1.8.4