Skip to content

FullScreenRenderWindow ​

Introduction ​

vtkFullScreenRenderWindow provides a skeleton for implementing a fullscreen render window.

Methods ​

addController ​

ArgumentTypeRequiredDescription
htmlHTMLElementYes

addRepresentation ​

Representation API

ArgumentTypeRequiredDescription
representationYes

delete ​

Release GL context

extend ​

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

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

getApiSpecificRenderWindow ​

Returns vtkWebGPURenderWindow if ?viewAPI='WebGPU' is in URL, or if vtkFullScreenRenderWindow has been created with "defaultViewAPI: 'WebGPU'", otherwise vtkOpenGLRenderWindow is returned.

getContainer ​

Get container element

getControlContainer ​

Get control container element

getInteractor ​

Get interactor object

getRenderWindow ​

Get Render windows object

getRenderer ​

Get Renderer object

getRootContainer ​

Get root container element

newInstance ​

Method used to create a new instance of vtkFullScreenRenderWindow

ArgumentTypeRequiredDescription
initialValuesIFullScreenRenderWindowInitialValuesNofor pre-setting some of its content

removeController ​

Remove controller

removeRepresentation ​

Remove representation

ArgumentTypeRequiredDescription
representationYes

resize ​

Handle window resize

setBackground ​

Set background color

ArgumentTypeRequiredDescription
backgroundRGBColor or RGBAColorYesThe background color.

setControllerVisibility ​

Hide or show controller

ArgumentTypeRequiredDescription
visibleBooleanYes

setResizeCallback ​

ArgumentTypeRequiredDescription
cbYes

toggleControllerVisibility ​

Toggle controller visibility