AvogadroLibs 1.97.0
Public Types | Signals | Public Member Functions | Protected Attributes | List of all members
ScenePlugin Class Referenceabstract
Inheritance diagram for ScenePlugin:

Public Types

enum  DefaultBehavior {
  Ignore ,
  False ,
  True
}
 

Signals

void drawablesChanged ()
 

Public Member Functions

 ScenePlugin (QObject *parent=nullptr)
 
virtual void process (const QtGui::Molecule &molecule, Rendering::GroupNode &node)
 
virtual void processEditable (const RWMolecule &molecule, Rendering::GroupNode &node)
 
virtual QString name () const =0
 
virtual QString description () const =0
 
virtual bool isEnabled () const
 
virtual bool isActiveLayerEnabled () const
 
virtual void setEnabled (bool enable)
 
virtual QWidget * setupWidget ()
 
virtual DefaultBehavior defaultBehavior () const
 

Protected Attributes

PluginLayerManager m_layerManager
 

Member Enumeration Documentation

◆ DefaultBehavior

Returns if this plugin should be considered in the default behavior, or it should reset to true or false.

Member Function Documentation

◆ process()

virtual void process ( const QtGui::Molecule molecule,
Rendering::GroupNode node 
)
virtual

Process the supplied atom, and add the necessary primitives to the scene.

◆ name()

virtual QString name ( ) const
pure virtual

The name of the scene plugin, will be displayed in the user interface.

◆ description()

virtual QString description ( ) const
pure virtual

A description of the scene plugin, may be displayed in the user interface.

◆ isEnabled()

virtual bool isEnabled ( ) const
virtual

Returns true if the scene plugin has been enabled and is active.

◆ isActiveLayerEnabled()

virtual bool isActiveLayerEnabled ( ) const
virtual

Returns true if the scene plugin has been enabled and is active in the active scene.

◆ setEnabled()

virtual void setEnabled ( bool  enable)
virtual

Set the enabled state of the plugin (default should be false).


The documentation for this class was generated from the following file: