VTK
vtkContextActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextActor.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 =========================================================================*/
26 #ifndef __vtkContextActor_h
27 #define __vtkContextActor_h
28 
29 #include "vtkProp.h"
30 
31 class vtkContext2D;
32 class vtkContextScene;
33 
35 {
36 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38  vtkTypeMacro(vtkContextActor,vtkProp);
39 
40  static vtkContextActor* New();
41 
43  virtual int RenderOverlay(vtkViewport *viewport);
44 
46  virtual void SetContext(vtkContext2D *context);
47 
49 
50  vtkGetObjectMacro(Context, vtkContext2D);
52 
54 
55  vtkGetObjectMacro(Scene, vtkContextScene);
57 
59  virtual void SetScene(vtkContextScene *scene);
60 
64  virtual void ReleaseGraphicsResources(vtkWindow *window);
65 
66 protected:
68  ~vtkContextActor();
69 
72  void Initialize(vtkViewport* viewport);
73 
77 
78 private:
79  vtkContextActor(const vtkContextActor&); // Not implemented.
80  void operator=(const vtkContextActor&); // Not implemented.
81 };
82 
83 #endif