KDChartPieDiagram.cpp File Reference

#include <QDebug>
#include <QPainter>
#include <QStack>
#include "KDChartAttributesModel.h"
#include "KDChartPaintContext.h"
#include "KDChartPieDiagram.h"
#include "KDChartPieDiagram_p.h"
#include "KDChartPieAttributes.h"
#include "KDChartThreeDPieAttributes.h"
#include "KDChartPainterSaver_p.h"
#include "KDChartDataValueAttributes.h"
#include <KDABLibFakes>

Include dependency graph for KDChartPieDiagram.cpp:

Go to the source code of this file.

Defines

#define d   d_func()

Functions

static QRectF buildReferenceRect (const PolarCoordinatePlane *plane)


Define Documentation

#define d   d_func()

Definition at line 50 of file KDChartPieDiagram.cpp.


Function Documentation

static QRectF buildReferenceRect ( const PolarCoordinatePlane plane  )  [static]

Definition at line 116 of file KDChartPieDiagram.cpp.

References KDChart::PolarCoordinatePlane::translate().

Referenced by KDChart::PieDiagram::paint().

00117 {
00118     QRectF contentsRect;
00119 //qDebug() << "..........................................";
00120     QPointF referencePointAtTop = plane->translate( QPointF( 1, 0 ) );
00121     QPointF temp = plane->translate( QPointF( 0, 0 ) ) - referencePointAtTop;
00122     const double offset = temp.y();
00123     referencePointAtTop.setX( referencePointAtTop.x() - offset );
00124     contentsRect.setTopLeft( referencePointAtTop );
00125     contentsRect.setBottomRight( referencePointAtTop + QPointF( 2*offset, 2*offset) );
00126 //qDebug() << contentsRect;
00127     return contentsRect;
00128 }


Generated on Mon Sep 17 16:17:33 2007 for KD Chart 2 by  doxygen 1.5.1