25 #ifndef LABELLINGMAINWIDGET_HH 26 #define LABELLINGMAINWIDGET_HH 32 #include <QtGui/QMainWindow> 33 #include <QtCore/QMap> 49 #if defined(Labelling_qt4_EXPORTS) 50 #define LABELLING_QT4_API __declspec(dllexport) 51 #elif defined(Labelling_qt4_USE_DLL) 52 #define LABELLING_QT4_API __declspec(dllimport) 54 #define LABELLING_QT4_API 57 #define LABELLING_QT4_API 70 size_t memoryLimit, std::string
const &fileName =
"",
71 bool forceImport =
false, QWidget* parent = 0);
78 const std::string& fileName()
const;
81 QString
const &name, std::map<std::string,std::string>
const ¶meters);
83 bool closeProjectInteractive();
93 void exportToAnalyzeAndSTL();
95 void createAnnotationChannel();
97 void importChannels();
98 void importCSVMarkers();
99 void exportCSVMarkers();
100 void showChannelControlWidget(
bool show);
101 void showInfoWidget(
bool show);
102 void showOpenGlWidget(
bool show);
103 void showLogWidget(
bool show);
104 void showDebugWidget(
bool show);
105 void setInterpolation(
bool interpolation);
106 void snapToVoxelGrid(
bool snap);
107 void showHelperLines(
bool show);
108 void setPluginFolder();
109 void runPlugin(QAction* action);
113 void setUserInteractionEnabled(
bool enable);
115 void showError(
const QString& message);
117 size_t memoryLimit()
const;
121 void searchPlugins();
123 std::string getOpenFileName();
124 std::string getSaveFileName();
126 void closeEvent(QCloseEvent*);
127 void resizeEvent(QResizeEvent*);
129 std::string _initialFileName;
132 std::string _fileName;
135 QMenu* p_channelMenu;
144 QDockWidget* p_channelControlDockWidget;
145 QDockWidget* p_infoDockWidget;
148 std::streambuf *p_origCoutBuffer;
149 QDockWidget* p_logWidget;
150 QTextEdit* p_logTextEdit;
153 std::streambuf *p_origCerrBuffer;
154 QDockWidget* p_debugWidget;
155 QTextEdit* p_debugTextEdit;
157 QList<QAction*> _plugins;
158 std::list<PluginInterface*> _pluginsRunning;
160 QProgressBar *p_progressBar;
static std::string const __labellingVersionString
void open(blitz::Array< DataT, Dim > const &data, blitz::Array< DataT, Dim > &result, std::vector< blitz::TinyVector< BlitzIndexT, Dim > > const &strel, iRoCS::ProgressReporter *progress=NULL)
Morphological opening.
MarkerType
Marker.hh "liblabelling_qt4/Marker.hh".
#define LABELLING_QT4_API
The abstract plugin interface all plugins must inherit from.