diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-04-12 07:44:19 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-04-12 10:27:11 +0300 |
commit | 624666518e9e2d5628ab042f30e70ca747fb4da7 (patch) | |
tree | 9f96a208a1cf47032428be1f79e71e52e7a3643c /src/datavis3d/utils/utils_p.h | |
parent | 67937ecf379b3fc04e58cd94d4bf31356c5f4b16 (diff) |
Implemented label printing using opengl (QPainter version ifdeffed, either one can be used)
Change-Id: Id7d6761b0ad447c7f4f18f0933d065f190ad82b6
Change-Id: Id7d6761b0ad447c7f4f18f0933d065f190ad82b6
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavis3d/utils/utils_p.h')
-rw-r--r-- | src/datavis3d/utils/utils_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/datavis3d/utils/utils_p.h b/src/datavis3d/utils/utils_p.h index 9752066e..028cd716 100644 --- a/src/datavis3d/utils/utils_p.h +++ b/src/datavis3d/utils/utils_p.h @@ -49,6 +49,7 @@ class QColor; class QPainter; class QString; class QPoint; +class QImage; QTCOMMERCIALDATAVIS3D_BEGIN_NAMESPACE @@ -58,6 +59,8 @@ public: static QVector3D vectorFromColor(const QColor &color); static void printText(QPainter *painter, const QString &text, const QPoint &position , bool absoluteCoords = true, qreal rotation = 0, qreal scale = 1.0f); + static QImage printTextToImage(const QString &text, const QColor &bgrColor + , const QColor &txtColor, bool noBackground = false); }; QTCOMMERCIALDATAVIS3D_END_NAMESPACE |