15#ifndef vtkQWidgetTexture_h
16#define vtkQWidgetTexture_h
18#include "vtkGUISupportQtModule.h"
52 QGraphicsScene*
GetScene() {
return this->Scene; }
a simple class to control print indentation
Allows a QWidget to be used as a texture in VTK with OpenGL.
void Activate() override
Activate and Bind the texture.
void ReleaseGraphicsResources(vtkWindow *win) override
Free resources.
std::array< int, 2 > ImageBufferDimensions
QWidget * GetWidget()
Set/Get the QWidget that this TextureObject will render/use.
void AllocateFromWidget()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetWidget(QWidget *w)
Set/Get the QWidget that this TextureObject will render/use.
static vtkQWidgetTexture * New()
QGraphicsScene * GetScene()
get the QScene used for rendering, this is where events will be forwarded to.
std::function< void()> RedrawMethod
~vtkQWidgetTexture() override
unsigned char * ImageBuffer
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow