Debian Codegraph @

src/Gui/SoQtOffscreenRendererPy.h

raw
1 /***************************************************************************
2 * Copyright (c) 2022 Werner Mayer <wmayer[at]users.sourceforge.net> *
3 * *
4 * This file is part of the FreeCAD CAx development system. *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Library General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU Library General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Library General Public *
17 * License along with this library; see the file COPYING.LIB. If not, *
18 * write to the Free Software Foundation, Inc., 59 Temple Place, *
19 * Suite 330, Boston, MA 02111-1307, USA *
20 * *
21 ***************************************************************************/
22
23 #ifndef GUI_SOQTOFFSCREENRENDERERPY_H
24 #define GUI_SOQTOFFSCREENRENDERERPY_H
25
26 #include <CXX/Extensions.hxx>
27
28 #include "SoFCOffscreenRenderer.h"
29
30
31 namespace Gui
32 {
33
34 class SoQtOffscreenRendererPy: public Py::PythonClass<SoQtOffscreenRendererPy>
35 {
36 public:
37 static void init_type();
38
39 SoQtOffscreenRendererPy(Py::PythonClassInstance* self, Py::Tuple& args, Py::Dict& kwds);
40 ~SoQtOffscreenRendererPy() override;
41
42 Py::Object repr() override;
43
44 Py::Object setViewportRegion(const Py::Tuple&);
45 Py::Object getViewportRegion();
46
47 Py::Object setBackgroundColor(const Py::Tuple&);
48 Py::Object getBackgroundColor();
49
50 Py::Object setNumPasses(const Py::Tuple&);
51 Py::Object getNumPasses();
52
53 Py::Object setInternalTextureFormat(const Py::Tuple&);
54 Py::Object getInternalTextureFormat();
55
56 Py::Object render(const Py::Tuple&);
57
58 Py::Object writeToImage(const Py::Tuple&);
59 Py::Object getWriteImageFiletypeInfo();
60
61 private:
62 SoQtOffscreenRenderer renderer;
63 };
64
65 } // namespace Gui
66
67 #endif // GUI_SOQTOFFSCREENRENDERERPY_H