55 return mTool->getUid();
60 return mTool->getName();
65 if (this->
repo()->getMode()==
"flat")
66 return this->
repo()->getNodeForGroup(
"tool");
68 if (mTool->getUid() == this->
getServices()->tracking()->getManualTool()->getUid())
76 return this->
repo()->getNode(ref->getUid());
83 this->
getServices()->tracking()->setActiveTool(mTool->getUid());
94 return QIcon(
":icons/tool_us_probe.png");
96 return QIcon(
":icons/tool_pointer.png");
98 return QIcon(
":icons/tool_reference.png");
100 return QIcon(
":icons/tool_manual.png");
101 return QIcon(
":icons/tool_pointer.png");
106 if (!mTool->isInitialized())
107 return QColor(
"darkgray");
108 if (mTool->getVisible())
109 return QColor(
"green");
111 return QColor(
"red");
113 CX_LOG_CHANNEL_DEBUG(
"CA") <<
"tool " << mTool->getName() <<
": init=" << mTool->isInitialized() <<
", v=" << mTool->getVisible();
118 if (this->
getServices()->tracking()->getActiveTool()==mTool)
130 selector->setValue(mTool->getUid());
boost::shared_ptr< TreeNode > TreeNodePtr
VisServicesPtr getServices() const
boost::shared_ptr< class StringPropertySelectTool > StringPropertySelectToolPtr
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
csPATIENTREF
the patient/tool reference space (pr)
#define CX_LOG_CHANNEL_DEBUG(channel)
Identification of a Coordinate system.
cxLogicManager_EXPORT SpaceProviderPtr spaceProvider()
boost::shared_ptr< class Tool > ToolPtr