VTK
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 =========================================================================*/
34 #ifndef vtkCameraPass_h
35 #define vtkCameraPass_h
36 
37 #include "vtkRenderingOpenGL2Module.h" // For export macro
38 #include "vtkRenderPass.h"
39 
40 class VTKRENDERINGOPENGL2_EXPORT vtkCameraPass : public vtkRenderPass
41 {
42 public:
43  static vtkCameraPass *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
47  //BTX
49 
51  virtual void Render(const vtkRenderState *s);
52  //ETX
54 
58 
60 
64  vtkGetObjectMacro(DelegatePass,vtkRenderPass);
65  virtual void SetDelegatePass(vtkRenderPass *delegatePass);
67 
69 
71  vtkSetMacro(AspectRatioOverride, double);
72  vtkGetMacro(AspectRatioOverride, double);
73  protected:
75 
76  vtkCameraPass();
77 
79 
80  virtual ~vtkCameraPass();
81  virtual void GetTiledSizeAndOrigin(
82  const vtkRenderState* render_state,
83  int* width, int* height, int *originX,
84  int* originY);
86 
87  vtkRenderPass *DelegatePass;
88 
89  double AspectRatioOverride;
90  private:
91  vtkCameraPass(const vtkCameraPass&); // Not implemented.
92  void operator=(const vtkCameraPass&); // Not implemented.
93 };
94 
95 #endif
Implement the camera render pass.
Definition: vtkCameraPass.h:37
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void Render(const vtkRenderState *s)=0
virtual void ReleaseGraphicsResources(vtkWindow *w)
static vtkObject * New()
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:54