Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qSlicerLoadableModule.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Kitware Inc.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Jean-Christophe Fillion-Robin, Kitware Inc.
17 and was partially funded by NIH grant 3P41RR013218-12S1
18
19==============================================================================*/
20
21#ifndef __qSlicerLoadableModule_h
22#define __qSlicerLoadableModule_h
23
24// CTK includes
25#include <ctkPimpl.h>
26
27// Slicer includes
29
30#include "qSlicerBaseQTGUIExport.h"
31
32class qSlicerLoadableModulePrivate;
34
35class Q_SLICER_BASE_QTGUI_EXPORT qSlicerLoadableModule : public qSlicerAbstractModule
36{
37 Q_OBJECT
38
39public:
40
43 qSlicerLoadableModule(QObject *parent=nullptr);
45
47 QString helpText()const override;
48 QString acknowledgementText()const override;
49
68 const QString& intDir,
69 const QString& modulePath,
70 bool isEmbedded=false);
71
76 const QString& moduleName);
77
81 const QString& moduleName);
82
83protected:
84 void setup() override;
85
86protected:
87 QScopedPointer<qSlicerLoadableModulePrivate> d_ptr;
88
89private:
90 Q_DECLARE_PRIVATE(qSlicerLoadableModule);
91 Q_DISABLE_COPY(qSlicerLoadableModule);
92};
93
95 "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
96
97#endif
qSlicerAbstractModule(QObject *parent=nullptr)
void setup() override
All initialization code should be done in the setup.
~qSlicerLoadableModule() override
qSlicerLoadableModule(QObject *parent=nullptr)
QString helpText() const override
Return help/acknowledgement text.
qSlicerAbstractModule Superclass
QString acknowledgementText() const override
QScopedPointer< qSlicerLoadableModulePrivate > d_ptr
qSlicerLoadableModule Self
static bool addModuleToSlicerModules(qSlicerCorePythonManager *pythonManager, qSlicerAbstractModule *module, const QString &moduleName)
static bool importModulePythonExtensions(qSlicerCorePythonManager *pythonManager, const QString &intDir, const QString &modulePath, bool isEmbedded=false)
Import python extensions associated with modulePath.
static bool addModuleNameToSlicerModuleNames(qSlicerCorePythonManager *pythonManager, const QString &moduleName)
Q_DECLARE_INTERFACE(qSlicerLoadableModule, "org.slicer.modules.loadable.qSlicerLoadableModule/1.0")