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
31 #ifndef vtkContextView_h
32 #define vtkContextView_h
33 
34 #include "vtkRenderViewBase.h"
35 #include "vtkSmartPointer.h" // Needed for SP ivars
36 #include "vtkViewsContext2DModule.h" // For export macro
37 
38 VTK_ABI_NAMESPACE_BEGIN
39 class vtkContext2D;
40 class vtkContextScene;
41 
42 class VTKVIEWSCONTEXT2D_EXPORT vtkContextView : public vtkRenderViewBase
43 {
44 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
48  static vtkContextView* New();
49 
53  virtual void SetContext(vtkContext2D* context);
54 
59 
63  virtual void SetScene(vtkContextScene* scene);
64 
69 
70 protected:
72  ~vtkContextView() override;
73 
76 
77 private:
78  vtkContextView(const vtkContextView&) = delete;
79  void operator=(const vtkContextView&) = delete;
80 };
81 
82 VTK_ABI_NAMESPACE_END
83 #endif
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:59
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:38
A base view containing a renderer.