Avogadro::QtGui::RWLayerManager#

class RWLayerManager : protected LayerManager#

The RWLayerManager do and undo for layer actions.

Subclassed by LayerModel

Public 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#
Returns:

if layer is visible

Protected Functions

bool locked(size_t layer) const#
Returns:

if layer is locked

void flipVisible(size_t layer)#

flip the visible value in layer

void flipLocked(size_t layer)#

flip the locked value in layer

void addMolecule(const Core::Molecule *mol)#

set mol as active molecule and add it if not exist

Core::Array<std::pair<size_t, std::string>> activeMoleculeNames() const#
Returns:

a sorted array by layer ID, containing the ID and the key name