VTK
vtkRenderViewBase.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderViewBase.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 =========================================================================*/
15 
36 #ifndef __vtkRenderViewBase_h
37 #define __vtkRenderViewBase_h
38 
39 #include "vtkView.h"
40 #include "vtkSmartPointer.h" // For SP ivars
41 
43 class vtkRenderer;
44 class vtkRenderWindow;
46 
48 {
49 public:
50  static vtkRenderViewBase* New();
51  vtkTypeMacro(vtkRenderViewBase, vtkView);
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55  virtual vtkRenderer* GetRenderer();
56 
57  // Sets the renderer for this view.
58  virtual void SetRenderer(vtkRenderer* ren);
59 
61  virtual vtkRenderWindow* GetRenderWindow();
62 
66  virtual void SetRenderWindow(vtkRenderWindow *win);
67 
69 
72  virtual vtkRenderWindowInteractor* GetInteractor();
73  virtual void SetInteractor(vtkRenderWindowInteractor*);
75 
78  virtual void Render();
79 
82  virtual void ResetCamera();
83 
86  virtual void ResetCameraClippingRange();
87 
88 protected:
91 
93  virtual void PrepareForRendering();
94 
97 
98 private:
99  vtkRenderViewBase(const vtkRenderViewBase&); // Not implemented.
100  void operator=(const vtkRenderViewBase&); // Not implemented.
101 };
102 
103 #endif