Skip to content

OrientationMarkerWidget

Introduction

vtkOrientationMarkerWidget is a 2D widget for manipulating a marker prop

Methods

computeViewport

Get the computed viewport size. The format is [left, bottom, right, top].

delete

Dereference any internal object and remove any subscription. It gives custom class to properly detach themselves from the DOM or any external dependency that could prevent their deletion when the GC runs.

extend

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

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

getActor

getEnabled

Get wheter the orientation marker is enabled.

getInteractiveRenderer

An instance of this class will spawn its own renderer, by default non interactive. This behavior is configurable through the interactiveRenderer property when initializing the instance.

Returns

TypeDescription
true if the renderer was created as interactive, false otherwise.

getInteractor

Get the render window interactor associated with the widget.

getMaxPixelSize

Get the maximum side length, in pixels, for the orientation marker widget viewport.

getMinPixelSize

Get the minimum side length, in pixels, for the orientation marker widget viewport.

getParentRenderer

Gets the parent renderer, if any.

getRenderer

Get the renderer associated with the widget.

getViewportCorner

Get the viewport corner.

getViewportSize

Get the viewport size.

newInstance

Method used to create a new instance of vtkOrientationMarkerWidget

ArgumentTypeRequiredDescription
initialValuesIOrientationMarkerWidgetInitialValuesNofor pre-setting some of its content

setActor

Get the actor associated with the widget.

ArgumentTypeRequiredDescription
actorvtkActorYesThe actor instance.

setEnabled

Set the widget enabled status, i.e. to show the widget or not.

ArgumentTypeRequiredDescription
enabledBooleanYes

setInteractor

Set the render window interactor associated with the widget.

ArgumentTypeRequiredDescription
interactorvtkRenderWindowInteractorYes

setMaxPixelSize

Set the maximum side length, in pixels, for the orientation marker widget viewport.

ArgumentTypeRequiredDescription
pixelSizeNumberYes

setMinPixelSize

Set the minimum side length, in pixels, for the orientation marker widget viewport.

ArgumentTypeRequiredDescription
pixelSizeNumberYes

setParentRenderer

Sets the parent renderer

ArgumentTypeRequiredDescription
renvtkRendererYesThe parent renderer

setViewportCorner

Set which corner to put the widget's viewport.

ArgumentTypeRequiredDescription
viewportCornerCornersYes

setViewportSize

Set the viewport size. The sizeFactor should be between 0.0 and 1.0. It says how much of the main render window to color.

ArgumentTypeRequiredDescription
sizeFactorNumberYes

updateMarkerOrientation

Manually updates the marker's orientation.

updateViewport

Updates the orientation widget viewport size.