FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
occ::QtUtils Class Reference

#include <qt_utils.h>

Static Public Member Functions

static QColor toQColor (const Quantity_Color &c)
 Conversion of the Quantity_Color c to a QColor. More...
 
static QColor toQColor (const Quantity_NameOfColor c)
 Conversion of the Quantity_NameOfColor c to a QColor. More...
 
static Quantity_Color toOccColor (const QColor &c)
 Conversion of the QColor c to a Quantity_Color. More...
 
static Quantity_NameOfColor toOccNameOfColor (const QColor &c)
 Conversion of the QColor object c to a Quantity_NameOfColor. More...
 
static TCollection_AsciiString toOccLatin1String (const QString &str)
 
static TCollection_AsciiString toOccLocal8BitString (const QString &str)
 
static TCollection_AsciiString toOccUtf8String (const QString &str)
 
static Standard_ExtString toOccExtString (const QString &str)
 Conversion of the QString str to an OCC ExtString. More...
 
static TCollection_ExtendedString toOccExtendedString (const QString &str)
 Conversion of the QString str to an OCC TCollection_ExtendedString. More...
 
static QString fromLatin1ToQString (const TCollection_AsciiString &str)
 
static QString fromLocal8BitToQString (const TCollection_AsciiString &str)
 
static QString fromUtf8ToQString (const TCollection_AsciiString &str)
 
static QString toQString (Standard_ExtString unicodeStr, int size=-1)
 Conversion of the OCC Standard_ExtString str to a QString. More...
 
static QString toQString (const TCollection_ExtendedString &str)
 Conversion of the OCC TCollection_ExtendedString str to a QString. More...
 
template<typename OCC_PNT_VEC >
static QString toQString (const OCC_PNT_VEC &pv, const QString &format=QLatin1String("(%x, %y, %z)"), char realFormat= 'g', unsigned prec=6)
 

Member Function Documentation

QString occ::QtUtils::fromLatin1ToQString ( const TCollection_AsciiString &  str)
static

Conversion of the TCollection_AsciiString str to a QString. str is assumed to contain latin1 characters

QString occ::QtUtils::fromLocal8BitToQString ( const TCollection_AsciiString &  str)
static

Conversion of the TCollection_AsciiString str to a QString. str is assumed to contain local8bit characters

QString occ::QtUtils::fromUtf8ToQString ( const TCollection_AsciiString &  str)
static

Conversion of the TCollection_AsciiString str to a QString. str is assumed to contain utf8 characters

Quantity_Color occ::QtUtils::toOccColor ( const QColor &  c)
static

Conversion of the QColor c to a Quantity_Color.

TCollection_ExtendedString occ::QtUtils::toOccExtendedString ( const QString &  str)
static

Conversion of the QString str to an OCC TCollection_ExtendedString.

Standard_ExtString occ::QtUtils::toOccExtString ( const QString &  str)
static

Conversion of the QString str to an OCC ExtString.

TCollection_AsciiString occ::QtUtils::toOccLatin1String ( const QString &  str)
static

Conversion of the QString str to an OCC TCollection_AsciiString containing the latin1 representation of str

TCollection_AsciiString occ::QtUtils::toOccLocal8BitString ( const QString &  str)
static

Conversion of the QString str to an OCC TCollection_AsciiString containing the local8bit representation of str

Quantity_NameOfColor occ::QtUtils::toOccNameOfColor ( const QColor &  c)
static

Conversion of the QColor object c to a Quantity_NameOfColor.

TCollection_AsciiString occ::QtUtils::toOccUtf8String ( const QString &  str)
static

Conversion of the QString str to an OCC TCollection_AsciiString containing the utf8 representation of str

QColor occ::QtUtils::toQColor ( const Quantity_Color &  c)
static

Conversion of the Quantity_Color c to a QColor.

QColor occ::QtUtils::toQColor ( const Quantity_NameOfColor  c)
static

Conversion of the Quantity_NameOfColor c to a QColor.

QString occ::QtUtils::toQString ( Standard_ExtString  unicodeStr,
int  size = -1 
)
static

Conversion of the OCC Standard_ExtString str to a QString.

Parameters
unicodeStrContains unicode(utf16) characters
sizeLength of str (count of characters). If -1 then str must be terminated with a 0
QString occ::QtUtils::toQString ( const TCollection_ExtendedString &  str)
static

Conversion of the OCC TCollection_ExtendedString str to a QString.

template<typename OCC_PNT_VEC >
QString occ::QtUtils::toQString ( const OCC_PNT_VEC &  pv,
const QString &  format = QLatin1String("(%x, %y, %z)"),
char  realFormat = 'g',
unsigned  prec = 6 
)
static

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