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 
29 #ifndef vtkRenderViewBase_h
30 #define vtkRenderViewBase_h
31 
32 #include "vtkSmartPointer.h" // For SP ivars
33 #include "vtkView.h"
34 #include "vtkViewsCoreModule.h" // For export macro
35 
37 class vtkRenderer;
38 class vtkRenderWindow;
40 
41 class VTKVIEWSCORE_EXPORT vtkRenderViewBase : public vtkView
42 {
43 public:
44  static vtkRenderViewBase* New();
45  vtkTypeMacro(vtkRenderViewBase, vtkView);
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
51  virtual vtkRenderer* GetRenderer();
52 
53  // Sets the renderer for this view.
54  virtual void SetRenderer(vtkRenderer* ren);
55 
59  virtual vtkRenderWindow* GetRenderWindow();
60 
66  virtual void SetRenderWindow(vtkRenderWindow* win);
67 
69 
74  virtual vtkRenderWindowInteractor* GetInteractor();
75  virtual void SetInteractor(vtkRenderWindowInteractor*);
77 
82  virtual void Render();
83 
88  virtual void ResetCamera();
89 
94  virtual void ResetCameraClippingRange();
95 
96 protected:
98  ~vtkRenderViewBase() override;
99 
103  virtual void PrepareForRendering();
104 
107 
108 private:
109  vtkRenderViewBase(const vtkRenderViewBase&) = delete;
110  void operator=(const vtkRenderViewBase&) = delete;
111 };
112 
113 #endif
vtkRenderViewBase::RenderWindow
vtkSmartPointer< vtkRenderWindow > RenderWindow
Definition: vtkRenderViewBase.h:106
vtkSmartPointer< vtkRenderer >
vtkInteractorObserver
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
Definition: vtkInteractorObserver.h:59
vtkView
The superclass for all views.
Definition: vtkView.h:54
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer.h
vtkView.h
vtkRenderViewBase
A base view containing a renderer.
Definition: vtkRenderViewBase.h:41
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:72
vtkView::New
static vtkView * New()
vtkRenderViewBase::Renderer
vtkSmartPointer< vtkRenderer > Renderer
Definition: vtkRenderViewBase.h:105
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:58
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:84