◆ getMoleculeLayer() [1/2]
| Layer & getMoleculeLayer |
( |
| ) |
|
|
static |
- Returns
- active molecule Layer
◆ getMoleculeLayer() [2/2]
◆ getMoleculeInfo() [1/2]
◆ getMoleculeInfo() [2/2]
◆ layerCount()
- Returns
- the layer quantity from activeMolecule
◆ activeMoleculeInfo()
- Returns
- the layer state of the active molecule, or nullptr when there is no active molecule.
◆ findMoleculeInfo()
- Returns
- the layer state of
mol, or nullptr when mol is null.
◆ setActiveMolecule()
| void setActiveMolecule |
( |
const Molecule * | mol | ) |
|
|
staticprotected |
Point the layer GUI and the render plugins at mol.
◆ m_activeInfo
The layer state of the molecule the GUI is acting on, held weakly.
Deliberately not a const Molecule*. Layer state is owned by each Molecule, so nothing here keeps one alive, and a raw pointer would dangle the moment the active molecule was destroyed – reading it would then either fault or silently report whatever object had taken over that address. A weak_ptr simply stops resolving instead.
The documentation for this class was generated from the following file: