NorMIT-nav  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
cx::ShowDataTreeNodeBase::getViewGroupVisibility
virtual QVariant getViewGroupVisibility(int index) const
Definition: cxShowDataTreeNode.cpp:73
cx::ShowSlice2DDataTreeNode::getDefiningDataViewProperties
virtual DataViewProperties getDefiningDataViewProperties() const
Definition: cxShowDataTreeNode.cpp:148
cx::TreeNodeImpl
Definition: cxTreeNodeImpl.h:26
cx::ShowSlice3DDataTreeNode
Definition: cxShowDataTreeNode.h:77
cx::ShowVolumeDataTreeNode::getType
virtual QString getType() const
Definition: cxShowDataTreeNode.cpp:119
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::ShowDataTreeNodeBase::mData
DataPtr mData
Definition: cxShowDataTreeNode.h:46
cx::ShowDataTreeNodeBase::~ShowDataTreeNodeBase
virtual ~ShowDataTreeNodeBase()
Definition: cxShowDataTreeNode.h:30
cx::ShowVolumeDataTreeNode::ShowVolumeDataTreeNode
ShowVolumeDataTreeNode(TreeRepositoryWeakPtr repo, DataPtr data)
Definition: cxShowDataTreeNode.cpp:107
cx::ShowDataTreeNodeBase::setViewGroupVisibility
virtual void setViewGroupVisibility(int index, bool value)
Definition: cxShowDataTreeNode.cpp:85
cxTreeNodeImpl.h
cx::ShowVolumeDataTreeNode::getDefiningDataViewProperties
virtual DataViewProperties getDefiningDataViewProperties() const
Definition: cxShowDataTreeNode.cpp:123
cx::ShowDataTreeNodeBase::activate
virtual void activate()
Definition: cxShowDataTreeNode.cpp:52
cx::ShowDataTreeNodeBase::getParent
virtual TreeNodePtr getParent() const
Definition: cxShowDataTreeNode.cpp:47
cx::ShowSlice2DDataTreeNode::getUid
virtual QString getUid() const
Definition: cxShowDataTreeNode.cpp:136
cx::ShowSlice3DDataTreeNode::getDefiningDataViewProperties
virtual DataViewProperties getDefiningDataViewProperties() const
Definition: cxShowDataTreeNode.cpp:173
cxViewGroupData.h
cx::ShowSlice3DDataTreeNode::getName
virtual QString getName() const
Definition: cxShowDataTreeNode.cpp:165
cx::ShowSlice2DDataTreeNode::getType
virtual QString getType() const
Definition: cxShowDataTreeNode.cpp:144
cx::ShowSlice2DDataTreeNode::getName
virtual QString getName() const
Definition: cxShowDataTreeNode.cpp:140
cx::ShowDataTreeNodeBase::isVisibleNode
virtual bool isVisibleNode() const
Definition: cxShowDataTreeNode.cpp:40
cx::ShowDataTreeNodeBase::getColor
virtual QVariant getColor() const
Definition: cxShowDataTreeNode.cpp:62
cx::ShowSlice3DDataTreeNode::~ShowSlice3DDataTreeNode
virtual ~ShowSlice3DDataTreeNode()
Definition: cxShowDataTreeNode.h:82
cx::ShowSlice3DDataTreeNode::getUid
virtual QString getUid() const
Definition: cxShowDataTreeNode.cpp:161
cx::ShowDataTreeNodeBase::getFont
virtual QVariant getFont() const
Definition: cxShowDataTreeNode.cpp:68
cx::ShowSlice3DDataTreeNode::ShowSlice3DDataTreeNode
ShowSlice3DDataTreeNode(TreeRepositoryWeakPtr repo, DataPtr data)
Definition: cxShowDataTreeNode.cpp:157
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::DataViewProperties
Definition: cxViewGroupData.h:79
cx::ShowSlice2DDataTreeNode::~ShowSlice2DDataTreeNode
virtual ~ShowSlice2DDataTreeNode()
Definition: cxShowDataTreeNode.h:68
cx::ShowDataTreeNodeBase::createPropertiesWidget
virtual boost::shared_ptr< QWidget > createPropertiesWidget() const
Definition: cxShowDataTreeNode.cpp:98
cx::TreeNodeWeakPtr
boost::weak_ptr< TreeNode > TreeNodeWeakPtr
Definition: cxDataTreeNode.h:20
cx::TreeNodePtr
boost::shared_ptr< TreeNode > TreeNodePtr
Definition: cxDataTreeNode.h:22
cx::TreeNodeImpl::repo
TreeRepositoryPtr repo()
Definition: cxTreeNodeImpl.cpp:102
cx::ShowVolumeDataTreeNode::getName
virtual QString getName() const
Definition: cxShowDataTreeNode.cpp:115
cx::ShowSlice2DDataTreeNode::ShowSlice2DDataTreeNode
ShowSlice2DDataTreeNode(TreeRepositoryWeakPtr repo, DataPtr data)
Definition: cxShowDataTreeNode.cpp:132
cx::ShowVolumeDataTreeNode
Definition: cxShowDataTreeNode.h:49
cx::ShowDataTreeNodeBase
Definition: cxShowDataTreeNode.h:25
cx::ShowSlice2DDataTreeNode
Definition: cxShowDataTreeNode.h:63
cx::ShowDataTreeNodeBase::getIcon
virtual QIcon getIcon() const
Definition: cxShowDataTreeNode.cpp:57
cx::ShowSlice3DDataTreeNode::getType
virtual QString getType() const
Definition: cxShowDataTreeNode.cpp:169
cx::TreeRepositoryWeakPtr
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
Definition: cxTreeNode.h:30
cx::ShowDataTreeNodeBase::getDefiningDataViewProperties
virtual DataViewProperties getDefiningDataViewProperties() const =0
cx::ShowVolumeDataTreeNode::getUid
virtual QString getUid() const
Definition: cxShowDataTreeNode.cpp:111
cx::ShowDataTreeNodeBase::ShowDataTreeNodeBase
ShowDataTreeNodeBase(TreeRepositoryWeakPtr repo, DataPtr data)
Definition: cxShowDataTreeNode.cpp:35
cx::ShowVolumeDataTreeNode::~ShowVolumeDataTreeNode
virtual ~ShowVolumeDataTreeNode()
Definition: cxShowDataTreeNode.h:54