#include <VP1QtUtils.h>
Definition at line 24 of file VP1QtUtils.h.
◆ VP1QtUtils()
VP1QtUtils::VP1QtUtils |
( |
| ) |
|
|
private |
◆ ~VP1QtUtils()
VP1QtUtils::~VP1QtUtils |
( |
| ) |
|
|
private |
◆ environmentVariableIsOn()
bool VP1QtUtils::environmentVariableIsOn |
( |
const QString & |
name | ) |
|
|
static |
◆ environmentVariableIsSet()
bool VP1QtUtils::environmentVariableIsSet |
( |
const QString & |
name | ) |
|
|
static |
◆ environmentVariableValue()
QString VP1QtUtils::environmentVariableValue |
( |
const QString & |
name | ) |
|
|
static |
◆ expertSettingIsOn()
bool VP1QtUtils::expertSettingIsOn |
( |
const QString & |
type, |
|
|
const QString & |
name |
|
) |
| |
|
static |
Definition at line 60 of file VP1QtUtils.cxx.
64 QSettings generalSettings(
"ATLAS",
"VP1Light");
65 env = generalSettings.value(
name).toString();
67 QSettings expertSettings(QCoreApplication::applicationDirPath()+
"/../vp1.ini", QSettings::NativeFormat);
68 env = expertSettings.value(
name).toString();
◆ expertSettingIsSet()
bool VP1QtUtils::expertSettingIsSet |
( |
const QString & |
type, |
|
|
const QString & |
name |
|
) |
| |
|
static |
Definition at line 27 of file VP1QtUtils.cxx.
31 QSettings generalSettings(
"ATLAS",
"VP1Light");
32 set = !generalSettings.value(
name).toString().isEmpty();
34 QSettings expertSettings(QCoreApplication::applicationDirPath()+
"/../vp1.ini", QSettings::NativeFormat);
35 set = !expertSettings.value(
name).toString().isEmpty();
◆ expertSettingValue()
QString VP1QtUtils::expertSettingValue |
( |
const QString & |
type, |
|
|
const QString & |
name |
|
) |
| |
|
static |
Definition at line 43 of file VP1QtUtils.cxx.
47 QSettings generalSettings(
"ATLAS",
"VP1Light");
48 env = generalSettings.value(
name).toString();
50 QSettings expertSettings(QCoreApplication::applicationDirPath()+
"/../vp1.ini", QSettings::NativeFormat);
51 env = expertSettings.value(
name).toString();
◆ fadeImage()
QImage VP1QtUtils::fadeImage |
( |
QImage |
img0, |
|
|
QImage |
img1, |
|
|
double |
fadefact |
|
) |
| |
|
static |
Definition at line 176 of file VP1QtUtils.cxx.
177 if (fadefact<0.0||fadefact>1.0||img0.isNull()||img1.isNull()||img0.width()!=img1.width()||img0.height()!=img1.height())
184 double oneminusfadefact(1.0-fadefact);
185 const int w(img.width()),
h(img.height());
186 for (
int iw = 0; iw<
w; ++iw)
187 for (
int ih = 0; ih<
h; ++ih) {
188 QColor col0(img0.pixel(iw,ih));
189 QColor col1(img1.pixel(iw,ih));
190 img.setPixel ( iw,ih,QColor::fromRgbF(col0.redF()*oneminusfadefact + col1.redF()*fadefact,
191 col0.greenF()*oneminusfadefact + col1.greenF()*fadefact,
192 col0.blueF()*oneminusfadefact + col1.blueF()*fadefact).rgb() );
◆ setEnvironmentVariable()
void VP1QtUtils::setEnvironmentVariable |
( |
const QString & |
name, |
|
|
const QString & |
content |
|
) |
| |
|
static |
◆ setExpertSetting()
void VP1QtUtils::setExpertSetting |
( |
const QString & |
type, |
|
|
const QString & |
name, |
|
|
const QString & |
content |
|
) |
| |
|
static |
Definition at line 86 of file VP1QtUtils.cxx.
89 VP1Msg::messageDebug(
"VP1QtUtils::setEnvironmentVariable WARNING: called with empty variable name!");
97 QSettings generalSettings(
"ATLAS",
"VP1Light");
100 QSettings expertSettings(QCoreApplication::applicationDirPath()+
"/../vp1.ini", QSettings::NativeFormat);
◆ unsetEnvironmentVariable()
void VP1QtUtils::unsetEnvironmentVariable |
( |
const QString & |
name | ) |
|
|
static |
The documentation for this class was generated from the following files:
std::pair< int, int > compare(const AmgSymMatrix(N) &m1, const AmgSymMatrix(N) &m2, double precision=1e-9, bool relative=false)
compare two matrices, returns the indices of the first element that fails the condition,...
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.