60 return mTool->getUid();
65 return mTool->getName();
70 if (this->
repo()->getMode()==
"flat")
71 return this->
repo()->getNodeForGroup(
"tool");
73 if (mTool->getUid() == this->
getServices()->tracking()->getManualTool()->getUid())
81 return this->
repo()->getNode(ref->getUid());
88 this->
getServices()->tracking()->setActiveTool(mTool->getUid());
99 return QIcon(
":icons/tool_us_probe.png");
101 return QIcon(
":icons/tool_pointer.png");
103 return QIcon(
":icons/tool_reference.png");
105 return QIcon(
":icons/tool_manual.png");
106 return QIcon(
":icons/tool_pointer.png");
111 if (!mTool->isInitialized())
112 return QColor(
"darkgray");
113 if (mTool->getVisible())
114 return QColor(
"green");
116 return QColor(
"red");
121 if (this->
getServices()->tracking()->getActiveTool()==mTool)
133 selector->setValue(mTool->getUid());
boost::shared_ptr< TreeNode > TreeNodePtr
VisServicesPtr getServices() const
std::string toString(T const &value)
converts any type to a string
boost::shared_ptr< class StringPropertySelectTool > StringPropertySelectToolPtr
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
csPATIENTREF
the patient/tool reference space (pr)
Identification of a Coordinate system.
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr