2D array of ids, used for picking.
2D array of ids stored in VRAM.
virtual ~vtkOpenGLContextBufferId()
virtual vtkIdType GetPickedItem(int x, int y)
Return item under abscissa x and ordinate y.
vtkOpenGLRenderWindow * Context
virtual bool IsSupported()
Returns if the context supports the required extensions.
virtual void SetContext(vtkRenderWindow *context)
Set/Get the OpenGL context owning the texture object resource.
virtual void Allocate()
Allocate the memory for at least Width*Height elements.
vtkTextureObject * Texture
virtual vtkRenderWindow * GetContext()
virtual void ReleaseGraphicsResources()
Release any graphics resources that are being consumed by this object.
static vtkOpenGLContextBufferId * New()
Creates a 2D Painter object.
virtual void SetValues(int srcXmin, int srcYmin)
Copy the contents of the current read buffer to the internal texture starting at lower left corner of...
virtual bool IsAllocated() const
Tell if the buffer has been allocated.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLContextBufferId()
abstracts an OpenGL texture object.