VTK
vtkOpenGLContextBufferId.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLContextBufferId.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 =========================================================================*/
15 
24 #ifndef vtkOpenGLContextBufferId_h
25 #define vtkOpenGLContextBufferId_h
26 
27 #include "vtkRenderingContextOpenGLModule.h" // For export macro
29 
30 class vtkTextureObject;
32 
34 {
35 public:
37  virtual void PrintSelf(ostream &os, vtkIndent indent);
38 
40  static vtkOpenGLContextBufferId *New();
41 
44  virtual void ReleaseGraphicsResources();
45 
47 
48  virtual void SetContext(vtkRenderWindow *context);
49  virtual vtkRenderWindow *GetContext();
51 
54  virtual bool IsSupported();
55 
59  virtual void Allocate();
60 
62  virtual bool IsAllocated() const;
63 
65 
68  virtual void SetValues(int srcXmin,
69  int srcYmin);
71 
76  virtual vtkIdType GetPickedItem(int x, int y);
77 
78 protected:
80  virtual ~vtkOpenGLContextBufferId();
81 
84 
85 private:
86  vtkOpenGLContextBufferId(const vtkOpenGLContextBufferId &); // Not implemented.
87  void operator=(const vtkOpenGLContextBufferId &); // Not implemented.
88 };
89 
90 #endif // #ifndef vtkOpenGLContextBufferId_h
OpenGL rendering window.
virtual vtkIdType GetPickedItem(int x, int y)=0
virtual void SetContext(vtkRenderWindow *context)=0
2D array of ids stored in VRAM.
vtkOpenGLRenderWindow * Context
int vtkIdType
Definition: vtkType.h:275
virtual void Allocate()=0
static vtkAbstractContextBufferId * New()
#define VTKRENDERINGCONTEXTOPENGL_EXPORT
virtual void ReleaseGraphicsResources()
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void SetValues(int srcXmin, int srcYmin)=0
2D array of ids, used for picking.
abstracts an OpenGL texture object.
create a window for renderers to draw into
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual bool IsAllocated() const =0
virtual bool IsSupported()=0
virtual vtkRenderWindow * GetContext()=0