KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
Macros | Variables
KDChartTextLabelCache.cpp File Reference
#include "KDChartTextLabelCache.h"
#include <cmath>
#include <QApplication>
#include <QImage>
#include <QPainter>
#include <QPixmap>
#include <QtDebug>
Include dependency graph for KDChartTextLabelCache.cpp:

Go to the source code of this file.

Macros

#define DUMP_CACHE_STATS
 
#define INC_HIT_COUNT
 
#define INC_MISS_COUNT
 

Variables

int HitCount = 0
 
int MissCount = 0
 

Macro Definition Documentation

◆ DUMP_CACHE_STATS

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

Definition at line 32 of file KDChartTextLabelCache.cpp.

◆ INC_HIT_COUNT

#define INC_HIT_COUNT
Value:
{ \
++HitCount; \
}

Definition at line 24 of file KDChartTextLabelCache.cpp.

◆ INC_MISS_COUNT

#define INC_MISS_COUNT
Value:
{ \
++MissCount; \
}

Definition at line 28 of file KDChartTextLabelCache.cpp.

Variable Documentation

◆ HitCount

int HitCount = 0

Definition at line 22 of file KDChartTextLabelCache.cpp.

◆ MissCount

int MissCount = 0

Definition at line 23 of file KDChartTextLabelCache.cpp.


© 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