Molecule Visualizer
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Groups Pages
Public Member Functions | List of all members
Atom Class Reference

Public Member Functions

 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...
 

Constructor & Destructor Documentation

Atom::Atom ( float  x,
float  y,
float  z,
glm::vec3  color,
float  radius 
)

Constructor.

Parameters
xa float.
ya float.
za float.
colora glm::vec3.
radiusa float.
Atom::Atom ( float  x,
float  y,
float  z,
glm::vec3  color,
float  radius,
glm::vec3  chainColor 
)

Constructor.

Parameters
xa float.
ya float.
za float.
colora glm::vec3.
radiusa float.
chainColora glm::vec3.
Atom::Atom ( glm::vec3  pos,
glm::vec3  color,
float  radius 
)

Constructor.

Parameters
posa glm::vec3.
colora glm::vec3.
radiusa float.
Atom::Atom ( glm::vec3  pos,
glm::vec3  color,
float  radius,
glm::vec3  chainColor 
)

Constructor.

Parameters
posa glm::vec3.
colora glm::vec3.
radiusa float.
chainColora glm::vec3

Member Function Documentation

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
xa float.
ya float.
za float.
Returns
void.
void Atom::offsetPos ( glm::vec3  newPos)

A member function to offset the position.

Parameters
newPosa glm::vec3
Returns
void.
void Atom::setChainColor ( glm::vec3  color)

A member function to set the chain color.

Parameters
colora glm::vec3.
Returns
void.
void Atom::setChainColor ( float  r,
float  g,
float  b 
)

A member function to set the chain color.

Parameters
ra float.
ga float.
ba float.
Returns
void.
void Atom::setColor ( glm::vec3  color)

A member function to set the color.

Parameters
colora glm::vec3.
Returns
void.
void Atom::setColor ( float  r,
float  g,
float  b 
)

A member function to set the color.

Parameters
ra float.
ga float.
ba float.
Returns
void.

The documentation for this class was generated from the following files: