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 =========================================================================*/
31 #ifndef vtkCameraPass_h
32 #define vtkCameraPass_h
33 
34 #include "vtkRenderingOpenGLModule.h" // For export macro
35 #include "vtkRenderPass.h"
36 
38 {
39 public:
40  static vtkCameraPass *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
44  //BTX
46 
48  virtual void Render(const vtkRenderState *s);
49  //ETX
51 
55 
57 
61  vtkGetObjectMacro(DelegatePass,vtkRenderPass);
62  virtual void SetDelegatePass(vtkRenderPass *delegatePass);
64 
66 
68  vtkSetMacro(AspectRatioOverride, double);
69  vtkGetMacro(AspectRatioOverride, double);
70  protected:
72 
73  vtkCameraPass();
74 
76 
77  virtual ~vtkCameraPass();
78  virtual void GetTiledSizeAndOrigin(
79  const vtkRenderState* render_state,
80  int* width, int* height, int *originX,
81  int* originY);
83 
85 
87  private:
88  vtkCameraPass(const vtkCameraPass&); // Not implemented.
89  void operator=(const vtkCameraPass&); // Not implemented.
90 };
91 
92 #endif
double AspectRatioOverride
Definition: vtkCameraPass.h:86
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
#define VTKRENDERINGOPENGL_EXPORT
vtkRenderPass * DelegatePass
Definition: vtkCameraPass.h:84
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