NorMIT-nav  22.09
An IGT application
cxSpaceTreeNode.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 CXSPACETREENODE_H
12 #define CXSPACETREENODE_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:
29  virtual ~SpaceTreeNode() {}
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  CoordinateSystem mSpace;
39 };
40 
41 } // namespace cx
42 
43 #endif // CXSPACETREENODE_H
cx::SpaceTreeNode::SpaceTreeNode
SpaceTreeNode(TreeRepositoryWeakPtr repo, CoordinateSystem space)
Definition: cxSpaceTreeNode.cpp:20
cx::TreeNodeImpl
Definition: cxTreeNodeImpl.h:26
cx::SpaceTreeNode
Definition: cxSpaceTreeNode.h:24
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::SpaceTreeNode::getType
virtual QString getType() const
Definition: cxSpaceTreeNode.cpp:37
cxTreeNodeImpl.h
cx::SpaceTreeNode::getUid
virtual QString getUid() const
Definition: cxSpaceTreeNode.cpp:27
cx::SpaceTreeNode::getIcon
virtual QIcon getIcon() const
Definition: cxSpaceTreeNode.cpp:77
cx::SpaceTreeNode::isVisibleNode
virtual bool isVisibleNode() const
Definition: cxSpaceTreeNode.cpp:42
cx::SpaceTreeNode::getName
virtual QString getName() const
Definition: cxSpaceTreeNode.cpp:32
cx::TreeNodeWeakPtr
boost::weak_ptr< TreeNode > TreeNodeWeakPtr
Definition: cxDataTreeNode.h:20
cx::TreeNodePtr
boost::shared_ptr< TreeNode > TreeNodePtr
Definition: cxDataTreeNode.h:22
cx::SpaceTreeNode::getParent
virtual TreeNodePtr getParent() const
Definition: cxSpaceTreeNode.cpp:53
cx::SpaceTreeNode::~SpaceTreeNode
virtual ~SpaceTreeNode()
Definition: cxSpaceTreeNode.h:29
cx::TreeNodeImpl::repo
TreeRepositoryPtr repo()
Definition: cxTreeNodeImpl.cpp:102
cx::TreeRepositoryWeakPtr
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
Definition: cxTreeNode.h:30
cx::CoordinateSystem
Identification of a Coordinate system.
Definition: cxCoordinateSystemHelpers.h:31