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