27 #ifndef QPIMAGECACHE_H_
28 #define QPIMAGECACHE_H_
56 QPImageCache(
const QSize&
size);
57 QPImageCache(
int width,
int height);
61 QPImageCache(
const QPImageCache&
copy);
74 void fill(
unsigned int fillValue);
87 void paint(QPainter& painter,
const QRect& drawRect)
const;
88 void paint(QPainter* painter,
const QRect& drawRect)
const {
89 if(painter != NULL) paint(*painter, drawRect); }
97 const QImage& asQImage()
const;
122 static const int DEFAULT_MEMORY_LIMIT_KB;
129 class Key :
public QMap<PlotAxis, QPair<double, double> > {
135 Key(
const QPCanvas& canvas);
142 void setValue(
const QPCanvas& canvas);
152 QPAxesCache(QPCanvas& canvas,
int sizeLimitKb = DEFAULT_MEMORY_LIMIT_KB);
159 unsigned int size()
const;
163 int memorySize()
const;
167 int memoryLimit()
const;
168 void setMemoryLimit(
int memoryLimitKb);
174 QSize currImageSize()
const;
179 QSize fixedImageSize()
const;
180 void setFixedSize(QSize
size);
189 void clearLayers(
int layersFlag);
194 bool currHasImage()
const;
211 class Value :
public QMap<PlotCanvasLayer, QPImageCache> {
217 Value(
const QMap<PlotCanvasLayer, QPImageCache>&
copy);
223 int memorySize()
const;
231 QCache<Key, Value> m_cache;
240 uint qHash(
const casa::QPAxesCache::Key& key);
StatsData< AccumType > copy(const StatsData< AccumType > &stats)
PtrHolder< T > & operator=(const PtrHolder< T > &other)
LatticeExprNode operator!=(const LatticeExprNode &left, const LatticeExprNode &right)
String: the storage and methods of handling collections of characters.
Bool operator==(const MVTime &lh, const MVTime &rh)
is equal operator, uses operator Double which returns days
PlotCanvasLayer
The canvas is composed of multiple layers, where changing/adding items from one layer will not affect...