VTK  9.2.20230320
vtkCameraPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCameraPass.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
104 #ifndef vtkCameraPass_h
105 #define vtkCameraPass_h
106 
107 #include "vtkRenderPass.h"
108 #include "vtkRenderingOpenGL2Module.h" // For export macro
109 
110 VTK_ABI_NAMESPACE_BEGIN
111 class VTKRENDERINGOPENGL2_EXPORT vtkCameraPass : public vtkRenderPass
112 {
113 public:
114  static vtkCameraPass* New();
115  vtkTypeMacro(vtkCameraPass, vtkRenderPass);
116  void PrintSelf(ostream& os, vtkIndent indent) override;
117 
122  void Render(const vtkRenderState* s) override;
123 
130 
132 
139  vtkGetObjectMacro(DelegatePass, vtkRenderPass);
140  virtual void SetDelegatePass(vtkRenderPass* delegatePass);
142 
144 
148  vtkSetMacro(AspectRatioOverride, double);
149  vtkGetMacro(AspectRatioOverride, double);
150 
151 protected:
153 
157 
159 
162  ~vtkCameraPass() override;
163  virtual void GetTiledSizeAndOrigin(
164  const vtkRenderState* render_state, int* width, int* height, int* originX, int* originY);
166 
168 
170 
171 private:
172  vtkCameraPass(const vtkCameraPass&) = delete;
173  void operator=(const vtkCameraPass&) = delete;
174 };
175 
176 VTK_ABI_NAMESPACE_END
177 #endif
Implement the camera render pass.
virtual void SetDelegatePass(vtkRenderPass *delegatePass)
Delegate for rendering the geometry.
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.
static vtkCameraPass * New()
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:120
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:61
Context in which a vtkRenderPass will render.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:40
@ height
Definition: vtkX3D.h:266