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

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

#include <QtObjectFactory.hpp>

Static Public Member Functions

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

Detailed Description

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

See also
[QTDOC] for more information about QFont, QColor, QPen and QBrush.

Member Function Documentation

◆ createQFont()

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

Creates a QFont instance that corresponds to the specified font.

Parameters
fontThe Vis::Font instance.
Returns
A QFont instance equivalent to font.

◆ createQColor()

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

Creates a QColor instance that corresponds to the specified color.

Parameters
colorThe Vis::Color instance.
Returns
A QColor instance equivalent to color.

◆ createQPen()

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

Creates a QPen instance that corresponds to the specified pen.

Parameters
penThe Vis::Pen instance.
Returns
A QPen instance equivalent to pen.

◆ createQBrush()

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

Creates a QBrush instance that corresponds to the specified brush.

Parameters
brushThe Vis::Brush instance.
Returns
A QBrush instance equivalent to brush.

◆ createQPainterPath()

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

Creates a QPainterPath instance that corresponds to the specified path.

Parameters
pathThe Vis::Path2D instance.
qt_pathThe QPainterPath instance to create.
Returns
The argument qt_path.

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