Function: addTool()
addTool(
ToolClass
):void
Adds the tool class to the cornerstoneTools to be used later. This function should be called before creating the toolGroups and adding tools and setting their mode. The flow is:
- addTool(ToolClass) // where ToolClass is the tool constructor imported from CornerstoneTools or created by a 3rd party
- createToolGroup(toolGroupId)
- toolGroup.addTool(${toolName}) // NOT THE TOOL CLASS
- toolGroup.setToolActive(${toolName})
Parameters
• ToolClass: any
A tool calls to instantiate.
Returns
void