186 namespace PageOpsReturnCode
210 QUuid
addPixmap(QPixmap * p_pixmap,
bool pinPage=
false);
225 QUuid
addPixmapToAtlasPage(QPixmap * p_pixmap,
bool allowScale=
true,
bool allowPageCreation=
false);
234 quint32 _findAndExpunge(quint32 minSize);
241 quint32 _determineSquareSize(QPixmap * p_pixmap,
bool allowScale)
const;
242 quint32 _determineSquareSizeFromRectPixmap(QPixmap * p_pixmap,
bool allowScale)
const;
243 quint32 _forceSquarify(QPixmap * p_pixmap,
bool maxRect=
false)
const;
245 static bool _isSquarePix(QPixmap * p_pixmap);
248 QUuid& r_insertedPixmapUid);
249 PageOpsReturnCode::Enum _createAndAddAtlasPageWithInitialEntry(QPixmap * p_pixmap,quint32 sqSize,quint32 initialRows,quint32 initialColumns,
250 QUuid& r_pageUid,QUuid& r_insertedPixmapUid,
bool allowExpunge=
true);
252 quint32 numColumns,
bool makeSquarePage=
false,QPair<quint32,quint32> * r_p_nextAvailableLocation=0);
253 static quint32 nextpwr2(quint32 t);
255 inline quint32 _spaceRemaining()
const
256 {
return (m_maxSizeInBytes <= m_currentSizeInBytes ? 0 : (m_maxSizeInBytes - m_currentSizeInBytes)); }
257 inline quint32 _expungeAmountForMinsize(quint32 minSize)
const
262 return ((m_maxSizeInBytes <= m_currentSizeInBytes) ? (minSize+(m_currentSizeInBytes-m_maxSizeInBytes))
263 : ((m_maxSizeInBytes-m_currentSizeInBytes >= minSize) ? 0
264 :(minSize - (m_maxSizeInBytes-m_currentSizeInBytes))));
267 quint32 m_maxSizeInBytes;
268 quint32 m_currentSizeInBytes;
269 quint32 m_accessCounter;
274 QMap<quint32,PixPagerPage *> m_atlasPages_alias;
275 QHash<QUuid,PixPagerPage *> m_atlasPagesByIndividualUids_alias;
279 QHash<QUuid,PixPagerPage *> m_pageCache;