Computer Assisted Medical Intervention Tool Kit version 6.0
 
Loading...
Searching...
No Matches
PythonHotPlugAction.h
Go to the documentation of this file.
1/*****************************************************************************
2 * $CAMITK_LICENCE_BEGIN$
3 *
4 * CamiTK - Computer Assisted Medical Intervention ToolKit
5 * (c) 2001-2025 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
6 *
7 * Visit http://camitk.imag.fr for more information
8 *
9 * This file is part of CamiTK.
10 *
11 * CamiTK is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * CamiTK is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22 *
23 * $CAMITK_LICENCE_END$
24 ****************************************************************************/
25
26#ifdef PYTHON_BINDING
27
28#ifndef __PYTHON_HOTPLUG_ACTION__
29#define __PYTHON_HOTPLUG_ACTION__
30
31#include "HotPlugAction.h"
32
33#include <QDir>
34
35namespace camitk {
36
37class PythonHotPlugActionExtension;
38
43class CAMITK_API PythonHotPlugAction : public HotPlugAction {
44 Q_OBJECT
45
46public:
49 PythonHotPlugAction(PythonHotPlugActionExtension* actionExtension, const VariantDataModel& data);
50
52 virtual ~PythonHotPlugAction() = default;
53
56 virtual bool init() override;
57
59 virtual QWidget* getWidget() override;
60
62 QString getPythonName();
63
64public slots:
70 virtual Action::ApplyStatus apply() override;
71
72protected:
74 virtual void parameterChangedEvent(QString parameterName) override;
75
76private:
79 QString pythonName;
80
82 PythonHotPlugActionExtension* pythonExtension;
83
86 bool noGui;
87};
88
89} // namespace camitk
90
91#endif // __PYTHON_HOTPLUG_ACTION__
92#endif // PYTHON_BINDING
93
#define CAMITK_API
Definition CamiTKAPI.h:66
VariantDataModel encapsulates QVariant and can be used as a model for any type of QVariant supported ...
Definition VariantDataModel.h:124
init(camitk.Action self)
Definition brownian_movement.py:45
Definition Action.cpp:40