Fraxinus
2023.01.05-dev+develop.0da12
An IGT application
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
cxViewServiceTreeNode.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 "
cxViewServiceTreeNode.h
"
12
13
#include "
cxTreeRepository.h
"
14
#include "
cxLogger.h
"
15
#include "
cxTrackingService.h
"
16
#include "
cxVisServices.h
"
17
#include <QIcon>
18
#include <QFont>
19
#include <QLabel>
20
#include "
cxToolPropertiesWidget.h
"
21
#include "
cxStringPropertySelectTool.h
"
22
23
namespace
cx
24
{
25
26
27
ViewServiceTreeNode::ViewServiceTreeNode
(
TreeRepositoryWeakPtr
repo) :
28
GroupTreeNode
(repo,
"view"
)
29
{
30
31
}
32
33
//QString ViewServiceTreeNode::getUid() const
34
//{
35
// return mTool->getUid();
36
//}
37
38
//QString ViewServiceTreeNode::getName() const
39
//{
40
// return mTool->getName();
41
//}
42
43
//TreeNodePtr ViewServiceTreeNode::getParent() const
44
//{
45
// if (this->repo()->getMode()=="flat")
46
// return this->repo()->getNodeForGroup("tool");
47
48
// if (mTool->hasType(Tool::TOOL_REFERENCE))
49
// return this->repo()->getNode(CoordinateSystem(csPATIENTREF).toString());
51
// ToolPtr ref = this->getServices()->tracking()->getReferenceTool();
52
// if (ref)
53
// return this->repo()->getNode(ref->getUid());
54
// return TreeNodePtr();
55
//}
56
57
//void ViewServiceTreeNode::activate()
58
//{
59
// this->getServices()->tracking()->setActiveTool(mTool->getUid());
60
//}
61
62
//QString ViewServiceTreeNode::getType() const
63
//{
64
// return "tool";
65
//}
66
67
//QIcon ViewServiceTreeNode::getIcon() const
68
//{
69
// if (mTool->hasType(Tool::TOOL_US_PROBE))
70
// return QIcon(":icons/tool_us_probe.png");
71
// if (mTool->hasType(Tool::TOOL_POINTER))
72
// return QIcon(":icons/tool_pointer.png");
73
// if (mTool->hasType(Tool::TOOL_REFERENCE))
74
// return QIcon(":icons/tool_reference.png");
75
// if (mTool->hasType(Tool::TOOL_MANUAL))
76
// return QIcon(":icons/tool_manual.png");
77
// return QIcon(":icons/tool_pointer.png");
78
//}
79
80
//QVariant ViewServiceTreeNode::getColor() const
81
//{
82
// if (!mTool->isInitialized())
83
// return QColor("darkgray");
84
// if (mTool->getVisible())
85
// return QColor("green");
86
// else
87
// return QColor("red");
88
89
// CX_LOG_CHANNEL_DEBUG("CA") << "tool " << mTool->getName() << ": init=" << mTool->isInitialized() << ", v=" << mTool->getVisible();
90
//}
91
92
//QVariant ViewServiceTreeNode::getFont() const
93
//{
94
// if (this->getServices()->tracking()->getActiveTool()==mTool)
95
// {
96
// QFont font;
97
// font.setBold(true);
98
// return font;
99
// }
100
// return QVariant();
101
//}
102
103
//QWidget* ViewServiceTreeNode::createPropertiesWidget() const
104
//{
105
// StringPropertySelectToolPtr selector = StringPropertySelectTool::New(this->getServices()->tracking());
106
// selector->setValue(mTool->getUid());
107
// return new ToolPropertiesWidget(selector,
108
// this->getServices()->tracking(),
109
// this->getServices()->spaceProvider(),
110
// NULL);
111
114
//}
115
116
117
}
// namespace cx
cxToolPropertiesWidget.h
cxLogger.h
cx::TreeRepositoryWeakPtr
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
Definition:
cxTreeNode.h:30
cx::GroupTreeNode
Definition:
cxGroupTreeNode.h:24
cxStringPropertySelectTool.h
cxTreeRepository.h
cxTrackingService.h
cx::ViewServiceTreeNode::ViewServiceTreeNode
ViewServiceTreeNode(TreeRepositoryWeakPtr repo)
Definition:
cxViewServiceTreeNode.cpp:27
cxViewServiceTreeNode.h
cxVisServices.h
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
CX
source
gui
browser
cxViewServiceTreeNode.cpp
Generated on Thu Jan 5 2023 02:05:38 for Fraxinus by
1.8.11