Skip to content

WidgetManager ​

Methods ​

disablePicking ​

Disable the picking.

enablePicking ​

Enable the picking.

extend ​

Method used to decorate a given object (publicAPI+model) with vtkWidgetManager characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesYes(default: {})

extractRenderingComponents ​

Extract the rendering components from the given renderer.

ArgumentTypeRequiredDescription
renderervtkRendererYesThe vtkRenderer instance.

getActiveWidget ​

Get the active widget.

If no widget is active, returns null.

getCaptureOn ​

Get the captureOn value.

getCursorStyles ​

Retrieves the current cursor styles.

getPickingEnabled ​

Returns true if picking is enabled, false otherwise.

getPixelWorldHeightAtCoord ​

This method returns the world distance that corresponds to the height of a single display pixel at a given coordinate. For example, to determine the (vertical) distance that matches a display distance of 30px for a coordinate coord, you would compute 30 * getPixelWorldHeightAtCoord(coord).

getSelectedData ​

The all currently selected data.

getSelectedDataForXY ​

Given x and y parameter, get selected data.

ArgumentTypeRequiredDescription
xNumberYes
yNumberYes

getSelections ​

Get the current selection.

getViewId ​

Get the view id.

getViewType ​

Get the view type.

getWidgets ​

Get all the underlying widgets.

grabFocus ​

Given the focus to the given widget instance.

ArgumentTypeRequiredDescription
widgetvtkAbstractWidget or vtkAbstractWidgetFactoryYesThe widget instance which should get the focus.

newInstance ​

Method used to create a new instance of vtkCellArray

ArgumentTypeRequiredDescription
initialValuesYesfor pre-setting some of its content

releaseFocus ​

Release the focus.

removeWidget ​

Remove a widget from the widget manager.

ArgumentTypeRequiredDescription
widgetvtkAbstractWidget or vtkAbstractWidgetFactoryYesThe widget to remove

removeWidgets ​

Unregister all widgets from the widget manager.

renderWidgets ​

Renders all the widgets.

setCaptureOn ​

The the captureOn value. CaptureOn.MOUSE_MOVE: captures small region when moving mouse CaptureOn.MOUSE_RELEASE: captures entire region when mouse button is released

ArgumentTypeRequiredDescription
captureOnCaptureOnYes

setCursorStyles ​

Sets the default cursor styles.

Known style keys:

  • default: when not interacting with a widget
  • hover: when hovering over a widget.

If a known style key is not present, the cursor style will not be changed.

ArgumentTypeRequiredDescription
cursorStylesRecord<string>Yes

setRenderer ​

Set the renderer.

ArgumentTypeRequiredDescription
renderervtkRendererYes

setViewType ​

The the view type.

ArgumentTypeRequiredDescription
typeViewTypesYes