NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxTopTreeNode.cpp
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 #include "cxTopTreeNode.h"
12 
13 #include <QIcon>
14 
15 namespace cx
16 {
17 
18 
20  TreeNodeImpl(repo)
21 {
22 
23 }
24 
25 QString TopTreeNode::getUid() const
26 {
27  return "node::invisible_top";
28 }
29 
30 QString TopTreeNode::getName() const
31 {
32  return "";
33 }
34 
35 QString TopTreeNode::getType() const
36 {
37  return "top";
38 }
39 
41 {
42  return TreeNodePtr();
43 }
44 
46 {
47  return true;
48 }
49 
50 QIcon TopTreeNode::getIcon() const
51 {
52  return QIcon();
53 }
54 
55 
56 } // namespace cx
57 
cx::TreeNodeImpl
Definition: cxTreeNodeImpl.h:26
cx::TopTreeNode::getParent
virtual TreeNodePtr getParent() const
Definition: cxTopTreeNode.cpp:40
cx::TopTreeNode::isVisibleNode
virtual bool isVisibleNode() const
Definition: cxTopTreeNode.cpp:45
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxTopTreeNode.h
cx::TopTreeNode::getName
virtual QString getName() const
Definition: cxTopTreeNode.cpp:30
cx::TreeNodePtr
boost::shared_ptr< TreeNode > TreeNodePtr
Definition: cxDataTreeNode.h:22
cx::TopTreeNode::getIcon
virtual QIcon getIcon() const
Definition: cxTopTreeNode.cpp:50
cx::TopTreeNode::TopTreeNode
TopTreeNode(TreeRepositoryWeakPtr repo)
Definition: cxTopTreeNode.cpp:19
cx::TreeRepositoryWeakPtr
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
Definition: cxTreeNode.h:30
cx::TopTreeNode::getUid
virtual QString getUid() const
Definition: cxTopTreeNode.cpp:25
cx::TopTreeNode::getType
virtual QString getType() const
Definition: cxTopTreeNode.cpp:35