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 "vtkRenderViewBase.h"
37 #include "vtkSmartPointer.h" // Needed for SP ivars
38 
39 class vtkContext2D;
40 class vtkContextScene;
41 
42 class VTK_CHARTS_EXPORT vtkContextView : public vtkRenderViewBase
43 {
44 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46  vtkTypeMacro(vtkContextView, vtkRenderViewBase);
47 
48  static vtkContextView* New();
49 
51  virtual void SetContext(vtkContext2D *context);
52 
54  virtual vtkContext2D* GetContext();
55 
57  virtual void SetScene(vtkContextScene *scene);
58 
60  virtual vtkContextScene* GetScene();
61 
62 protected:
64  ~vtkContextView();
65 
68 
69 private:
70  vtkContextView(const vtkContextView&); // Not implemented.
71  void operator=(const vtkContextView&); // Not implemented.
72 };
73 
74 #endif
#define VTK_CHARTS_EXPORT
vtkSmartPointer< vtkContextScene > Scene
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:54
Provides a 2D scene for vtkContextItem objects.
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkSmartPointer< vtkContext2D > Context
provides a view of the vtkContextScene.