CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxShowDataTreeNode.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 CXSHOWDATATREENODE_H
12 #define CXSHOWDATATREENODE_H
13 
14 #include "cxTreeNodeImpl.h"
15 #include "cxViewGroupData.h"
16 
17 namespace cx
18 {
19 
20 
21 class TreeNode;
22 typedef boost::weak_ptr<TreeNode> TreeNodeWeakPtr;
23 typedef boost::shared_ptr<TreeNode> TreeNodePtr;
24 
26 {
27  Q_OBJECT
28 public:
30  virtual ~ShowDataTreeNodeBase() {}
31 // virtual QString getUid() const;
32 // virtual QString getName() const;
33 // virtual QString getType() const;
34  virtual TreeNodePtr getParent() const;
35  virtual bool isVisibleNode() const;
36  virtual void activate();
37  virtual QIcon getIcon() const;
38  virtual QVariant getViewGroupVisibility(int index) const;
39  virtual void setViewGroupVisibility(int index, bool value);
40  virtual boost::shared_ptr<QWidget> createPropertiesWidget() const;
41  virtual QVariant getColor() const;
42  virtual QVariant getFont() const;
43 
44 protected:
47 };
48 
50 {
51  Q_OBJECT
52 public:
55  virtual QString getUid() const;
56  virtual QString getName() const;
57  virtual QString getType() const;
58 
59 protected:
61 };
62 
64 {
65  Q_OBJECT
66 public:
69  virtual QString getUid() const;
70  virtual QString getName() const;
71  virtual QString getType() const;
72 
73 protected:
75 };
76 
78 {
79  Q_OBJECT
80 public:
83  virtual QString getUid() const;
84  virtual QString getName() const;
85  virtual QString getType() const;
86 
87 protected:
89 };
90 
91 } // namespace cx
92 
93 #endif // CXSHOWDATATREENODE_H
virtual boost::shared_ptr< QWidget > createPropertiesWidget() const
boost::shared_ptr< TreeNode > TreeNodePtr
virtual DataViewProperties getDefiningDataViewProperties() const =0
virtual QString getUid() const =0
virtual TreeNodePtr getParent() const
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
Definition: cxTreeNode.h:30
virtual QVariant getColor() const
TreeRepositoryPtr repo()
virtual void setViewGroupVisibility(int index, bool value)
virtual QString getType() const =0
virtual QVariant getViewGroupVisibility(int index) const
boost::shared_ptr< class Data > DataPtr
virtual QIcon getIcon() const
ShowDataTreeNodeBase(TreeRepositoryWeakPtr repo, DataPtr data)
boost::weak_ptr< TreeNode > TreeNodeWeakPtr
virtual bool isVisibleNode() const
virtual QVariant getFont() const
virtual QString getName() const =0
Namespace for all CustusX production code.