The PluginLayerManager class is a set of common layer dependent operators useful for Layer dependent QtPlugins.
More...
#include <pluginlayermanager.h>
<avogadro/qtgui/pluginlayermanager.h>
◆ activeLayerLocked()
| bool activeLayerLocked |
( |
| ) |
const |
- Returns
- if the active layer in the molecule is locked.
◆ load()
check if there's existent data in the key and reload it in the custom class.
◆ isEnabled()
- Returns
- if the plugin is enabled in any layer
◆ isActiveLayerEnabled()
| bool isActiveLayerEnabled |
( |
| ) |
const |
- Returns
- if the plugin is enabled in the active layer
◆ setEnabled()
| void setEnabled |
( |
bool |
enable | ) |
|
◆ atomEnabled() [1/2]
| bool atomEnabled |
( |
Index |
atom | ) |
const |
- Returns
atom layer enabled globally and in plugin
◆ atomEnabled() [2/2]
| bool atomEnabled |
( |
size_t |
layer, |
|
|
Index |
atom |
|
) |
| const |
- Returns
atom layer enabled globally, in plugin and in layer
◆ bondEnabled()
| bool bondEnabled |
( |
Index |
atom1, |
|
|
Index |
atom2 |
|
) |
| const |
- Returns
- if
atom1 or atom2 is enabled
◆ getLayerID()
| size_t getLayerID |
( |
Index |
atom | ) |
const |
- Returns
- layer id from
atom
◆ layerCount()
| size_t layerCount |
( |
| ) |
const |
◆ getSetting()
template<typename T >
| T * getSetting |
( |
size_t |
layer = MaxIndex | ) |
|
- Returns
- custom data T derived from LayerData. if
layer is equal to MaxIndex returns activeLayer
The documentation for this class was generated from the following file: