Qt 4.8
Static Public Functions | List of all members
RadialFetchPlain Class Reference

Static Public Functions

static void fetch (uint *buffer, uint *end, const Operator *op, const QSpanData *data, qreal det, qreal delta_det, qreal delta_delta_det, qreal b, qreal delta_b)
 

Detailed Description

Definition at line 1419 of file qdrawhelper.cpp.

Functions

◆ fetch()

static void RadialFetchPlain::fetch ( uint buffer,
uint end,
const Operator op,
const QSpanData data,
qreal  det,
qreal  delta_det,
qreal  delta_delta_det,
qreal  b,
qreal  delta_b 
)
inlinestatic

Definition at line 1422 of file qdrawhelper.cpp.

1424  {
1425  if (op->radial.extended) {
1426  while (buffer < end) {
1427  quint32 result = 0;
1428  if (det >= 0) {
1429  qreal w = qSqrt(det) - b;
1430  if (data->gradient.radial.focal.radius + op->radial.dr * w >= 0)
1431  result = qt_gradient_pixel(&data->gradient, w);
1432  }
1433 
1434  *buffer = result;
1435 
1436  det += delta_det;
1437  delta_det += delta_delta_det;
1438  b += delta_b;
1439 
1440  ++buffer;
1441  }
1442  } else {
1443  while (buffer < end) {
1444  *buffer++ = qt_gradient_pixel(&data->gradient, qSqrt(det) - b);
1445 
1446  det += delta_det;
1447  delta_det += delta_delta_det;
1448  b += delta_b;
1449  }
1450  }
1451  }
double qreal
Definition: qglobal.h:1193
static uint qt_gradient_pixel(const QGradientData *data, qreal pos)
RadialGradientValues radial
QGradientData gradient
struct QRadialGradientData::@232 focal
unsigned int quint32
Definition: qglobal.h:938
QRadialGradientData radial
static const KeyPair *const end
qreal qSqrt(qreal v)
Definition: qmath.h:205

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