VTK
vtkContextView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextView.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef vtkContextView_h
34 #define vtkContextView_h
35 
36 #include "vtkViewsContext2DModule.h" // For export macro
37 #include "vtkRenderViewBase.h"
38 #include "vtkSmartPointer.h" // Needed for SP ivars
39 
40 class vtkContext2D;
41 class vtkContextScene;
42 
44 {
45 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
48 
49  static vtkContextView* New();
50 
52  virtual void SetContext(vtkContext2D *context);
53 
55  virtual vtkContext2D* GetContext();
56 
58  virtual void SetScene(vtkContextScene *scene);
59 
61  virtual vtkContextScene* GetScene();
62 
63 protected:
65  ~vtkContextView();
66 
69 
70 private:
71  vtkContextView(const vtkContextView&); // Not implemented.
72  void operator=(const vtkContextView&); // Not implemented.
73 };
74 
75 #endif
#define VTKVIEWSCONTEXT2D_EXPORT
vtkSmartPointer< vtkContextScene > Scene
A base view containing a renderer.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
Provides a 2D scene for vtkContextItem objects.
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
vtkSmartPointer< vtkContext2D > Context
static vtkRenderViewBase * New()
provides a view of the vtkContextScene.