#include <cstdint>
#include <iostream>
#include <set>
#include <vector>
#include <map>
#include <glm/glm.hpp>
#include <element.h>
#include <colour.h>
Go to the source code of this file.
◆ applyColours()
Apply colours by index.
- Parameters
-
atoms | the Atoms to colour. |
colours | the partial map of indices to colours. |
◆ applySizes()
Apply sizes by index.
- Parameters
-
atoms | the Atoms to colour. |
colours | the atom sizes. |
◆ center()
Subtract the centre of mass of some Atoms.
- Parameters
-
atoms | the Atom list to centre. |
◆ centerOn()
Centre on a particular Atom.
- Parameters
-
atoms | the Atom list to centre. |
index | the Atom index to centre on. |
◆ elementIndices()
Obtain indices of each element.
- Parameters
-
- Returns
- std::multimap<Element, uint64_t> the indices of each element type.
◆ extent()
Calculate the extent of some Atoms.
- Parameters
-
- Returns
- glm::vec3 the extent (max-min).
◆ getCenter()
Calculate the centre of mass.
- Parameters
-
atoms | the Atom list to centre. |
- Returns
- glm::vec3 the Atoms centers of mass.
◆ largest()
Calculate the largest Atom.
- Parameters
-
- Returns
- float the largest Atom.
◆ max()
Calculate the maximum positions of some Atoms.
- Parameters
-
- Returns
- glm::vec3 the maximum position.
◆ min()
Calculate the minimum positions of some Atoms.
- Parameters
-
- Returns
- glm::vec3 the minimum position.
◆ operator<<()
Print an atom to std::ostream.
- Parameters
-
o | output stream. |
atom | atom to print. |
- Returns
- std::ostream& the resulting output stream.
◆ translate()
◆ uniqueElements()
Determine the unique elements in a list of Atom.
- Parameters
-
- Returns
- std::set<Element> the set of elements.