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

#include <RE_WindowDrawable.h>

+ Inheritance diagram for RE_WindowDrawablePainter:

Classes

class  PaintSessionPassKey
 

Public Member Functions

 RE_WindowDrawablePainter ()
 
 ~RE_WindowDrawablePainter ()
 
void beginPaintSession (const PaintSessionPassKey &k, RE_WindowDrawable *drawable, RE_QPainterDrawable *qpainter_drawable, RE_Render *render)
 
void endPaintSession (const PaintSessionPassKey &k)
 
void beginOpenGLPainting (const PaintSessionPassKey &k)
 
void endOpenGLPainting (const PaintSessionPassKey &k)
 
bool isOpenGLPainting () const
 
RE_RendercurrentRender () const
 
RE_WindowDrawablecurrentDrawable () const
 
void dumpState () const
 For debugging. Output the painter's state. More...
 

Static Public Member Functions

static
RE_WindowDrawablePaintState
currentPaintState ()
 

Detailed Description

Specialized style painter class for RE_WindowDrawable. The class manages transitioning between native Houdini (OpenGL) painting and Qt styled painting in the window drawable.

Definition at line 57 of file RE_WindowDrawable.h.

Constructor & Destructor Documentation

RE_WindowDrawablePainter::RE_WindowDrawablePainter ( )
RE_WindowDrawablePainter::~RE_WindowDrawablePainter ( )

Member Function Documentation

void RE_WindowDrawablePainter::beginOpenGLPainting ( const PaintSessionPassKey k)

Switch to OpenGL painting mode. This should only be called when currently in a paint session.

void RE_WindowDrawablePainter::beginPaintSession ( const PaintSessionPassKey k,
RE_WindowDrawable drawable,
RE_QPainterDrawable qpainter_drawable,
RE_Render render 
)

Begin a new paint session. This should only be called when not currently in a paint session.

RE_WindowDrawable* RE_WindowDrawablePainter::currentDrawable ( ) const
inline

Definition at line 106 of file RE_WindowDrawable.h.

static RE_WindowDrawablePaintState* RE_WindowDrawablePainter::currentPaintState ( )
static

Return the paint state of the current paint session. Return nullptr if there is currently no paint session.

RE_Render* RE_WindowDrawablePainter::currentRender ( ) const
inline

Definition at line 105 of file RE_WindowDrawable.h.

void RE_WindowDrawablePainter::dumpState ( ) const

For debugging. Output the painter's state.

void RE_WindowDrawablePainter::endOpenGLPainting ( const PaintSessionPassKey k)

Switch to Qt styled painting mode. This should only be called when currently in a paint session.

void RE_WindowDrawablePainter::endPaintSession ( const PaintSessionPassKey k)

End the current paint session. This should only be called when currently in a paint session.

bool RE_WindowDrawablePainter::isOpenGLPainting ( ) const

Query whether in OpenGL painting mode. This should only be called when currently in a paint session.


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