demos/deform/pathdeform.cpp File Reference

#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 &center, double radius, double compensation)

Variables

const int LENS_EXTENT = 10


Function Documentation

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:


Variable Documentation

const int LENS_EXTENT = 10

Definition at line 159 of file pathdeform.cpp.

Referenced by PathDeformRenderer::generateLensPixmap(), and PathDeformRenderer::paint().


Generated on Thu Mar 15 12:04:03 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1