|
| | Atom (float x, float y, float z, glm::vec3 color, float radius) |
| | Constructor. More...
|
| |
| | Atom (float x, float y, float z, glm::vec3 color, float radius, glm::vec3 chainColor) |
| | Constructor. More...
|
| |
| | Atom (glm::vec3 pos, glm::vec3 color, float radius) |
| | Constructor. More...
|
| |
| | Atom (glm::vec3 pos, glm::vec3 color, float radius, glm::vec3 chainColor) |
| | Constructor. More...
|
| |
|
| ~Atom () |
| | Default destructor.
|
| |
| glm::vec4 | getPos () const |
| | A member function to get the current position. More...
|
| |
| glm::vec3 | getColor () const |
| | A member function to get the color. More...
|
| |
| glm::vec3 | getChainColor () const |
| | A member function to get the chain color. More...
|
| |
| float | getRadius () const |
| | A member function to get the radius. More...
|
| |
| void | setColor (glm::vec3 color) |
| | A member function to set the color. More...
|
| |
| void | setColor (float r, float g, float b) |
| | A member function to set the color. More...
|
| |
| void | offsetPos (float x, float y, float z) |
| | A member function to offset the position. More...
|
| |
| void | offsetPos (glm::vec3 newPos) |
| | A member function to offset the position. More...
|
| |
| void | setChainColor (glm::vec3 color) |
| | A member function to set the chain color. More...
|
| |
| void | setChainColor (float r, float g, float b) |
| | A member function to set the chain color. More...
|
| |
| Atom::Atom |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
glm::vec3 |
color, |
|
|
float |
radius |
|
) |
| |
Constructor.
- Parameters
-
| x | a float. |
| y | a float. |
| z | a float. |
| color | a glm::vec3. |
| radius | a float. |
| Atom::Atom |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
glm::vec3 |
color, |
|
|
float |
radius, |
|
|
glm::vec3 |
chainColor |
|
) |
| |
Constructor.
- Parameters
-
| x | a float. |
| y | a float. |
| z | a float. |
| color | a glm::vec3. |
| radius | a float. |
| chainColor | a glm::vec3. |
| Atom::Atom |
( |
glm::vec3 |
pos, |
|
|
glm::vec3 |
color, |
|
|
float |
radius |
|
) |
| |
Constructor.
- Parameters
-
| pos | a glm::vec3. |
| color | a glm::vec3. |
| radius | a float. |
| Atom::Atom |
( |
glm::vec3 |
pos, |
|
|
glm::vec3 |
color, |
|
|
float |
radius, |
|
|
glm::vec3 |
chainColor |
|
) |
| |
Constructor.
- Parameters
-
| pos | a glm::vec3. |
| color | a glm::vec3. |
| radius | a float. |
| chainColor | a glm::vec3 |
| glm::vec3 Atom::getChainColor |
( |
| ) |
const |
A member function to get the chain color.
- Returns
- the chain color as a glm::vec3
| glm::vec3 Atom::getColor |
( |
| ) |
const |
A member function to get the color.
- Returns
- the color as a glm::vec3.
| glm::vec4 Atom::getPos |
( |
| ) |
const |
A member function to get the current position.
- Returns
- the position as a glm::vec4.
| float Atom::getRadius |
( |
| ) |
const |
A member function to get the radius.
- Returns
- the radius as float.
| void Atom::offsetPos |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
A member function to offset the position.
- Parameters
-
| x | a float. |
| y | a float. |
| z | a float. |
- Returns
- void.
| void Atom::offsetPos |
( |
glm::vec3 |
newPos | ) |
|
A member function to offset the position.
- Parameters
-
- Returns
- void.
| void Atom::setChainColor |
( |
glm::vec3 |
color | ) |
|
A member function to set the chain color.
- Parameters
-
- Returns
- void.
| void Atom::setChainColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
A member function to set the chain color.
- Parameters
-
| r | a float. |
| g | a float. |
| b | a float. |
- Returns
- void.
| void Atom::setColor |
( |
glm::vec3 |
color | ) |
|
A member function to set the color.
- Parameters
-
- Returns
- void.
| void Atom::setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
A member function to set the color.
- Parameters
-
| r | a float. |
| g | a float. |
| b | a float. |
- Returns
- void.
The documentation for this class was generated from the following files: