Chemical Data Processing Library C++ API - Version 1.1.1
Static Public Member Functions | List of all members
CDPL::Vis::QtObjectFactory Class Reference

Provides methods for the creation of QFont, QColor, QPen and QBrush objects from Font, Color, Pen and Brush instances. More...

#include <QtObjectFactory.hpp>

Static Public Member Functions

static QFont createQFont (const Font &font)
 Creates a QFont object that corresponds to the specified font. More...
 
static QColor createQColor (const Color &color)
 Creates a QColor object that corresponds to the specified color. More...
 
static QPen createQPen (const Pen &pen)
 Creates a QPen object that corresponds to the specified pen. More...
 
static QBrush createQBrush (const Brush &brush)
 Creates a QBrush object that corresponds to the specified brush. More...
 
static QPainterPath & createQPainterPath (const Path2D &path, QPainterPath &qt_path)
 Creates a QPainterPath object that corresponds to the specified path. More...
 

Detailed Description

Provides methods for the creation of QFont, QColor, QPen and QBrush objects from Font, Color, Pen and Brush instances.

For information about QFont, QColor, QPen and QBrush see [QTDOC].

Member Function Documentation

◆ createQFont()

static QFont CDPL::Vis::QtObjectFactory::createQFont ( const Font font)
static

Creates a QFont object that corresponds to the specified font.

Parameters
fontThe font object.
Returns
A QFont object equivalent to font.

◆ createQColor()

static QColor CDPL::Vis::QtObjectFactory::createQColor ( const Color color)
static

Creates a QColor object that corresponds to the specified color.

Parameters
colorThe color object.
Returns
A QColor object equivalent to color.

◆ createQPen()

static QPen CDPL::Vis::QtObjectFactory::createQPen ( const Pen pen)
static

Creates a QPen object that corresponds to the specified pen.

Parameters
penThe pen object.
Returns
A QPen object equivalent to pen.

◆ createQBrush()

static QBrush CDPL::Vis::QtObjectFactory::createQBrush ( const Brush brush)
static

Creates a QBrush object that corresponds to the specified brush.

Parameters
brushThe brush object.
Returns
A QBrush object equivalent to brush.

◆ createQPainterPath()

static QPainterPath& CDPL::Vis::QtObjectFactory::createQPainterPath ( const Path2D path,
QPainterPath &  qt_path 
)
static

Creates a QPainterPath object that corresponds to the specified path.

Parameters
pathThe path object.
qt_pathThe QPainterPath object to create.
Returns
The argument qt_path.

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