Brush

Brush class.

Constructor

new Brush(app)

Parameters:
NameTypeDescription
appApp

The associated application.

Classes

Brush

Members

keydown

Handle key down event.

mousedown

Handle mouse down event.

mousemove

Handle mouse move event.

mouseout

Handle mouse out event.

mouseup

Handle mouse up event.

touchend

Handle touch end event.

touchmove

Handle touch move event.

touchstart

Handle touch start event.

wheel

Handle mouse wheel event.

Methods

activate(bool)

Activate the tool and activates/deactivates the context menu of all dwv div ids.

Parameters:
NameTypeDescription
boolboolean

The flag to activate or not.

getEventNames() → {Array}

Get the list of event names that this tool can fire.

Returns:

The list of event names.

Type: 
Array

getHelpKeys() → {object}

Help for this tool.

Returns:

The help content.

Type: 
object

init()

Initialise the tool.

setFeatures(features)

Set the tool live features. See the documentation of the class members for details.

Parameters:
NameTypeDescription
featuresobject

The list of features.