Debian Codegraph @

include/core/data/symmetry/MoleculeSymmetryFacade.h

raw symbols SCIP
1 // SPDX-License-Identifier: LGPL-3.0-or-later
2 // Author: Kristian Lytje
3
4 #pragma once
5
6 #include <utility/observer_ptr.h>
7 #include <data/atoms/AtomFF.h>
8 #include <data/detail/SimpleBody.h>
9 #include <data/DataFwd.h>
10
11 namespace ausaxs::symmetry::detail {
12 class MoleculeSymmetryFacade {
13 public:
14 MoleculeSymmetryFacade(observer_ptr<const data::Molecule> molecule) : molecule(molecule) {}
15
16 /**
17 * @brief Apply all symmetries to the molecule and get all atoms in the resulting explicit structure.
18 */
19 data::detail::SimpleBody explicit_structure() const;
20
21 /**
22 * @brief Check if the molecule has any symmetries defined.
23 */
24 bool has_symmetries() const;
25
26 /**
27 * @brief Save the explicit structure to a file.
28 */
29 void save(const io::File& path) const;
30
31 private:
32 observer_ptr<const data::Molecule> molecule;
33 };
34 }