VTK  9.4.20250206
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24
25VTK_ABI_NAMESPACE_BEGIN
27class vtkRenderer;
28class vtkRenderWindow;
30
31class VTKVIEWSCORE_EXPORT VTK_MARSHALAUTO vtkRenderViewBase : public vtkView
32{
33public:
35 vtkTypeMacro(vtkRenderViewBase, vtkView);
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
42
43 // Sets the renderer for this view.
44 virtual void SetRenderer(vtkRenderer* ren);
45
50
56 virtual void SetRenderWindow(vtkRenderWindow* win);
57
59
67
72 virtual void Render();
73
78 virtual void ResetCamera();
79
85
86protected:
89
93 virtual void PrepareForRendering();
94
97
98private:
99 vtkRenderViewBase(const vtkRenderViewBase&) = delete;
100 void operator=(const vtkRenderViewBase&) = delete;
101};
102
103VTK_ABI_NAMESPACE_END
104#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.
virtual vtkRenderWindowInteractor * GetInteractor()
The render window interactor.
~vtkRenderViewBase() override
virtual vtkRenderWindow * GetRenderWindow()
Get a handle to the render window.
static vtkRenderViewBase * New()
vtkSmartPointer< vtkRenderWindow > RenderWindow
virtual void SetInteractor(vtkRenderWindowInteractor *)
The render window interactor.
virtual void PrepareForRendering()
Called by the view when the renderer is about to render.
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...
virtual vtkRenderer * GetRenderer()
Gets the renderer for this view.
platform-independent render window interaction including picking and frame rate control.
create a window for renderers to draw into
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
The superclass for all views.
Definition vtkView.h:50
#define VTK_MARSHALAUTO