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 =========================================================================*/
27 #ifndef vtkContextActor_h
28 #define vtkContextActor_h
29 
30 #include "vtkRenderingContext2DModule.h" // For export macro
31 #include "vtkProp.h"
32 #include "vtkNew.h" // For ivars
33 #include "vtkSmartPointer.h" // For ivars
34 
35 class vtkContext2D;
36 class vtkContext3D;
37 class vtkContextScene;
38 
39 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextActor : public vtkProp
40 {
41 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43  vtkTypeMacro(vtkContextActor,vtkProp);
44 
45  static vtkContextActor* New();
46 
50  virtual int RenderOverlay(vtkViewport *viewport);
51 
53 
58 
63 
67  void SetScene(vtkContextScene *scene);
68 
74  virtual void ReleaseGraphicsResources(vtkWindow *window);
75 
76 protected:
79 
83  virtual void Initialize(vtkViewport* viewport);
84 
89 
90 private:
91  vtkContextActor(const vtkContextActor&) VTK_DELETE_FUNCTION;
92  void operator=(const vtkContextActor&) VTK_DELETE_FUNCTION;
93 };
94 
95 #endif
vtkContextActor::New
static vtkContextActor * New()
vtkContextActor::GetScene
vtkContextScene * GetScene()
Get the chart object for the actor.
vtkContextActor::vtkGetNewMacro
vtkGetNewMacro(Context, vtkContext2D)
Get the vtkContext2D for the actor.
vtkContextActor::vtkContextActor
vtkContextActor()
vtkContextActor::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
We only render in the overlay for the context scene.
vtkContextActor::Initialize
virtual void Initialize(vtkViewport *viewport)
Initialize the actor - right now we just decide which device to initialize.
vtkSmartPointer< vtkContextScene >
vtkContextActor::Scene
vtkSmartPointer< vtkContextScene > Scene
Definition: vtkContextActor.h:85
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:58
vtkProp.h
vtkContextActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkContextActor::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *window)
Release any graphics resources that are being consumed by this actor.
vtkContextActor
provides a vtkProp derived object.
Definition: vtkContextActor.h:40
vtkContextScene
Provides a 2D scene for vtkContextItem objects.
Definition: vtkContextScene.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSmartPointer.h
vtkContextActor::Context3D
vtkNew< vtkContext3D > Context3D
Definition: vtkContextActor.h:87
vtkNew< vtkContext2D >
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkNew.h
vtkContextActor::~vtkContextActor
~vtkContextActor()
vtkContextActor::SetScene
void SetScene(vtkContextScene *scene)
Set the scene for the actor.
vtkContext3D
Class for drawing 3D primitives to a graphical context.
Definition: vtkContext3D.h:41
vtkContextActor::Initialized
bool Initialized
Definition: vtkContextActor.h:88
vtkContextActor::Context
vtkNew< vtkContext2D > Context
Definition: vtkContextActor.h:86