VTK  9.3.1
vtkRenderViewBase.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
17 #ifndef vtkRenderViewBase_h
18 #define vtkRenderViewBase_h
19 
20 #include "vtkSmartPointer.h" // For SP ivars
21 #include "vtkView.h"
22 #include "vtkViewsCoreModule.h" // For export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
26 class vtkRenderer;
27 class vtkRenderWindow;
29 
30 class VTKVIEWSCORE_EXPORT vtkRenderViewBase : public vtkView
31 {
32 public:
33  static vtkRenderViewBase* New();
34  vtkTypeMacro(vtkRenderViewBase, vtkView);
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
40  virtual vtkRenderer* GetRenderer();
41 
42  // Sets the renderer for this view.
43  virtual void SetRenderer(vtkRenderer* ren);
44 
48  virtual vtkRenderWindow* GetRenderWindow();
49 
55  virtual void SetRenderWindow(vtkRenderWindow* win);
56 
58 
63  virtual vtkRenderWindowInteractor* GetInteractor();
64  virtual void SetInteractor(vtkRenderWindowInteractor*);
66 
71  virtual void Render();
72 
77  virtual void ResetCamera();
78 
83  virtual void ResetCameraClippingRange();
84 
85 protected:
87  ~vtkRenderViewBase() override;
88 
92  virtual void PrepareForRendering();
93 
96 
97 private:
98  vtkRenderViewBase(const vtkRenderViewBase&) = delete;
99  void operator=(const vtkRenderViewBase&) = delete;
100 };
101 
102 VTK_ABI_NAMESPACE_END
103 #endif
vtkSmartPointer< vtkRenderWindow > RenderWindow
static vtkView * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
Definition: vtkRenderer.h:61
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:48
a simple class to control print indentation
Definition: vtkIndent.h:28
create a window for renderers to draw into
vtkSmartPointer< vtkRenderer > Renderer