Qt 4.8
Public Functions | Properties | List of all members
QGLBlurTextureInfo Class Reference

Public Functions

QImage paddedImage (int scaleLevel=0) const
 
 QGLBlurTextureInfo (const QImage &image, GLuint tex, qreal r)
 
qreal radius () const
 
GLuint texture () const
 
 ~QGLBlurTextureInfo ()
 

Properties

QList< QImagem_paddedImage
 
qreal m_radius
 
GLuint m_texture
 

Detailed Description

Definition at line 280 of file qglpixmapfilter.cpp.

Constructors and Destructors

◆ QGLBlurTextureInfo()

QGLBlurTextureInfo::QGLBlurTextureInfo ( const QImage image,
GLuint  tex,
qreal  r 
)
inline

Definition at line 283 of file qglpixmapfilter.cpp.

284  : m_texture(tex)
285  , m_radius(r)
286  {
287  m_paddedImage << image;
288  }
QList< QImage > m_paddedImage

◆ ~QGLBlurTextureInfo()

QGLBlurTextureInfo::~QGLBlurTextureInfo ( )
inline

Definition at line 290 of file qglpixmapfilter.cpp.

291  {
292  glDeleteTextures(1, &m_texture);
293  }

Functions

◆ paddedImage()

QImage QGLBlurTextureInfo::paddedImage ( int  scaleLevel = 0) const

Definition at line 305 of file qglpixmapfilter.cpp.

Referenced by QGLPixmapBlurFilter::processGL(), and QGLPixmapDropShadowFilter::processGL().

306 {
307  for (int i = m_paddedImage.size() - 1; i <= scaleLevel; ++i)
309 
310  return m_paddedImage.at(scaleLevel);
311 }
QList< QImage > m_paddedImage
Q_GUI_EXPORT QImage qt_halfScaled(const QImage &source)
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
int size() const
Returns the number of items in the list.
Definition: qlist.h:137

◆ radius()

qreal QGLBlurTextureInfo::radius ( ) const
inline

◆ texture()

GLuint QGLBlurTextureInfo::texture ( ) const
inline

Properties

◆ m_paddedImage

QList<QImage> QGLBlurTextureInfo::m_paddedImage
mutableprivate

Definition at line 300 of file qglpixmapfilter.cpp.

◆ m_radius

qreal QGLBlurTextureInfo::m_radius
private

Definition at line 302 of file qglpixmapfilter.cpp.

◆ m_texture

GLuint QGLBlurTextureInfo::m_texture
private

Definition at line 301 of file qglpixmapfilter.cpp.


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