VTK  9.3.0
vtkContextView.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
22 #ifndef vtkContextView_h
23 #define vtkContextView_h
24 
25 #include "vtkRenderViewBase.h"
26 #include "vtkSmartPointer.h" // Needed for SP ivars
27 #include "vtkViewsContext2DModule.h" // For export macro
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkContext2D;
31 class vtkContextScene;
32 
33 class VTKVIEWSCONTEXT2D_EXPORT vtkContextView : public vtkRenderViewBase
34 {
35 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39  static vtkContextView* New();
40 
44  virtual void SetContext(vtkContext2D* context);
45 
50 
54  virtual void SetScene(vtkContextScene* scene);
55 
60 
61 protected:
63  ~vtkContextView() override;
64 
67 
68 private:
69  vtkContextView(const vtkContextView&) = delete;
70  void operator=(const vtkContextView&) = delete;
71 };
72 
73 VTK_ABI_NAMESPACE_END
74 #endif
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:50
Provides a 2D scene for vtkContextItem objects.
provides a view of the vtkContextScene.
virtual vtkContextScene * GetScene()
Get the scene of the view.
virtual void SetContext(vtkContext2D *context)
Set the vtkContext2D for the view.
static vtkContextView * New()
~vtkContextView() override
vtkSmartPointer< vtkContextScene > Scene
virtual void SetScene(vtkContextScene *scene)
Set the scene object for the view.
vtkSmartPointer< vtkContext2D > Context
virtual vtkContext2D * GetContext()
Get the vtkContext2D for the view.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:29
A base view containing a renderer.