/usr/include/vtk-7.1/vtkOpenGLContextBufferId.h is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLContextBufferId.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkOpenGLContextBufferId
* @brief 2D array of ids stored in VRAM.
*
*
* An 2D array where each element is the id of an entity drawn at the given
* pixel.
*/
#ifndef vtkOpenGLContextBufferId_h
#define vtkOpenGLContextBufferId_h
#include "vtkRenderingContextOpenGL2Module.h" // For export macro
#include "vtkAbstractContextBufferId.h"
class vtkTextureObject;
class vtkOpenGLRenderWindow;
class VTKRENDERINGCONTEXTOPENGL2_EXPORT vtkOpenGLContextBufferId : public vtkAbstractContextBufferId
{
public:
vtkTypeMacro(vtkOpenGLContextBufferId, vtkAbstractContextBufferId);
virtual void PrintSelf(ostream &os, vtkIndent indent);
/**
* Creates a 2D Painter object.
*/
static vtkOpenGLContextBufferId *New();
/**
* Release any graphics resources that are being consumed by this object.
*/
virtual void ReleaseGraphicsResources();
//@{
/**
* Set/Get the OpenGL context owning the texture object resource.
*/
virtual void SetContext(vtkRenderWindow *context);
virtual vtkRenderWindow *GetContext();
//@}
/**
* Returns if the context supports the required extensions.
* \pre context_is_set: this->GetContext()!=0
*/
virtual bool IsSupported();
/**
* Allocate the memory for at least Width*Height elements.
* \pre positive_width: GetWidth()>0
* \pre positive_height: GetHeight()>0
* \pre context_is_set: this->GetContext()!=0
*/
virtual void Allocate();
/**
* Tell if the buffer has been allocated.
*/
virtual bool IsAllocated() const;
/**
* Copy the contents of the current read buffer to the internal texture
* starting at lower left corner of the framebuffer (srcXmin,srcYmin).
* \pre is_allocated: this->IsAllocated()
*/
virtual void SetValues(int srcXmin,
int srcYmin);
/**
* Return item under abscissa x and ordinate y.
* Abscissa go from left to right.
* Ordinate go from bottom to top.
* The return value is -1 if there is no item.
* \pre is_allocated: IsAllocated()
* \post valid_result: result>=-1
*/
virtual vtkIdType GetPickedItem(int x, int y);
protected:
vtkOpenGLContextBufferId();
virtual ~vtkOpenGLContextBufferId();
vtkOpenGLRenderWindow *Context;
vtkTextureObject *Texture;
private:
vtkOpenGLContextBufferId(const vtkOpenGLContextBufferId &) VTK_DELETE_FUNCTION;
void operator=(const vtkOpenGLContextBufferId &) VTK_DELETE_FUNCTION;
};
#endif // #ifndef vtkOpenGLContextBufferId_h
|