Camera
Introduction
The WebGPU backend view node for a vtkCamera.
Methods
convertToOpenGLDepth
Convert a WebGPU depth value into the equivalent OpenGL depth value.
| Argument | Type | Required | Description |
|---|---|---|---|
val | Yes |
extend
Method used to decorate a given object (publicAPI+model) with vtkWebGPUCamera 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 | IWebGPUCameraInitialValues | No | (default: {}) |
getKeyMatrices
Recompute the view/projection matrices if the camera, the renderer, the render window or the stabilized center changed since the last call.
| Argument | Type | Required | Description |
|---|---|---|---|
webGPURenderer | vtkWebGPURenderer | Yes |
getKeyMatrixTime
The time stamp guarding the cached key matrices.
getProjectionMatrix
Fill the given matrix with the WebGPU projection matrix, whose depth range is [0, 1] rather than the OpenGL [-1, 1].
| Argument | Type | Required | Description |
|---|---|---|---|
outMat | Yes | the 4x4 matrix to write into | |
aspect | Yes | the viewport aspect ratio | |
cRange | Yes | the clipping range | |
windowCenter | Yes | the normalized window center |
newInstance
Method used to create a new instance of vtkWebGPUCamera.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IWebGPUCameraInitialValues | No | for pre-setting some of its content |
setKeyMatrixTime
| Argument | Type | Required | Description |
|---|---|---|---|
keyMatrixTime | Yes |