VTK
vtkOpenGLContextActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLContextActor.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 =========================================================================*/
24 #ifndef vtkOpenGLContextActor_h
25 #define vtkOpenGLContextActor_h
26 
27 #include "vtkRenderingContextOpenGL2Module.h" // For export macro
28 #include "vtkContextActor.h"
29 
30 class VTKRENDERINGCONTEXTOPENGL2_EXPORT vtkOpenGLContextActor : public vtkContextActor
31 {
32 public:
33  void PrintSelf(ostream& os, vtkIndent indent);
35 
37 
43  virtual void ReleaseGraphicsResources(vtkWindow *window);
44 
48  virtual int RenderOverlay(vtkViewport *viewport);
49 
50 protected:
53 
57  void Initialize(vtkViewport* viewport);
58 
59 private:
60  vtkOpenGLContextActor(const vtkOpenGLContextActor&) VTK_DELETE_FUNCTION;
61  void operator=(const vtkOpenGLContextActor&) VTK_DELETE_FUNCTION;
62 };
63 
64 #endif
vtkContextActor.h
vtkOpenGLContextActor::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
We only render in the overlay for the context scene.
vtkOpenGLContextActor::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *window)
Release any graphics resources that are being consumed by this actor.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkContextActor
provides a vtkProp derived object.
Definition: vtkContextActor.h:40
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkOpenGLContextActor::~vtkOpenGLContextActor
~vtkOpenGLContextActor()
vtkOpenGLContextActor
provides a vtkProp derived object.
Definition: vtkOpenGLContextActor.h:31
vtkOpenGLContextActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLContextActor::Initialize
void Initialize(vtkViewport *viewport)
Initialize the actor - right now we just decide which device to initialize.
vtkOpenGLContextActor::New
static vtkOpenGLContextActor * New()
vtkOpenGLContextActor::vtkOpenGLContextActor
vtkOpenGLContextActor()