Version: 9.12.0
QtxRubberBand.cxx File Reference
#include "QtxRubberBand.h"
#include <QBitmap>
#include <QImage>
#include <QPaintEvent>
#include <QPainter>
#include <QPalette>
#include <QShowEvent>
#include <QVectorIterator>
#include <math.h>

Functions

QRegion createRegion (const QPointF &p1, const QPointF &p2)
 
QPoint rotatePoint (const QPoint &theStart, const QPoint &theCenter, double theAngle)
 

Variables

static double m_pi = 4 * atan(1)
 
static double angle_deg = 360. / 30
 
static double angle_rad = angle_deg * (m_pi / 180.)
 

Function Documentation

◆ createRegion()

QRegion createRegion ( const QPointF &  p1,
const QPointF &  p2 
)

◆ rotatePoint()

QPoint rotatePoint ( const QPoint &  theStart,
const QPoint &  theCenter,
double  theAngle 
)

Variable Documentation

◆ angle_deg

double angle_deg = 360. / 30
static

◆ angle_rad

double angle_rad = angle_deg * (m_pi / 180.)
static

◆ m_pi

double m_pi = 4 * atan(1)
static