Skip to content

InteractorStyleImage

Methods

handleEndMouseWheel

Handles the end of a wheel event.

ArgumentTypeRequiredDescription
callDataYesevent data

handleLeftButtonPress

Handles a left button press event.

ArgumentTypeRequiredDescription
callDataYesevent data

handleLeftButtonRelease

Handles a left button release event.

ArgumentTypeRequiredDescription
callDataYesevent data

handleMouseMove

Handles a mouse move.

ArgumentTypeRequiredDescription
callDataYesevent data

handleMouseWheel

Handles a wheel event.

ArgumentTypeRequiredDescription
callDataYesevent data

handleStartMouseWheel

Handles the start of a wheel event.

ArgumentTypeRequiredDescription
callDataYesevent data

setCurrentImageNumber

Sets the current image property.

This is a way of dealing with images as if they were layers. It looks through the renderer's list of props and sets the interactor ivars from the Nth image that it finds. You can also use negative numbers, i.e. -1 will return the last image, -2 will return the second-to-last image, etc.

ArgumentTypeRequiredDescription
iYesimage number

setCurrentImageProperty

Sets the current image property.

ArgumentTypeRequiredDescription
imagePropertyYesimage property

slice

Set slice from position.

ArgumentTypeRequiredDescription
rendererYesthe renderer
positionYesthe display position

windowLevel

Set window level from position.

ArgumentTypeRequiredDescription
rendererYesthe renderer
positionYesthe display position