VTK  9.4.20241218
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
92#ifndef vtkCameraPass_h
93#define vtkCameraPass_h
94
95#include "vtkRenderPass.h"
96#include "vtkRenderingOpenGL2Module.h" // For export macro
97#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
98
99VTK_ABI_NAMESPACE_BEGIN
100class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkCameraPass : public vtkRenderPass
101{
102public:
105 void PrintSelf(ostream& os, vtkIndent indent) override;
106
111 void Render(const vtkRenderState* s) override;
112
119
121
128 vtkGetObjectMacro(DelegatePass, vtkRenderPass);
129 virtual void SetDelegatePass(vtkRenderPass* delegatePass);
131
133
137 vtkSetMacro(AspectRatioOverride, double);
138 vtkGetMacro(AspectRatioOverride, double);
139
140protected:
142
146
148
151 ~vtkCameraPass() override;
153 const vtkRenderState* render_state, int* width, int* height, int* originX, int* originY);
155
157
159
160private:
161 vtkCameraPass(const vtkCameraPass&) = delete;
162 void operator=(const vtkCameraPass&) = delete;
163};
164
165VTK_ABI_NAMESPACE_END
166#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:108
Perform part of the rendering of a vtkRenderer.
Context in which a vtkRenderPass will render.
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
#define VTK_MARSHALAUTO