Debian Codegraph @

avogadro/qtplugins/symmetry/symmetryutil.h

raw symbols SCIP
1 /******************************************************************************
2
3 This source file is part of the Avogadro project.
4
5 Copyright 2015 Marcus Johansson <[email protected]>
6
7 This source code is released under the New BSD License, (the "License").
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14
15 ******************************************************************************/
16
17 #ifndef AVOGADRO_QTPLUGINS_SYMMETRYUTIL_H
18 #define AVOGADRO_QTPLUGINS_SYMMETRYUTIL_H
19
20 #include <QtCore/QObject>
21
22 namespace msym {
23 extern "C"
24 {
25 #include <libmsym/msym.h>
26 }
27 } // namespace msym
28
29 #ifndef IDENTITY
30 #define IDENTITY \
31 msym::_msym_symmetry_operation::MSYM_SYMMETRY_OPERATION_TYPE_IDENTITY
32 #endif
33 #ifndef REFLECTION
34 #define REFLECTION \
35 msym::_msym_symmetry_operation::MSYM_SYMMETRY_OPERATION_TYPE_REFLECTION
36 #endif
37 #ifndef INVERSION
38 #define INVERSION \
39 msym::_msym_symmetry_operation::MSYM_SYMMETRY_OPERATION_TYPE_INVERSION
40 #endif
41 #ifndef PROPER_ROTATION
42 #define PROPER_ROTATION \
43 msym::_msym_symmetry_operation::MSYM_SYMMETRY_OPERATION_TYPE_PROPER_ROTATION
44 #endif
45 #ifndef IMPROPER_ROTATION
46 #define IMPROPER_ROTATION \
47 msym::_msym_symmetry_operation::MSYM_SYMMETRY_OPERATION_TYPE_IMPROPER_ROTATION
48 #endif
49
50 namespace Avogadro {
51 namespace QtPlugins {
52
53 namespace SymmetryUtil {
54 QString pointGroupSymbol(const char* point_group);
55 QString operationSymbol(const msym::msym_symmetry_operation_t* operation);
56 } // namespace SymmetryUtil
57 } // namespace QtPlugins
58 } // namespace Avogadro
59 #endif // AVOGADRO_QTPLUGINS_SYMMETRYUTIL_H