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:
atomlayer enabled globally and in plugin
-
bool atomEnabled(size_t layer, Index atom) const#
- Returns:
atomlayer enabled globally, in plugin and inlayer
-
bool bondEnabled(Index atom1, Index atom2) const#
- Returns:
if
atom1oratom2is enabled
-
size_t getLayerID(Index atom) const#
- Returns:
layer id from
atom
-
size_t layerCount() const#
- Returns:
layer count
-
PluginLayerManager(const std::string &name = "undef")#