The Layer class represents a relation one to one between atoms ID and layer ID, and stores the unique active layer. Layer's ID are consecutively and there can't be a ID bigger than m_maxLayer
.
#include <avogadro/core/layer.h>
◆ getLayerID()
size_t getLayerID |
( |
Index |
atom | ) |
const |
- Returns
- the layer ID from the
atom
.
◆ activeLayer()
size_t activeLayer |
( |
| ) |
const |
◆ maxLayer()
size_t maxLayer |
( |
| ) |
const |
- Returns
- the maximum layer allowed.
◆ layerCount()
size_t layerCount |
( |
| ) |
const |
- Returns
- the number of layers.
◆ atomCount()
size_t atomCount |
( |
| ) |
const |
- Returns
- The number of atoms.
◆ clear()
◆ addLayer() [1/2]
increase the maximum layer allowed .
◆ addLayer() [2/2]
void addLayer |
( |
size_t |
layer | ) |
|
insert a layer at layer
, equal or bigger previous layers will be shifted.
◆ setActiveLayer()
void setActiveLayer |
( |
size_t |
layer | ) |
|
◆ swapLayer()
void swapLayer |
( |
Index |
a, |
|
|
Index |
b |
|
) |
| |
swap the layer ID from a
and b
.
The documentation for this class was generated from the following file: