VTK: Views/Core/vtkRenderViewBase.h Source File

| 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
25 class vtkInteractorObserver;
26 class vtkRenderer;
27 class vtkRenderWindow;
28 class vtkRenderWindowInteractor;
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:
86 vtkRenderViewBase();
87 ~vtkRenderViewBase() override;
88
92 virtual void PrepareForRendering();
93
94 vtkSmartPointer<vtkRenderer> Renderer;
95 vtkSmartPointer<vtkRenderWindow> RenderWindow;
96
97 private:
98 vtkRenderViewBase(const vtkRenderViewBase&) = delete;
99 void operator=(const vtkRenderViewBase&) = delete;
100 };
101
102 VTK_ABI_NAMESPACE_END
103 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInteractorObserver
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
Definition: vtkInteractorObserver.h:64
vtkRenderViewBase
A base view containing a renderer.
Definition: vtkRenderViewBase.h:31
vtkRenderViewBase::~vtkRenderViewBase
~vtkRenderViewBase() override
vtkRenderViewBase::RenderWindow
vtkSmartPointer< vtkRenderWindow > RenderWindow
Definition: vtkRenderViewBase.h:95
vtkRenderViewBase::SetInteractor
virtual void SetInteractor(vtkRenderWindowInteractor *)
The render window interactor.
vtkRenderViewBase::GetRenderWindow
virtual vtkRenderWindow * GetRenderWindow()
Get a handle to the render window.
vtkRenderViewBase::GetInteractor
virtual vtkRenderWindowInteractor * GetInteractor()
The render window interactor.
vtkRenderViewBase::GetRenderer
virtual vtkRenderer * GetRenderer()
Gets the renderer for this view.
vtkRenderViewBase::PrepareForRendering
virtual void PrepareForRendering()
Called by the view when the renderer is about to render.
vtkRenderViewBase::New
static vtkRenderViewBase * New()
vtkRenderViewBase::vtkRenderViewBase
vtkRenderViewBase()
vtkRenderViewBase::SetRenderer
virtual void SetRenderer(vtkRenderer *ren)
vtkRenderViewBase::SetRenderWindow
virtual void SetRenderWindow(vtkRenderWindow *win)
Set the render window for this view.
vtkRenderViewBase::Renderer
vtkSmartPointer< vtkRenderer > Renderer
Definition: vtkRenderViewBase.h:94
vtkRenderViewBase::ResetCamera
virtual void ResetCamera()
Updates the representations, then calls ResetCamera() on the renderer associated with this view.
vtkRenderViewBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderViewBase::Render
virtual void Render()
Updates the representations, then calls Render() on the render window associated with this view.
vtkRenderViewBase::ResetCameraClippingRange
virtual void ResetCameraClippingRange()
Updates the representations, then calls ResetCameraClippingRange() on the renderer associated with th...
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:82
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:95
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkSmartPointer< vtkRenderer >
vtkView
The superclass for all views.
Definition: vtkView.h:49
vtkSmartPointer.h
vtkView.h