Image Component Library (ICL)
Public Types | Public Member Functions | List of all members
icl::qt::PaintEngine Class Referenceabstract

pure virtual Paint engine interface More...

#include <PaintEngine.h>

Inheritance diagram for icl::qt::PaintEngine:
icl::qt::GLPaintEngine

Public Types

enum  AlignMode { NoAlign, Centered, Justify }
 
enum  TextWeight {
  Light, Normal, DemiBold, Bold,
  Black
}
 
enum  TextStyle { StyleNormal, StyleItalic, StyleOblique }
 

Public Member Functions

virtual ~PaintEngine ()
 
virtual void color (float r, float g, float b, float a=255)=0
 
virtual void fill (float r, float g, float b, float a=255)=0
 
virtual void fontsize (float size)=0
 
virtual void font (std::string name, float size=-1, TextWeight weight=Normal, TextStyle style=StyleNormal)=0
 
virtual void linewidth (float w)=0
 
virtual void pointsize (float s)=0
 
virtual void line (const utils::Point32f &a, const utils::Point32f &b)=0
 
virtual void point (const utils::Point32f &p)=0
 
virtual void image (const utils::Rect32f &r, core::ImgBase *image, AlignMode mode=Justify, core::scalemode sm=core::interpolateNN)=0
 
virtual void image (const utils::Rect32f &r, const QImage &image, AlignMode mode=Justify, core::scalemode sm=core::interpolateNN)=0
 
virtual void rect (const utils::Rect32f &r)=0
 
virtual void triangle (const utils::Point32f &a, const utils::Point32f &b, const utils::Point32f &c)=0
 
virtual void quad (const utils::Point32f &a, const utils::Point32f &b, const utils::Point32f &c, const utils::Point32f &d)=0
 
virtual void ellipse (const utils::Rect32f &r)=0
 
virtual void text (const utils::Rect32f &r, const std::string text, AlignMode mode=Centered, float angle=0)=0
 
virtual void bci (float brightness=0, float contrast=0, float floatensity=0)=0
 brightness-constrast intensity adjustment (for images only) More...
 
virtual void bciAuto ()=0
 
virtual void getColor (float *piColor)=0
 
virtual void getFill (float *piColor)=0
 
virtual float getFontSize () const =0
 

Detailed Description

pure virtual Paint engine interface

Member Enumeration Documentation

◆ AlignMode

Enumerator
NoAlign 
Centered 
Justify 

◆ TextStyle

Enumerator
StyleNormal 
StyleItalic 
StyleOblique 

◆ TextWeight

Enumerator
Light 
Normal 
DemiBold 
Bold 
Black 

Constructor & Destructor Documentation

◆ ~PaintEngine()

virtual icl::qt::PaintEngine::~PaintEngine ( )
inlinevirtual

Member Function Documentation

◆ bci()

virtual void icl::qt::PaintEngine::bci ( float  brightness = 0,
float  contrast = 0,
float  floatensity = 0 
)
pure virtual

brightness-constrast intensity adjustment (for images only)

Implemented in icl::qt::GLPaintEngine.

◆ bciAuto()

virtual void icl::qt::PaintEngine::bciAuto ( )
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ color()

virtual void icl::qt::PaintEngine::color ( float  r,
float  g,
float  b,
float  a = 255 
)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ ellipse()

virtual void icl::qt::PaintEngine::ellipse ( const utils::Rect32f r)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ fill()

virtual void icl::qt::PaintEngine::fill ( float  r,
float  g,
float  b,
float  a = 255 
)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ font()

virtual void icl::qt::PaintEngine::font ( std::string  name,
float  size = -1,
TextWeight  weight = Normal,
TextStyle  style = StyleNormal 
)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ fontsize()

virtual void icl::qt::PaintEngine::fontsize ( float  size)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ getColor()

virtual void icl::qt::PaintEngine::getColor ( float *  piColor)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ getFill()

virtual void icl::qt::PaintEngine::getFill ( float *  piColor)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ getFontSize()

virtual float icl::qt::PaintEngine::getFontSize ( ) const
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ image() [1/2]

virtual void icl::qt::PaintEngine::image ( const utils::Rect32f r,
core::ImgBase image,
AlignMode  mode = Justify,
core::scalemode  sm = core::interpolateNN 
)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ image() [2/2]

virtual void icl::qt::PaintEngine::image ( const utils::Rect32f r,
const QImage &  image,
AlignMode  mode = Justify,
core::scalemode  sm = core::interpolateNN 
)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ line()

virtual void icl::qt::PaintEngine::line ( const utils::Point32f a,
const utils::Point32f b 
)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ linewidth()

virtual void icl::qt::PaintEngine::linewidth ( float  w)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ point()

virtual void icl::qt::PaintEngine::point ( const utils::Point32f p)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ pointsize()

virtual void icl::qt::PaintEngine::pointsize ( float  s)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ quad()

virtual void icl::qt::PaintEngine::quad ( const utils::Point32f a,
const utils::Point32f b,
const utils::Point32f c,
const utils::Point32f d 
)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ rect()

virtual void icl::qt::PaintEngine::rect ( const utils::Rect32f r)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ text()

virtual void icl::qt::PaintEngine::text ( const utils::Rect32f r,
const std::string  text,
AlignMode  mode = Centered,
float  angle = 0 
)
pure virtual

Implemented in icl::qt::GLPaintEngine.

◆ triangle()

virtual void icl::qt::PaintEngine::triangle ( const utils::Point32f a,
const utils::Point32f b,
const utils::Point32f c 
)
pure virtual

Implemented in icl::qt::GLPaintEngine.


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