#include "pathdeform.h"
#include <QApplication>
#include <QtDebug>
#include <QMouseEvent>
#include <QTimerEvent>
#include <QLayout>
#include <QLineEdit>
#include <QPainter>
#include <QSlider>
#include <math.h>
Include dependency graph for pathdeform.cpp:

Go to the source code of this file.
Functions | |
| static QRect | circle_bounds (const QPointF ¢er, double radius, double compensation) |
Variables | |
| const int | LENS_EXTENT = 10 |
| static QRect circle_bounds | ( | const QPointF & | center, | |
| double | radius, | |||
| double | compensation | |||
| ) | [inline, static] |
Definition at line 150 of file pathdeform.cpp.
References QTextStream::center(), and qRound().
Referenced by PathDeformRenderer::generateLensPixmap(), PathDeformRenderer::mouseMoveEvent(), PathDeformRenderer::setIntensity(), PathDeformRenderer::setRadius(), and PathDeformRenderer::timerEvent().
00151 { 00152 return QRect(qRound(center.x() - radius - compensation), 00153 qRound(center.y() - radius - compensation), 00154 qRound((radius + compensation) * 2), 00155 qRound((radius + compensation) * 2)); 00156 00157 }
Here is the call graph for this function:

| const int LENS_EXTENT = 10 |
Definition at line 159 of file pathdeform.cpp.
Referenced by PathDeformRenderer::generateLensPixmap(), and PathDeformRenderer::paint().
1.5.1