Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxMeshTextureWidget.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 =========================================================================*/#ifndef MESHTEXTUREWIDGET_H
11 #define MESHTEXTUREWIDGET_H
12 
13 #include "cxGuiExport.h"
14 #include "cxBaseWidget.h"
15 #include "cxOptionsWidget.h"
16 
17 
18 namespace cx
19 {
20 
21 class cxGui_EXPORT MeshTextureWidget : public BaseWidget
22 {
23  Q_OBJECT
24 
25 public:
27  PatientModelServicePtr patientModelService, ViewServicePtr viewService,
28  QWidget *parent);
29 
30  virtual ~MeshTextureWidget();
31  SelectDataStringPropertyBasePtr getSelector() { return mMeshSelector; }
32 
33 protected slots:
34  void setupUI();
35  virtual void prePaintEvent();
36  void meshSelectedSlot();
37 
38 private:
40  MeshPtr mMesh;
41  SelectDataStringPropertyBasePtr mMeshSelector;
42  OptionsWidget* mOptionsWidget;
43  PatientModelServicePtr mPatientModelService;
44  ViewServicePtr mViewService;
45  void clearUI();
46 };
47 
48 }//end namespace cx
49 
50 #endif // MESHTEXTUREWIDGET_H
SelectDataStringPropertyBasePtr getSelector()
boost::shared_ptr< class ViewService > ViewServicePtr
boost::shared_ptr< class SelectDataStringPropertyBase > SelectDataStringPropertyBasePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
boost::shared_ptr< class Mesh > MeshPtr
Namespace for all CustusX production code.