Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QOpenGLPaintDevice Class

The QOpenGLPaintDevice class enables painting to an OpenGL context using QPainter. More...

 #include <QOpenGLPaintDevice>

Inherits: QPaintDevice.

This class was introduced in Qt 5.0.

Public Types

enum PaintDeviceMetric { PdmWidth, PdmHeight, PdmWidthMM, PdmHeightMM, ..., PdmPhysicalDpiY }

Public Functions

QOpenGLPaintDevice(const QSize & size)
QOpenGLPaintDevice(int width, int height)
virtual ~QOpenGLPaintDevice()
virtual ~QPaintDevice()
int colorCount() const
QOpenGLContext * context() const
int depth() const
qreal dotsPerMeterX() const
qreal dotsPerMeterY() const
int height() const
int heightMM() const
int logicalDpiX() const
int logicalDpiY() const
virtual QPaintEngine * paintEngine() const = 0
bool paintFlipped() const
bool paintingActive() const
int physicalDpiX() const
int physicalDpiY() const
void setDotsPerMeterX(qreal)
void setDotsPerMeterY(qreal)
void setPaintFlipped(bool flipped)
QSize size() const
int width() const
int widthMM() const

Reimplemented Public Functions

virtual int devType() const
virtual QPaintEngine * paintEngine() const

Protected Functions

QPaintDevice()
virtual void init(QPainter * painter) const
virtual int metric(PaintDeviceMetric metric) const
virtual QPaintDevice * redirected(QPoint * offset) const
virtual QPainter * sharedPainter() const

Reimplemented Protected Functions

virtual int metric(QPaintDevice::PaintDeviceMetric metric) const

Detailed Description

The QOpenGLPaintDevice class enables painting to an OpenGL context using QPainter.

When painting to a QOpenGLPaintDevice using QPainter, the state of the current OpenGL context will be altered by the paint engine to reflect its needs. Applications should not rely upon the OpenGL state being reset to its original conditions, particularly the current shader program, OpenGL viewport, texture units, and drawing modes.

Member Function Documentation

QOpenGLPaintDevice::QOpenGLPaintDevice(const QSize & size)

Constructs a QOpenGLPaintDevice with the given size.

The QOpenGLPaintDevice is only valid for the current context.

See also QOpenGLContext::currentContext().

QOpenGLPaintDevice::QOpenGLPaintDevice(int width, int height)

Constructs a QOpenGLPaintDevice with the given size and ctx.

The QOpenGLPaintDevice is only valid for the current context.

See also QOpenGLContext::currentContext().

QOpenGLPaintDevice::~QOpenGLPaintDevice() [virtual]

QOpenGLContext * QOpenGLPaintDevice::context() const

int QOpenGLPaintDevice::devType() const [virtual]

qreal QOpenGLPaintDevice::dotsPerMeterX() const

See also setDotsPerMeterX().

qreal QOpenGLPaintDevice::dotsPerMeterY() const

See also setDotsPerMeterY().

int QOpenGLPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const [virtual protected]

QPaintEngine * QOpenGLPaintDevice::paintEngine() const [virtual]

bool QOpenGLPaintDevice::paintFlipped() const

See also setPaintFlipped().

void QOpenGLPaintDevice::setDotsPerMeterX(qreal)

See also dotsPerMeterX().

void QOpenGLPaintDevice::setDotsPerMeterY(qreal)

See also dotsPerMeterY().

void QOpenGLPaintDevice::setPaintFlipped(bool flipped)

Specifies whether painting should be flipped around the Y-axis or not.

See also paintFlipped().

QSize QOpenGLPaintDevice::size() const

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web