KDChartTextLabelCache.cpp File Reference

#include "KDChartTextLabelCache.h"
#include <cmath>
#include <QtDebug>
#include <QImage>
#include <QPixmap>
#include <QPainter>
#include <QApplication>

Include dependency graph for KDChartTextLabelCache.cpp:

Go to the source code of this file.

Defines

#define DUMP_CACHE_STATS
#define INC_HIT_COUNT   { ++HitCount; }
#define INC_MISS_COUNT   { ++MissCount; }

Variables

int HitCount = 0
int MissCount = 0


Define Documentation

#define DUMP_CACHE_STATS

Value:

if ( HitCount != 0 && MissCount != 0 ) { \
        int total = HitCount + MissCount; \
        double hitQuote = ( 1.0 * HitCount ) / total; \
        qDebug() << "PrerenderedLabel dtor: hits/misses/total:" \
        << HitCount << "/" << MissCount << "/" << total \
                 << "(" << 100 * hitQuote << "% hits)"; \
    }

Definition at line 45 of file KDChartTextLabelCache.cpp.

Referenced by PrerenderedLabel::~PrerenderedLabel().

#define INC_HIT_COUNT   { ++HitCount; }

Definition at line 43 of file KDChartTextLabelCache.cpp.

Referenced by PrerenderedLabel::pixmap(), and PrerenderedLabel::referencePointLocation().

#define INC_MISS_COUNT   { ++MissCount; }

Definition at line 44 of file KDChartTextLabelCache.cpp.

Referenced by PrerenderedLabel::pixmap(), and PrerenderedLabel::referencePointLocation().


Variable Documentation

int HitCount = 0

Definition at line 41 of file KDChartTextLabelCache.cpp.

int MissCount = 0

Definition at line 42 of file KDChartTextLabelCache.cpp.


Generated on Thu Mar 4 23:23:25 2010 for KD Chart 2 by  doxygen 1.5.4