Viewer.getTool() method

Get the tool instance by tool's name.

Signature:

getTool(name: string): Tool;

Parameters

ParameterDescription
nameThe name of tool.

Returns:

Tool

The tool object. It returns null when no tool with such name exists.