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 
37 #ifndef vtkRenderViewBase_h
38 #define vtkRenderViewBase_h
39 
40 #include "vtkViewsCoreModule.h" // For export macro
41 #include "vtkView.h"
42 #include "vtkSmartPointer.h" // For SP ivars
43 
45 class vtkRenderer;
46 class vtkRenderWindow;
48 
49 class VTKVIEWSCORE_EXPORT vtkRenderViewBase : public vtkView
50 {
51 public:
52  static vtkRenderViewBase* New();
53  vtkTypeMacro(vtkRenderViewBase, vtkView);
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
59  virtual vtkRenderer* GetRenderer();
60 
61  // Sets the renderer for this view.
62  virtual void SetRenderer(vtkRenderer* ren);
63 
68 
74  virtual void SetRenderWindow(vtkRenderWindow *win);
75 
77 
82  virtual vtkRenderWindowInteractor* GetInteractor();
83  virtual void SetInteractor(vtkRenderWindowInteractor*);
85 
90  virtual void Render();
91 
96  virtual void ResetCamera();
97 
102  virtual void ResetCameraClippingRange();
103 
104 protected:
107 
111  virtual void PrepareForRendering();
112 
115 
116 private:
117  vtkRenderViewBase(const vtkRenderViewBase&) VTK_DELETE_FUNCTION;
118  void operator=(const vtkRenderViewBase&) VTK_DELETE_FUNCTION;
119 };
120 
121 #endif
vtkSmartPointer< vtkRenderWindow > RenderWindow
static vtkView * New()
vtkRenderWindow * GetRenderWindow()
virtual void SetRenderWindow(vtkRenderWindow *renwin)
abstract specification for renderers
Definition: vtkRenderer.h:63
A base view containing a renderer.
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor ...
platform-independent render window interaction including picking and frame rate control.
The superclass for all views.
Definition: vtkView.h:60
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
create a window for renderers to draw into
vtkSmartPointer< vtkRenderer > Renderer