Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxFrameTreeWidget.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 
12 #ifndef CXFRAMETREEWIDGET_H_
13 #define CXFRAMETREEWIDGET_H_
14 
15 #include "cxResourceWidgetsExport.h"
16 
17 #include "cxBaseWidget.h"
18 
19 #include <map>
20 #include <string>
21 #include <QWidget>
22 #include "cxForwardDeclarations.h"
23 class QTreeWidget;
24 class QTreeWidgetItem;
25 class QDomNode;
26 
27 namespace cx
28 {
29 
39 class cxResourceWidgets_EXPORT FrameTreeWidget : public BaseWidget
40 {
41  Q_OBJECT
42 public:
43  FrameTreeWidget(PatientModelServicePtr patientService, QWidget* parent);
45 
46 protected:
47  virtual void prePaintEvent();
48 private:
49  PatientModelServicePtr mPatientService;
50  QTreeWidget* mTreeWidget;
51  void fill(QTreeWidgetItem* parent, QDomNode node);
52  std::map<QString, DataPtr> mConnectedData;
53 
54 private slots:
55  void dataLoadedSlot();
56  void rebuild(); // TODO this must also listen to all changed() in all data
57 };
58 
59 
60 }
61 
62 #endif /* CXFRAMETREEWIDGET_H_ */
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Widget for displaying the FrameForest object.
void fill(Eigen::Affine3d *self, vtkMatrix4x4Ptr m)
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
Namespace for all CustusX production code.