Molecule Viewer
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Pages
source
Atom.hpp
1
#ifndef _ATOM_HPP_
2
#define _ATOM_HPP_
3
4
#include "common.hpp"
5
7
class
Atom
{
8
9
public
:
10
11
13
Atom
(
float
x,
float
y,
float
z, glm::vec3 color,
float
radius);
14
15
16
Atom
(
float
x,
float
y,
float
z, glm::vec3 color, glm::vec3 chainColor ,
float
radius);
17
19
virtual
~Atom
();
20
22
glm::vec4
GetPosition
()
const
;
23
25
glm::vec3
GetColor
()
const
;
26
28
float
Atom::GetRadius
()
const
;
29
31
void
SetColor
(
float
r,
float
g,
float
b);
32
34
void
MovePosition
(
float
offset_x,
float
offset_y,
float
offset_z);
35
36
37
glm::vec3 GetChainColor()
const
;
38
void
SetChainColor(
float
r,
float
g,
float
b);
39
40
41
42
private
:
43
45
glm::vec4 _position;
46
48
glm::vec3 _color;
49
51
float
_radius;
52
54
glm::vec3 _chainColor;
55
56
57
};
58
59
#endif //#ifndef _ATOM_HPP_
Generated on Thu Jun 6 2013 18:42:59 for Molecule Viewer by
1.8.3.1