KD Chart 2  [rev.2.5]
Defines | Functions
KDChartPieDiagram.cpp File Reference
#include <QDebug>
#include <QPainter>
#include <QStack>
#include "KDChartPieDiagram.h"
#include "KDChartPieDiagram_p.h"
#include "KDChartAttributesModel.h"
#include "KDChartPaintContext.h"
#include "KDChartPieAttributes.h"
#include "KDChartPolarCoordinatePlane_p.h"
#include "KDChartThreeDPieAttributes.h"
#include "KDChartPainterSaver_p.h"
#include "KDChartDataValueAttributes.h"
#include <KDABLibFakes>

Go to the source code of this file.

Defines

#define d   d_func()

Functions

static bool doArcsOverlap (qreal a1Start, qreal a1End, qreal a2Start, qreal a2End)
static bool doSpansOverlap (qreal s1Start, qreal s1End, qreal s2Start, qreal s2End)
static QLineF labelAttachmentLine (const QPointF &center, const QPointF &start, const QPainterPath &label)
static qreal normProjection (const QLineF &l1, const QLineF &l2)
static QPolygonF polygonFromPainterPath (const QPainterPath &pp)
static int wraparound (int i, int size)

Define Documentation

#define d   d_func()

Function Documentation

static bool doArcsOverlap ( qreal  a1Start,
qreal  a1End,
qreal  a2Start,
qreal  a2End 
) [static]

Definition at line 703 of file KDChartPieDiagram.cpp.

References doSpansOverlap().

static bool doSpansOverlap ( qreal  s1Start,
qreal  s1End,
qreal  s2Start,
qreal  s2End 
) [static]

Definition at line 694 of file KDChartPieDiagram.cpp.

Referenced by doArcsOverlap().

static QLineF labelAttachmentLine ( const QPointF &  center,
const QPointF &  start,
const QPainterPath &  label 
) [static]

Definition at line 387 of file KDChartPieDiagram.cpp.

References normProjection(), and wraparound().

static qreal normProjection ( const QLineF &  l1,
const QLineF &  l2 
) [static]

Definition at line 381 of file KDChartPieDiagram.cpp.

Referenced by labelAttachmentLine().

static QPolygonF polygonFromPainterPath ( const QPainterPath &  pp) [static]

Definition at line 369 of file KDChartPieDiagram.cpp.

static int wraparound ( int  i,
int  size 
) [static]

Definition at line 295 of file KDChartPieDiagram.cpp.

Referenced by labelAttachmentLine().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-chart/