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 "vtkRenderingOpenGLModule.h" // For export macro
38 #include "vtkRenderPass.h"
39 
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 
88 
90  private:
91  vtkCameraPass(const vtkCameraPass&); // Not implemented.
92  void operator=(const vtkCameraPass&); // Not implemented.
93 };
94 
95 #endif
double AspectRatioOverride
Definition: vtkCameraPass.h:89
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
vtkRenderPass * DelegatePass
Definition: vtkCameraPass.h:87
Implement the camera render pass.
Definition: vtkCameraPass.h:40
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
GLint GLint GLsizei GLsizei height
Definition: vtkgl.h:11316
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:33
Context in which a vtkRenderPass will render.
GLubyte GLubyte GLubyte GLubyte w
Definition: vtkgl.h:12054
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGOPENGL_EXPORT
GLint GLint GLsizei width
Definition: vtkgl.h:11316
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
virtual void Render(const vtkRenderState *s)=0
virtual void ReleaseGraphicsResources(vtkWindow *w)
GLdouble s
Definition: vtkgl.h:11594
static vtkObject * New()
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:54
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69