VTK  9.7.1
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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class vtkContext2D;
32 class vtkContextScene;
33 
34 class VTKVIEWSCONTEXT2D_EXPORT VTK_MARSHALAUTO vtkContextView : public vtkRenderViewBase
35 {
36 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
40  static vtkContextView* New();
41 
46  virtual void SetContext(vtkContext2D* context);
47 
52  virtual vtkContext2D* GetContext();
53 
57  virtual void SetScene(vtkContextScene* scene);
58 
62  virtual vtkContextScene* GetScene();
63 
64 protected:
66  ~vtkContextView() override;
67 
70 
71 private:
72  vtkContextView(const vtkContextView&) = delete;
73  void operator=(const vtkContextView&) = delete;
74 };
75 
76 VTK_ABI_NAMESPACE_END
77 #endif
Hold a reference to a vtkObjectBase instance.
Definition: vtkMeta.h:23
A base view containing a renderer.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:49
Provides a 2D scene for vtkContextItem objects.
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_MARSHALEXCLUDE(reason)
#define VTK_MARSHALAUTO
static vtkRenderViewBase * New()
provides a view of the vtkContextScene.
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL