3 #ifndef vtkWebGPUCamera_h
4 #define vtkWebGPUCamera_h
10 #include "vtkRenderingWebGPUModule.h"
13 VTK_ABI_NAMESPACE_BEGIN
53 std::tuple<int, int, int, int> ComputeYInvertedViewport(
vtkRenderer* renderer);
60 struct SceneTransforms
63 vtkTypeFloat32 Viewport[4];
65 vtkTypeFloat32 ViewMatrix[4][4] = {};
67 vtkTypeFloat32 ProjectionMatrix[4][4] = {};
69 vtkTypeFloat32 NormalMatrix[3][4] = {};
71 vtkTypeFloat32 InvertedProjectionMatrix[4][4] = {};
73 vtkTypeUInt32 Flags = 0;
75 SceneTransforms CachedSceneTransforms;
78 #define vtkWebGPUCamera_OVERRIDE_ATTRIBUTES vtkWebGPUCamera::CreateOverrideAttributes()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Attribute for vtkObjectFactory overrides.
represents an object (geometry & properties) in a rendered scene
record modification and/or execution time
abstract specification for renderers
static std::size_t GetCacheSizeBytes()
virtual void UpdateViewport(vtkRenderer *ren)
Update the viewport.
a simple class to control print indentation
a virtual camera for 3D rendering
virtual void Render(vtkRenderer *)
This method causes the camera to set up whatever is required for viewing the scene.
void * GetCachedSceneTransforms()
represent and manipulate 3x3 transformation matrices
static vtkCamera * New()
Construct camera instance with its focal point at the origin, and position=(0,0,1).