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);
43 
44  static vtkContextActor* New();
45 
47  virtual int RenderOverlay(vtkViewport *viewport);
48 
50 
53 
56 
58  void SetScene(vtkContextScene *scene);
59 
63  virtual void ReleaseGraphicsResources(vtkWindow *window);
64 
65 protected:
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
vtkContextActor::New
static vtkContextActor * New()
vtkContextActor::GetScene
vtkContextScene * GetScene()
vtkContextActor::vtkGetNewMacro
vtkGetNewMacro(Context, vtkContext2D)
VTKRENDERINGCONTEXT2D_EXPORT
#define VTKRENDERINGCONTEXT2D_EXPORT
Definition: vtkRenderingContext2DModule.h:15
vtkContextActor::vtkContextActor
vtkContextActor()
vtkContextActor::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
vtkContextActor::Initialize
virtual void Initialize(vtkViewport *viewport)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSmartPointer< vtkContextScene >
vtkContextActor::Scene
vtkSmartPointer< vtkContextScene > Scene
Definition: vtkContextActor.h:73
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:57
vtkProp.h
vtkContextActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkContextActor::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *window)
vtkContextActor
provides a vtkProp derived object.
Definition: vtkContextActor.h:39
vtkContextScene
Provides a 2D scene for vtkContextItem objects.
Definition: vtkContextScene.h:50
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmartPointer.h
vtkContextActor::Context3D
vtkNew< vtkContext3D > Context3D
Definition: vtkContextActor.h:75
vtkNew< vtkContext2D >
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkNew.h
vtkContextActor::~vtkContextActor
~vtkContextActor()
vtkContextActor::SetScene
void SetScene(vtkContextScene *scene)
vtkContext3D
Class for drawing 3D primitives to a graphical context.
Definition: vtkContext3D.h:40
vtkContextActor::Initialized
bool Initialized
Definition: vtkContextActor.h:76
vtkRenderingContext2DModule.h
vtkContextActor::Context
vtkNew< vtkContext2D > Context
Definition: vtkContextActor.h:74