NorMIT-nav  22.09
An IGT application
cxMeshPropertiesWidget.h
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 #ifndef CXMESHPROPERTIESWIDGET_H
12 #define CXMESHPROPERTIESWIDGET_H
13 
14 #include "cxGuiExport.h"
15 
16 #include <vector>
17 //#include <QtWidgets>
18 
19 #include "cxMesh.h"
20 #include "cxDataInterface.h"
21 #include "cxBaseWidget.h"
22 
23 
24 namespace cx
25 {
26 typedef boost::shared_ptr<class SelectDataStringPropertyBase> SelectDataStringPropertyBasePtr;
27 class ReplacableContentWidget;
28 
38 class cxGui_EXPORT MeshPropertiesWidget : public BaseWidget
39 {
40  Q_OBJECT
41 
42 public:
44  PatientModelServicePtr patientModelService, ViewServicePtr viewService,
45  QWidget* parent);
46  virtual ~MeshPropertiesWidget();
47 
48  SelectDataStringPropertyBasePtr getSelector() { return mMeshSelector; }
49 
50 protected:
51  void setupUI();
52  virtual void prePaintEvent();
53 
54 private:
55  void updateFrontend();
56 
57 protected slots:
58  void meshSelectedSlot();
59 
60 private:
61  MeshPtr mMesh;
62  SelectDataStringPropertyBasePtr mMeshSelector;
63 
64  ReplacableContentWidget* mPropertiesWidget;
65 
66  PatientModelServicePtr mPatientModelService;
67  ViewServicePtr mViewService;
68 
70  void clearUI();
71 };
72 
73 }//end namespace cx
74 
75 #endif // CXMESHPROPERTIESWIDGET_H
cxBaseWidget.h
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::BaseWidget
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
cx::ReplacableContentWidget
Definition: cxReplacableContentWidget.h:26
cx::MeshPropertiesWidget::getSelector
SelectDataStringPropertyBasePtr getSelector()
Definition: cxMeshPropertiesWidget.h:48
cxDataInterface.h
cx::MeshPtr
boost::shared_ptr< class Mesh > MeshPtr
Definition: cxForwardDeclarations.h:48
cx::PatientModelServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Definition: cxLogicManager.h:25
cx::MeshPropertiesWidget
Widget for displaying glyps information about meshes.
Definition: cxMeshPropertiesWidget.h:38
cx::ViewServicePtr
boost::shared_ptr< class ViewService > ViewServicePtr
Definition: cxLogicManager.h:28
cxMesh.h
cx::SelectDataStringPropertyBasePtr
boost::shared_ptr< class SelectDataStringPropertyBase > SelectDataStringPropertyBasePtr
Definition: cxMeshGlyphsWidget.h:26