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 
28 
29 class vtkTextureObject;
30 class vtkOpenGLRenderWindow;
31 
33 {
34 public:
36  virtual void PrintSelf(ostream &os, vtkIndent indent);
37 
39  static vtkOpenGLContextBufferId *New();
40 
43  virtual void ReleaseGraphicsResources();
44 
46 
47  void SetContext(vtkOpenGLRenderWindow *context);
48  vtkOpenGLRenderWindow *GetContext();
50 
53  bool IsSupported();
54 
58  virtual void Allocate();
59 
61  virtual bool IsAllocated() const;
62 
64 
67  virtual void SetValues(int srcXmin,
68  int srcYmin);
70 
75  virtual vtkIdType GetPickedItem(int x, int y);
76 
77 protected:
79  virtual ~vtkOpenGLContextBufferId();
80 
81  vtkOpenGLRenderWindow *Context;
82  vtkTextureObject *Texture;
83 
84 private:
85  vtkOpenGLContextBufferId(const vtkOpenGLContextBufferId &); // Not implemented.
86  void operator=(const vtkOpenGLContextBufferId &); // Not implemented.
87 };
88 
89 #endif // #ifndef __vtkOpenGLContextBufferId_h
#define VTK_CHARTS_EXPORT
virtual vtkIdType GetPickedItem(int x, int y)=0
2D array of ids stored in VRAM.
int vtkIdType
Definition: vtkType.h:255
virtual void Allocate()=0
vtkOpenGLRenderWindow * Context
virtual void ReleaseGraphicsResources()
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void SetValues(int srcXmin, int srcYmin)=0
2D array of ids, used for picking.
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual bool IsAllocated() const =0
static vtkObject * New()