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 "vtkViewsCoreModule.h" // For export macro
40 #include "vtkView.h"
41 #include "vtkSmartPointer.h" // For SP ivars
42 
44 class vtkRenderer;
45 class vtkRenderWindow;
47 
49 {
50 public:
51  static vtkRenderViewBase* New();
52  vtkTypeMacro(vtkRenderViewBase, vtkView);
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56  virtual vtkRenderer* GetRenderer();
57 
58  // Sets the renderer for this view.
59  virtual void SetRenderer(vtkRenderer* ren);
60 
63 
67  virtual void SetRenderWindow(vtkRenderWindow *win);
68 
70 
73  virtual vtkRenderWindowInteractor* GetInteractor();
74  virtual void SetInteractor(vtkRenderWindowInteractor*);
76 
79  virtual void Render();
80 
83  virtual void ResetCamera();
84 
87  virtual void ResetCameraClippingRange();
88 
89 protected:
92 
94  virtual void PrepareForRendering();
95 
98 
99 private:
100  vtkRenderViewBase(const vtkRenderViewBase&); // Not implemented.
101  void operator=(const vtkRenderViewBase&); // Not implemented.
102 };
103 
104 #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:62
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKVIEWSCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
create a window for renderers to draw into
vtkSmartPointer< vtkRenderer > Renderer