Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxGroupTreeNode.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 CXGROUPTREENODE_H
12 #define CXGROUPTREENODE_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 
25 {
26  Q_OBJECT
27 public:
28  GroupTreeNode(TreeRepositoryWeakPtr repo, QString typeName);
29  virtual ~GroupTreeNode() {}
30  virtual QString getUid() const;
31  virtual QString getName() const;
32  virtual QString getType() const;
33  virtual TreeNodePtr getParent() const;
34  virtual bool isVisibleNode() const;
35  virtual QIcon getIcon() const;
36 
37 private:
38  QString mTypeName;
39 };
40 
41 } // namespace cx
42 
43 #endif // CXGROUPTREENODE_H
boost::shared_ptr< TreeNode > TreeNodePtr
virtual QString getUid() const
virtual TreeNodePtr getParent() const
virtual QString getType() const
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
Definition: cxTreeNode.h:30
TreeRepositoryPtr repo()
virtual QIcon getIcon() const
boost::weak_ptr< TreeNode > TreeNodeWeakPtr
virtual QString getName() const
virtual ~GroupTreeNode()
virtual bool isVisibleNode() const
GroupTreeNode(TreeRepositoryWeakPtr repo, QString typeName)
Namespace for all CustusX production code.