Avogadro::QtGui::PluginLayerManager#

class PluginLayerManager : protected LayerManager#

The PluginLayerManager class is a set of common layer dependent operators useful for Layer dependent QtPlugins.

<avogadro/qtgui/pluginlayermanager.h>

Public Functions

PluginLayerManager(const std::string &name = "undef")#
~PluginLayerManager()#
bool activeLayerLocked() const#
Returns:

if the active layer in the molecule is locked.

bool atomLocked(size_t atom) const#
template<typename T>
inline void load()#

check if there’s existent data in the key and reload it in the custom class.

bool isEnabled() const#
Returns:

if the plugin is enabled in any layer

bool isActiveLayerEnabled() const#
Returns:

if the plugin is enabled in the active layer

void setEnabled(bool enable)#

set active layer enable

bool atomEnabled(Index atom) const#
Returns:

atom layer enabled globally and in plugin

bool atomEnabled(size_t layer, Index atom) const#
Returns:

atom layer enabled globally, in plugin and in layer

bool bondEnabled(Index atom1, Index atom2) const#
Returns:

if atom1 or atom2 is enabled

size_t getLayerID(Index atom) const#
Returns:

layer id from atom

size_t layerCount() const#
Returns:

layer count

template<typename T>
inline T *getSetting(size_t layer = MaxIndex)#
Returns:

custom data T derived from LayerData. if layer is equal to MaxIndex returns activeLayer