Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MITK/MITK
/ GetToolById
Method
GetToolById
Modules/Segmentation/src/Controllers/mitkToolManager.cpp:158–164 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
156
}
157
158
mitk::Tool *mitk::ToolManager::GetToolById(int id)
159
{
160
if (id >= 0 && id < static_cast<int>(m_Tools.size()))
161
return m_Tools[id];
162
163
return nullptr;
164
}
165
166
bool mitk::ToolManager::ActivateTool(int id)
167
{
Callers
8
ActivateTool
Method · 0.95
UpdateButtonsEnabledState
Method · 0.80
GetToolIdByToolName
Method · 0.80
RunTestWithParameters
Method · 0.80
mitkToolManagerTestClass
Class · 0.80
TestToolManagerWithTools
Method · 0.80
OnManualTool2DSelected
Method · 0.80
OnShowMarkerNodes
Method · 0.80
Calls
1
size
Method · 0.45
Tested by
3
GetToolIdByToolName
Method · 0.64
RunTestWithParameters
Method · 0.64
TestToolManagerWithTools
Method · 0.64