KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
Macros | Functions
KDChartPieDiagram.cpp File Reference
#include <QDebug>
#include <QPainter>
#include <QStack>
#include "KDChartPieDiagram.h"
#include "KDChartPieDiagram_p.h"
#include "KDChartPaintContext.h"
#include "KDChartPainterSaver_p.h"
#include "KDChartPieAttributes.h"
#include "KDChartPolarCoordinatePlane_p.h"
#include "KDChartThreeDPieAttributes.h"
#include <KDABLibFakes>
Include dependency graph for KDChartPieDiagram.cpp:

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

◆ d

#define d   d_func()

Definition at line 37 of file KDChartPieDiagram.cpp.

Function Documentation

◆ doArcsOverlap()

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

Definition at line 689 of file KDChartPieDiagram.cpp.

References doSpansOverlap().

◆ doSpansOverlap()

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

Definition at line 680 of file KDChartPieDiagram.cpp.

Referenced by doArcsOverlap().

◆ labelAttachmentLine()

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

◆ normProjection()

static qreal normProjection ( const QLineF l1,
const QLineF l2 
)
static

Definition at line 367 of file KDChartPieDiagram.cpp.

References QLineF::dx(), QLineF::dy(), and QLineF::length().

Referenced by labelAttachmentLine().

◆ polygonFromPainterPath()

static QPolygonF polygonFromPainterPath ( const QPainterPath pp)
static

◆ wraparound()

static int wraparound ( int  i,
int  size 
)
static

Definition at line 281 of file KDChartPieDiagram.cpp.

Referenced by labelAttachmentLine().


© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Wed May 1 2024 00:01:11 for KD Chart API Documentation by doxygen 1.9.8