Skip to content

Renderer ​

Introduction ​

The OpenGL backend view node for a vtkRenderer.

Methods ​

buildPass ​

Builds myself: adopt the active camera and every view prop of the renderable as children.

ArgumentTypeRequiredDescription
prepassYes

cameraPass ​

Renders myself.

ArgumentTypeRequiredDescription
prepassYes

clear ​

Clear the color and depth buffers over this renderer's viewport, honoring the renderable's transparency and depth buffer preservation flags.

extend ​

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

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

getAspectRatio ​

The aspect ratio of this renderer's viewport, in pixels.

getSelector ​

getShaderCache ​

getTiledSizeAndOrigin ​

The pixel size and lower-left origin of this renderer's viewport.

newInstance ​

Method used to create a new instance of vtkOpenGLRenderer.

ArgumentTypeRequiredDescription
initialValuesIOpenGLRendererInitialValuesNofor pre-setting some of its content

opaqueZBufferPass ​

ArgumentTypeRequiredDescription
prepassYes

releaseGraphicsResources ​

setOpenGLRenderWindow ​

Rebind this renderer to another render window, releasing the graphics resources held for the previous one.

ArgumentTypeRequiredDescription
rwvtkOpenGLRenderWindowYes

setSelector ​

ArgumentTypeRequiredDescription
selectorYes

updateLights ​

Create a default light when the renderable has none switched on.

Returns ​

TypeDescription
the number of lights that are on.

zBufferPass ​

ArgumentTypeRequiredDescription
prepassYes