HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_WindowDrawable Class Reference

#include <RE_WindowDrawable.h>

+ Inheritance diagram for RE_WindowDrawable:

Public Member Functions

 RE_WindowDrawable (const QSurfaceFormat &format)
 
 RE_WindowDrawable (const QSurfaceFormat &format, QWidget *parent, QOpenGLContext *sharedContext)
 
 ~RE_WindowDrawable () override
 
void setREWindow (RE_Window *window)
 
const RE_WindowgetREWindow () const
 Return the window that the drawable is currently assigned to. More...
 
int samples () const
 Multisample sample count this drawable was created with (-1 if none). More...
 
RE_WindowDrawablePainterpainter ()
 Return the Painter used to paint the contents of the drawable. More...
 

Static Public Member Functions

static const char * widgetTag ()
 
static const char * drawableSurfaceTag ()
 
static const char * widgetWrapperTag ()
 

Protected Member Functions

void initializeGL () override
 
void paintGL () override
 
void resizeGL (int w, int h) override
 
void paintEvent (QPaintEvent *e) override
 
void showEvent (QShowEvent *event) override
 

Detailed Description

Window drawable. It currently uses an OpenGL backend via QOpenGLWidget.

Definition at line 282 of file RE_WindowDrawable.h.

Constructor & Destructor Documentation

RE_WindowDrawable::RE_WindowDrawable ( const QSurfaceFormat &  format)
RE_WindowDrawable::RE_WindowDrawable ( const QSurfaceFormat &  format,
QWidget *  parent,
QOpenGLContext *  sharedContext 
)
RE_WindowDrawable::~RE_WindowDrawable ( )
override

Member Function Documentation

static const char* RE_WindowDrawable::drawableSurfaceTag ( )
inlinestatic

Return the string tag used to identify whether a QWindow is used a drawable surface for Houdini.

Definition at line 305 of file RE_WindowDrawable.h.

const RE_Window* RE_WindowDrawable::getREWindow ( ) const
inline

Return the window that the drawable is currently assigned to.

Definition at line 296 of file RE_WindowDrawable.h.

void RE_WindowDrawable::initializeGL ( )
overrideprotected
RE_WindowDrawablePainter& RE_WindowDrawable::painter ( )

Return the Painter used to paint the contents of the drawable.

void RE_WindowDrawable::paintEvent ( QPaintEvent *  e)
overrideprotected
void RE_WindowDrawable::paintGL ( )
overrideprotected
void RE_WindowDrawable::resizeGL ( int  w,
int  h 
)
overrideprotected
int RE_WindowDrawable::samples ( ) const
inline

Multisample sample count this drawable was created with (-1 if none).

Definition at line 299 of file RE_WindowDrawable.h.

void RE_WindowDrawable::setREWindow ( RE_Window window)

Assign the drawable to the given window. The given drawable will be used to render the contents of the window.

void RE_WindowDrawable::showEvent ( QShowEvent *  event)
overrideprotected
static const char* RE_WindowDrawable::widgetTag ( )
inlinestatic

Definition at line 301 of file RE_WindowDrawable.h.

static const char* RE_WindowDrawable::widgetWrapperTag ( )
inlinestatic

Return the string tag used to identify whether a QWidget is the wrapper widget of a drawable in Houdini.

Definition at line 310 of file RE_WindowDrawable.h.


The documentation for this class was generated from the following file: