Paint engine to be used in QGLWigets for a high performance image visualization.
More...
|
| GLPaintEngine (QGLWidget *widget) |
|
virtual | ~GLPaintEngine () |
|
virtual void | color (float r, float g, float b, float a=255) |
|
virtual void | fill (float r, float g, float b, float a=255) |
|
virtual void | fontsize (float size) |
|
virtual void | font (std::string name, float size=-1, PaintEngine::TextWeight weight=PaintEngine::Normal, PaintEngine::TextStyle style=PaintEngine::StyleNormal) |
|
virtual void | linewidth (float w) |
|
virtual void | pointsize (float s) |
|
virtual void | line (const utils::Point32f &a, const utils::Point32f &b) |
|
virtual void | point (const utils::Point32f &p) |
|
virtual void | image (const utils::Rect32f &r, core::ImgBase *image, PaintEngine::AlignMode mode=PaintEngine::Justify, core::scalemode sm=core::interpolateNN) |
|
virtual void | image (const utils::Rect32f &r, const QImage &image, PaintEngine::AlignMode mode=PaintEngine::Justify, core::scalemode sm=core::interpolateNN) |
|
virtual void | rect (const utils::Rect32f &r) |
|
virtual void | triangle (const utils::Point32f &a, const utils::Point32f &b, const utils::Point32f &c) |
|
virtual void | quad (const utils::Point32f &a, const utils::Point32f &b, const utils::Point32f &c, const utils::Point32f &d) |
|
virtual void | ellipse (const utils::Rect32f &r) |
|
virtual void | text (const utils::Rect32f &r, const std::string text, PaintEngine::AlignMode mode=PaintEngine::Centered, float angle=0) |
|
virtual void | bci (float brightness=0, float contrast=0, float intensity=0) |
| brightness-constrast intensity adjustment (for images only) More...
|
|
virtual void | bciAuto () |
|
virtual void | getColor (float *piColor) |
|
virtual void | getFill (float *piColor) |
|
virtual float | getFontSize () const |
|
virtual float | getLineWidth () const |
|
virtual float | getPointSize () const |
|
virtual icl::utils::Size | getSize () |
|
utils::Size | estimateTextBounds (const std::string &text) const |
|
virtual | ~PaintEngine () |
|
Paint engine to be used in QGLWigets for a high performance image visualization.
The GLPaintEngine provides a QPainter like interface for drawing 2D-OpenGL primitives directly into a OpenGL graphics context. It provides the following functionalities:
- line and fill color state machniene
- antialized Font rendering with implicit scaling if desired
- drawing primitives using pixel coordinates (lines, points, rects, ellipese)
- drawing QImages and ICL-img images directly without buffering, flipping or converting image data in software.
- brightness / (contrast / intestity) adjustment (in hardware)
- See also
- ICL/trunk/ICLQt/test/ICLDrawDemo for more details