Avogadro::Core::LayerManager#

class LayerManager#

Subclassed by PluginLayerManager, RWLayerManager

Public Static Functions

static Layer &getMoleculeLayer()#
Returns:

active molecule Layer

static Layer &getMoleculeLayer(const Molecule *mol)#
Returns:

Layer from mol and creates MoleculeInfo if not exists

static Layer &getMoleculeLayer(const Molecule *original, const Molecule *copy)#
Returns:

Layer from original and links original MoleculeInfo to copy

static std::shared_ptr<MoleculeInfo> getMoleculeInfo()#
Returns:

the MoleculeInfo from active molecule

static std::shared_ptr<MoleculeInfo> getMoleculeInfo(const Molecule *mol)#
Returns:

the MoleculeInfo from mol

static void deleteMolecule(const Molecule *mol)#

remove all data related to mol

static size_t layerCount()#
Returns:

the layer quantity from activeMolecule

Protected Static Attributes

static const Molecule *m_activeMolecule#
static std::map<const Molecule*, std::shared_ptr<MoleculeInfo>> m_molToInfo#