11 #ifndef MORPHOGRAPHX_H 12 #define MORPHOGRAPHX_H 13 typedef unsigned short ushort;
14 typedef unsigned int uint;
20 #include <CutSurf.hpp> 22 #include <TaskEditDlg.hpp> 31 #include <ui_EditParms.h> 32 #include <ui_ProcessDocs.h> 61 static QLabel* ActiveStack;
68 Ui_EditParmsDialog* editParmsDialog;
84 bool currentProcessInTasks;
86 mgx::process::SetupProcess* currentSetup;
89 #ifdef WATCH_PROCESS_FOLDERS 91 QTimer* processReloadTimer;
105 const QString& projectFile()
const;
106 void setProjectFile(
const QString& f);
109 void setDebug(
bool debug);
113 bool useGUI =
true,
bool saveDefaults =
true);
115 int activeStack()
const;
116 int activeMesh()
const;
117 QString getStackName(
bool main,
int num);
119 void setLoadFile(
const QString& f)
123 bool runningProcess()
const 125 return currentProcess != 0;
132 void processFinished();
133 void processFailed();
137 void connectControlsIn();
138 void connectControlsOut();
141 void clearMeshSelect();
143 void processCommandGetParmValues(
const QString& name,
int type);
144 void processCommandSetParmValues(
const QString& name,
int type);
145 void readProcessParms();
146 void createSetupProcess();
150 void forceStack1SurfHeat();
151 void forceStack2SurfHeat();
152 void modified(
bool state =
true);
153 void storeParameters();
155 void ImportMesh(
int stack);
156 void ExportMesh(
int stack);
157 void ResetMesh(
int mesh);
158 void LoadMesh(
int mesh);
159 void SaveMesh(
int mesh);
160 void ImportStack(
int stack,
bool main);
161 void ImportStackSeries(
int stack,
bool main);
162 void OpenStack(
int stack,
bool main);
163 void SaveStack(
int stack,
bool main);
164 void ExportStack(
int stack,
bool main);
165 void updateCurrentStack();
168 void FileOpen(
const QString& filename);
170 void AutoOpen(
const QString& filename =
QString(),
int stack = 0,
bool main =
true);
171 void resetDefaultParameters();
174 void DebugDialogSlot();
176 void SetCutSurfControl();
177 void ResetClipControl(
float sceneRadius);
178 void changeSelectLabel(
int lab);
179 void UpdateSliderScaleSlot();
182 void stack1UnloadedSlot();
183 void stack2UnloadedSlot();
184 void changeStack1SizeSlot(
const Point3u& size,
const Point3f& step,
const Point3f& origin);
185 void changeStack2SizeSlot(
const Point3u& size,
const Point3f& step,
const Point3f& origin);
187 void RotateSlot(
bool checked);
193 void SeedStackSlot(
bool val);
194 void PixelEditRadiusSlot(
int val) {
195 mgx::ImgData::PixelEditRadius = val;
197 void FillWorkDataSlot(
bool val) {
198 mgx::ImgData::FillWorkData = val;
201 void LoadView(
const QString& filename);
202 void SaveView(
const QString& filename);
204 void FileEditPathsSlot();
207 void FileSaveAsSlot();
210 void GlobalContrastSlot();
211 void GlobalBrightnessSlot();
213 void Stack1ImportSlot();
214 void Stack1ImportSeriesSlot();
215 void Stack1SaveSlot();
216 void Stack1OpenSlot();
217 void Stack1ExportSlot();
218 void Stack1ResetSlot();
219 void Stack2ImportSlot();
220 void Stack2ImportSeriesSlot();
221 void Stack2SaveSlot();
222 void Stack2OpenSlot();
223 void Stack2ExportSlot();
224 void Stack2ResetSlot();
226 void Stack1WorkImportSlot();
227 void Stack1WorkImportSeriesSlot();
228 void Stack1WorkSaveSlot();
229 void Stack1WorkOpenSlot();
230 void Stack1WorkExportSlot();
231 void Stack2WorkImportSlot();
232 void Stack2WorkImportSeriesSlot();
233 void Stack2WorkSaveSlot();
234 void Stack2WorkOpenSlot();
235 void Stack2WorkExportSlot();
237 void Mesh1ImportSlot();
238 void Mesh1ExportSlot();
239 void Mesh1LoadSlot();
240 void Mesh1SaveSlot();
241 void Mesh1ResetSlot();
242 void Mesh2ImportSlot();
243 void Mesh2ExportSlot();
244 void Mesh2LoadSlot();
245 void Mesh2SaveSlot();
246 void Mesh2ResetSlot();
248 void MeshSelectAll();
250 void MeshInvertSelection();
251 void MeshAddCurrentLabel();
252 void MeshAddUnlabeled();
253 void MeshRemoveCurrentLabel();
254 void ChangeCurrentSeed();
256 void UserManualSlot();
258 void QGLViewerHelpSlot();
261 void LabelColorSlot();
262 void LabelColorSlot(
QIcon& icon);
263 void AddNewSeedSlot(
bool on);
264 void AddCurrSeedSlot(
bool on);
265 void PickLabelSlot(
bool on);
266 void GrabSeedSlot(
bool on);
267 void FillLabelSlot(
bool on);
268 void MeshSelectSlot(
bool on);
269 void LabelSelectSlot(
bool on);
270 void ConnectedSelectSlot(
bool on);
271 void PixelEditSlot(
bool on);
272 void PickVolLabelSlot(
bool on);
273 void DeleteVolumeLabelSlot(
bool on);
274 void DeletePickedLabelSlot(
bool on);
275 void FillVolumeLabelSlot(
bool on);
277 void EraseSelectSlot();
278 void FillSelectSlot();
279 void DeleteSelectionSlot();
280 void EditParmsSlot();
281 void ProcessDocsSlot();
282 void ColorPaletteSlot();
283 void LabelsEditSlot(
bool on);
284 void EditParmsSaveAsSlot();
285 void SwapSurfacesSlot();
287 void ProcessCommandGoSlot();
288 void ProcessCommandTabSlot(
int tab);
290 void SaveProcessesParameters();
291 void RecallProcessesParameters();
292 void ReloadProcesses();
293 void ProcessCommandFinished();
305 QTime currentProcessTime;
Definition of a process, without the process factory.
Definition: Process.hpp:1239
Definition: ProcessParms.hpp:29
Definition: MorphoGraphX.hpp:53
Definition: PathEditorDlg.hpp:60
Common definitions and utilities for all geometry algorithms This file is shared by cuda...
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
Definition: ProcessThread.hpp:35
File containing the definition of a Process.
Definition: CutSurf.hpp:31
This is the main process class, the one all process inherit from.
Definition: Process.hpp:258
This namespace contains all the classes needed to define processes.
Definition: ImageData.hpp:47
Definition: LabelEditorDlg.hpp:60
Definition: Library.hpp:18