VTK  9.3.20240329
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:
34  vtkTypeMacro(vtkRenderViewBase, vtkView);
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
41 
42  // Sets the renderer for this view.
43  virtual void SetRenderer(vtkRenderer* ren);
44 
49 
55  virtual void SetRenderWindow(vtkRenderWindow* win);
56 
58 
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
a simple class to control print indentation
Definition: vtkIndent.h:108
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
A base view containing a renderer.
~vtkRenderViewBase() override
vtkSmartPointer< vtkRenderWindow > RenderWindow
virtual void SetInteractor(vtkRenderWindowInteractor *)
The render window interactor.
virtual vtkRenderWindow * GetRenderWindow()
Get a handle to the render window.
virtual vtkRenderWindowInteractor * GetInteractor()
The render window interactor.
virtual vtkRenderer * GetRenderer()
Gets the renderer for this view.
virtual void PrepareForRendering()
Called by the view when the renderer is about to render.
static vtkRenderViewBase * New()
virtual void SetRenderer(vtkRenderer *ren)
virtual void SetRenderWindow(vtkRenderWindow *win)
Set the render window for this view.
vtkSmartPointer< vtkRenderer > Renderer
virtual void ResetCamera()
Updates the representations, then calls ResetCamera() on the renderer associated with this view.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Render()
Updates the representations, then calls Render() on the render window associated with this view.
virtual void ResetCameraClippingRange()
Updates the representations, then calls ResetCameraClippingRange() on the renderer associated with th...
platform-independent render window interaction including picking and frame rate control.
create a window for renderers to draw into
abstract specification for renderers
Definition: vtkRenderer.h:172
The superclass for all views.
Definition: vtkView.h:49