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 "vtkRenderingContext2DModule.h" // For export macro
30 #include "vtkProp.h"
31 #include "vtkNew.h" // For ivars
32 #include "vtkSmartPointer.h" // For ivars
33 
34 class vtkContext2D;
35 class vtkContext3D;
36 class vtkContextScene;
37 
39 {
40 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42  vtkTypeMacro(vtkContextActor,vtkProp);
43 
44  static vtkContextActor* New();
45 
47  virtual int RenderOverlay(vtkViewport *viewport);
48 
50 
51  vtkGetNewMacro(Context, vtkContext2D);
53 
55  vtkContextScene * GetScene();
56 
58  void SetScene(vtkContextScene *scene);
59 
63  virtual void ReleaseGraphicsResources(vtkWindow *window);
64 
65 protected:
67  ~vtkContextActor();
68 
71  virtual void Initialize(vtkViewport* viewport);
72 
77 
78 private:
79  vtkContextActor(const vtkContextActor&); // Not implemented.
80  void operator=(const vtkContextActor&); // Not implemented.
81 };
82 
83 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
vtkNew< vtkContext2D > Context
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:204
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:270
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
#define VTKRENDERINGCONTEXT2D_EXPORT
Provides a 2D scene for vtkContextItem objects.
a simple class to control print indentation
Definition: vtkIndent.h:38
provides a vtkProp derived object.
vtkSmartPointer< vtkContextScene > Scene
static vtkObject * New()
vtkNew< vtkContext3D > Context3D
Class for drawing 3D primitives to a graphical context.
Definition: vtkContext3D.h:39