Skip to content

AbstractWidgetFactory ​

Methods ​

getPlaceFactor ​

Get the place factor.

getViewIds ​

Get a list of all the view ids.

getViewWidgets ​

Get a list of all the instances of the widget.

getWidgetForView ​

Will return the widget associated with the view with Id id locator.viewId. If there is no widget associated with the view, a new widget will be constructed, provided that the renderer, viewType, and optionally initialValues are also provided.

ArgumentTypeRequiredDescription
locatorIGetWidgetForViewParamsYes

getWidgetState ​

Get the vtkWidgetState instance

invokeWidgetChangeEvent ​

Invoke the WidgetChange event

ArgumentTypeRequiredDescription
argsYesThe event payload

onWidgetChangeEvent ​

Register a callback to be called when the WidgetChange event arise.

ArgumentTypeRequiredDescription
cbEventHandlerYesThe callback to be invoked.
priorityNumberNoThe priority of this subscription

placeWidget ​

Place a new widget at the given bounds.

ArgumentTypeRequiredDescription
boundsBoundsYes

setContextVisibility ​

Set the context visibility for each associated view widget.

ArgumentTypeRequiredDescription
visibleBooleanYes

setDragable ​

Set the dragable flag for each underlying view widget.

ArgumentTypeRequiredDescription
dragableBooleanYes

setHandleVisiblity ​

Set the handles visibility for each underlying view widget.

ArgumentTypeRequiredDescription
visibleBooleanYes

setPickable ​

Set the pickable flag for each underlying view widget.

ArgumentTypeRequiredDescription
pickableBooleanYes

setPlaceFactor ​

Set the place factor.

ArgumentTypeRequiredDescription
factorNumberYes

setVisibility ​

Set the visiblity on each underlying view widget.

ArgumentTypeRequiredDescription
visibleBooleanYes