|
AvogadroLibs 2.1.0-20261111
|
The RWLayerManager do and undo for layer actions.
#include <avogadro/qtgui/rwlayermanager.h>
Public Member Functions | |
| void | removeLayer (size_t layer, RWMolecule *rwmolecule) |
| void | addLayer (RWMolecule *rwmolecule) |
| void | setActiveLayer (size_t layer, RWMolecule *rwmolecule) |
| bool | visible (size_t layer) const |
Protected Member Functions | |
| bool | locked (size_t layer) const |
| void | flipVisible (size_t layer) |
| void | flipLocked (size_t layer) |
| void | addMolecule (const Core::Molecule *mol) |
| Core::Array< std::pair< size_t, std::string > > | activeMoleculeNames () const |
Additional Inherited Members | |
| Static Protected Member Functions inherited from LayerManager | |
| static std::shared_ptr< MoleculeInfo > | activeMoleculeInfo () |
| static std::shared_ptr< MoleculeInfo > | findMoleculeInfo (const Molecule *mol) |
| static void | setActiveMolecule (const Molecule *mol) |
| 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 Attributes inherited from LayerManager | |
| static std::weak_ptr< MoleculeInfo > | m_activeInfo |
| void addLayer | ( | RWMolecule * | rwmolecule | ) |
Add a layer to rwmolecule's molecule, as one undoable step on its undo stack. If that molecule is not the active one it is made active first.
| bool visible | ( | size_t | layer | ) | const |
layer is visible
|
protected |
layer is locked
|
protected |
flip the visible value in layer
|
protected |
flip the locked value in layer
|
protected |
set mol as active molecule and add it if not exist
|
protected |