NorMIT-nav  22.09
An IGT application
cxTopTreeNode.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 CXTOPTREENODE_H
12 #define CXTOPTREENODE_H
13 
14 #include "cxTreeNodeImpl.h"
15 
16 namespace cx
17 {
18 
19 class TreeNode;
20 typedef boost::weak_ptr<TreeNode> TreeNodeWeakPtr;
21 typedef boost::shared_ptr<TreeNode> TreeNodePtr;
22 
23 class TopTreeNode : public TreeNodeImpl
24 {
25  Q_OBJECT
26 public:
28  virtual ~TopTreeNode() {}
29  virtual QString getUid() const;
30  virtual QString getName() const;
31  virtual QString getType() const;
32  virtual TreeNodePtr getParent() const;
33  virtual bool isVisibleNode() const;
34  virtual QIcon getIcon() const;
35 
36 private:
37 };
38 
39 } // namespace cx
40 
41 #endif // CXTOPTREENODE_H
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
cx::TopTreeNode::~TopTreeNode
virtual ~TopTreeNode()
Definition: cxTopTreeNode.h:28
cxTreeNodeImpl.h
cx::TopTreeNode::getName
virtual QString getName() const
Definition: cxTopTreeNode.cpp:30
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::TopTreeNode::getIcon
virtual QIcon getIcon() const
Definition: cxTopTreeNode.cpp:50
cx::TopTreeNode
Definition: cxTopTreeNode.h:23
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