~jan.greis/maus/1811

« back to all changes in this revision

Viewing changes to src/py_cpp/PyMaterial.hh

Merging start

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
2
 
 *
3
 
 * MAUS is free software: you can redistribute it and/or modify
4
 
 * it under the terms of the GNU General Public License as published by
5
 
 * the Free Software Foundation, either version 3 of the License, or
6
 
 * (at your option) any later version.
7
 
 *
8
 
 * MAUS is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 */
17
 
 
18
 
#ifndef _SRC_PY_CPP_PYMATERIALS_HH_
19
 
#define _SRC_PY_CPP_PYMATERIALS_HH_
20
 
 
21
 
// These ifdefs are required to avoid cpp compiler warning
22
 
#ifdef _POSIX_C_SOURCE
23
 
#undef _POSIX_C_SOURCE
24
 
#endif
25
 
 
26
 
#ifdef _XOPEN_SOURCE
27
 
#undef _XOPEN_SOURCE
28
 
#endif
29
 
 
30
 
#include "Python.h"
31
 
 
32
 
namespace MAUS {
33
 
 
34
 
namespace PyField {
35
 
 
36
 
/* @brief GetMaterialInfo at a point in space
37
 
 *
38
 
 * Returns a dict of info for the material at the specified position
39
 
 */
40
 
PyObject* GetMaterialData(PyObject *dummy, PyObject *args);
41
 
 
42
 
/* @brief Set the current position of the navigator
43
 
 */
44
 
PyObject* SetPosition(PyObject *dummy, PyObject *args);
45
 
 
46
 
/* @brief Get the current position of the navigator
47
 
 */
48
 
PyObject* GetPosition(PyObject *dummy, PyObject *args);
49
 
 
50
 
/* @brief Move the current position of the navigator
51
 
 */
52
 
PyObject* Step(PyObject *dummy, PyObject* args);
53
 
 
54
 
}  // namespace PyField
55
 
}  // namespace MAUS
56
 
 
57
 
#endif  // _SRC_PY_CPP_PYFIELDS_HH_