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 "vtkRenderPass.h"
38 
40 {
41 public:
42  static vtkCameraPass *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46  //BTX
48 
50  virtual void Render(const vtkRenderState *s);
51  //ETX
53 
57 
59 
63  vtkGetObjectMacro(DelegatePass,vtkRenderPass);
64  virtual void SetDelegatePass(vtkRenderPass *delegatePass);
66 
68 
70  vtkSetMacro(AspectRatioOverride, double);
71  vtkGetMacro(AspectRatioOverride, double);
72  protected:
73  // Description:
74  // Default constructor. DelegatePass is set to NULL.
75  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
vtkRenderPass * DelegatePass
Definition: vtkCameraPass.h:87
Implement the camera render pass.
Definition: vtkCameraPass.h:39
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_RENDERING_EXPORT
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:53