VTK  9.0.20200808
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 =========================================================================*/
32 #ifndef vtkCameraPass_h
33 #define vtkCameraPass_h
34 
35 #include "vtkRenderPass.h"
36 #include "vtkRenderingOpenGL2Module.h" // For export macro
37 
38 class VTKRENDERINGOPENGL2_EXPORT vtkCameraPass : public vtkRenderPass
39 {
40 public:
41  static vtkCameraPass* New();
42  vtkTypeMacro(vtkCameraPass, vtkRenderPass);
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
49  void Render(const vtkRenderState* s) override;
50 
56  void ReleaseGraphicsResources(vtkWindow* w) override;
57 
59 
66  vtkGetObjectMacro(DelegatePass, vtkRenderPass);
67  virtual void SetDelegatePass(vtkRenderPass* delegatePass);
69 
71 
75  vtkSetMacro(AspectRatioOverride, double);
76  vtkGetMacro(AspectRatioOverride, double);
77 
78 protected:
80 
83  vtkCameraPass();
84 
86 
89  ~vtkCameraPass() override;
90  virtual void GetTiledSizeAndOrigin(
91  const vtkRenderState* render_state, int* width, int* height, int* originX, int* originY);
93 
95 
97 
98 private:
99  vtkCameraPass(const vtkCameraPass&) = delete;
100  void operator=(const vtkCameraPass&) = delete;
101 };
102 
103 #endif
vtkCameraPass::AspectRatioOverride
double AspectRatioOverride
Definition: vtkCameraPass.h:96
vtkRenderPass::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkRenderPass::Render
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
vtkRenderPass.h
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkX3D::height
Definition: vtkX3D.h:260
vtkRenderPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCameraPass
Implement the camera render pass.
Definition: vtkCameraPass.h:38
vtkCameraPass::DelegatePass
vtkRenderPass * DelegatePass
Definition: vtkCameraPass.h:94
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:40
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:56