Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxExportWidget.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #include "cxExportWidget.h"
13 
14 #include <QVBoxLayout>
15 #include <QString>
16 #include <QStringList>
17 #include "cxExportDataTypeWidget.h"
19 #include "cxVisServices.h"
20 #include "cxImage.h"
21 #include "cxMesh.h"
22 #include "cxPointMetric.h"
23 
24 namespace cx
25 {
26 
28  BaseWidget(NULL, "export_data_widget", "Export Data"),
29  mFileManager(filemanager),
30  mVisServices(services)
31 {
32  QVBoxLayout * topLayout = new QVBoxLayout();
33 
34  ExportDataTypeWidget<Image> *exportImageWidget = new ExportDataTypeWidget<Image>(this, filemanager, mVisServices, StringPropertySelectImage::New(services->patient()));
35  ExportDataTypeWidget<Mesh> *exportMeshWidget = new ExportDataTypeWidget<Mesh>(this, filemanager, mVisServices, StringPropertySelectMesh::New(services->patient()));
36  ExportDataTypeWidget<PointMetric> *exportPointMetricWidget = new ExportDataTypeWidget<PointMetric>(this, filemanager, mVisServices, StringPropertySelectPointMetric::New(services->patient()));
37 
38  this->setLayout(topLayout);
39  topLayout->addWidget(exportImageWidget);
40  topLayout->addWidget(exportMeshWidget);
41  topLayout->addWidget(exportPointMetricWidget);
42  topLayout->addStretch();
43 }
44 
45 
46 }
boost::shared_ptr< class FileManagerService > FileManagerServicePtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
ExportWidget(FileManagerServicePtr filemanager, VisServicesPtr services)
static StringPropertySelectPointMetricPtr New(PatientModelServicePtr patientModelService)
static StringPropertySelectMeshPtr New(PatientModelServicePtr patientModelService)
static StringPropertySelectImagePtr New(PatientModelServicePtr patientModelService)
Namespace for all CustusX production code.