|
AvogadroLibs 2.1.0-20261111
|
Static Public Member Functions | |
| static Layer & | getMoleculeLayer () |
| static Layer & | getMoleculeLayer (const Molecule *mol) |
| static std::shared_ptr< MoleculeInfo > | getMoleculeInfo () |
| static std::shared_ptr< MoleculeInfo > | getMoleculeInfo (const Molecule *mol) |
| static size_t | layerCount () |
Static Protected Member Functions | |
| static std::shared_ptr< MoleculeInfo > | activeMoleculeInfo () |
| static std::shared_ptr< MoleculeInfo > | findMoleculeInfo (const Molecule *mol) |
| static void | setActiveMolecule (const Molecule *mol) |
Static Protected Attributes | |
| static std::weak_ptr< MoleculeInfo > | m_activeInfo |
mol and creates MoleculeInfo if not exists
|
static |
|
static |
mol
|
static |
|
staticprotected |
|
staticprotected |
mol, or nullptr when mol is null.
|
staticprotected |
Point the layer GUI and the render plugins at mol.
|
staticprotected |
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.