VTK  9.3.0
vtkCameraPass.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
23#ifndef vtkCameraPass_h
24#define vtkCameraPass_h
25
26#include "vtkRenderPass.h"
27#include "vtkRenderingOpenGL2Module.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
30class VTKRENDERINGOPENGL2_EXPORT vtkCameraPass : public vtkRenderPass
31{
32public:
33 static vtkCameraPass* New();
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
41 void Render(const vtkRenderState* s) override;
42
49
51
58 vtkGetObjectMacro(DelegatePass, vtkRenderPass);
59 virtual void SetDelegatePass(vtkRenderPass* delegatePass);
61
63
67 vtkSetMacro(AspectRatioOverride, double);
68 vtkGetMacro(AspectRatioOverride, double);
69
70protected:
72
76
78
81 ~vtkCameraPass() override;
83 const vtkRenderState* render_state, int* width, int* height, int* originX, int* originY);
85
87
89
90private:
91 vtkCameraPass(const vtkCameraPass&) = delete;
92 void operator=(const vtkCameraPass&) = delete;
93};
94
95VTK_ABI_NAMESPACE_END
96#endif
Implement the camera render pass.
virtual void SetDelegatePass(vtkRenderPass *delegatePass)
Delegate for rendering the geometry.
static vtkCameraPass * New()
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkRenderPass * DelegatePass
double AspectRatioOverride
virtual void GetTiledSizeAndOrigin(const vtkRenderState *render_state, int *width, int *height, int *originX, int *originY)
Destructor.
vtkCameraPass()
Default constructor.
~vtkCameraPass() override
Destructor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
a simple class to control print indentation
Definition vtkIndent.h:29
Perform part of the rendering of a vtkRenderer.
Context in which a vtkRenderPass will render.
window superclass for vtkRenderWindow
Definition vtkWindow.h:25