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
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
#define VTK_CHARTS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
vtkContext2D * Context
abstract specification for Viewports
Definition: vtkViewport.h:45
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:174
vtkContextScene * Scene
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:236
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
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
provides a vtkProp derived object.
static vtkObject * New()