Debian Codegraph @

avogadro/qtplugins/force/force.h

raw
1 /******************************************************************************
2 This source file is part of the Avogadro project.
3 This source code is released under the 3-Clause BSD License, (see "LICENSE").
4 ******************************************************************************/
5
6 #ifndef AVOGADRO_QTPLUGINS_FORCE_H
7 #define AVOGADRO_QTPLUGINS_FORCE_H
8
9 #include <avogadro/qtgui/sceneplugin.h>
10
11 namespace Avogadro {
12 namespace QtPlugins {
13
14 /**
15 * @brief Render a molecule in the wireframe style.
16 */
17 class Force : public QtGui::ScenePlugin
18 {
19 Q_OBJECT
20
21 public:
22 explicit Force(QObject* parent = nullptr);
23 ~Force() override;
24
25 void process(const QtGui::Molecule& molecule,
26 Rendering::GroupNode& node) override;
27
28 QString name() const override { return tr("Force"); }
29
30 QString description() const override
31 {
32 return tr(
33 "Render the force field visualizations for the atoms of the molecule.");
34 }
35
36 DefaultBehavior defaultBehavior() const override
37 {
38 return DefaultBehavior::False;
39 }
40
41 private:
42 std::string m_name = "Force";
43 };
44
45 } // end namespace QtPlugins
46 } // end namespace Avogadro
47
48 #endif // AVOGADRO_QTPLUGINS_FORCE_H