/****************************************************************************** This source file is part of the Avogadro project. This source code is released under the 3-Clause BSD License, (see "LICENSE"). ******************************************************************************/ #ifndef AVOGADRO_QTPLUGINS_NONCOVALENT_H #define AVOGADRO_QTPLUGINS_NONCOVALENT_H #include #include namespace Avogadro { namespace QtPlugins { /** * @brief Predict some non-covalent interactions, like hydrogen bonds. * @author Aritz Erkiaga */ class NonCovalent : public QtGui::ScenePlugin { Q_OBJECT public: explicit NonCovalent(QObject* parent = nullptr); ~NonCovalent() override; void process(const QtGui::Molecule& molecule, Rendering::GroupNode& node) override; QString name() const override { return tr("Non-Covalent"); } QString description() const override { return tr("Render a few non-covalent interactions."); } QWidget* setupWidget() override; bool hasSetupWidget() const override { return true; } DefaultBehavior defaultBehavior() const override { return DefaultBehavior::False; } public slots: void setAngleTolerance(float angleTolerance, Index index); void setMaximumDistance(float maximumDistance, Index index); void setLineWidth(float width, Index index); private: const std::string m_name = "Non-Covalent"; std::array m_angleTolerancesDegrees; std::array m_maximumDistances; std::array m_lineColors; std::array m_lineWidths; }; } // end namespace QtPlugins } // end namespace Avogadro #endif // AVOGADRO_QTPLUGINS_NONCOVALENT_H