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.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Yes |
cameraPass
Renders myself.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Yes |
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.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IOpenGLRendererInitialValues | No | (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.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IOpenGLRendererInitialValues | No | for pre-setting some of its content |
opaqueZBufferPass
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Yes |
releaseGraphicsResources
setOpenGLRenderWindow
Rebind this renderer to another render window, releasing the graphics resources held for the previous one.
| Argument | Type | Required | Description |
|---|---|---|---|
rw | vtkOpenGLRenderWindow | Yes |
setSelector
| Argument | Type | Required | Description |
|---|---|---|---|
selector | Yes |
updateLights
Create a default light when the renderable has none switched on.
Returns
| Type | Description |
|---|---|
| the number of lights that are on. |
zBufferPass
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Yes |