/usr/include/ossim/imaging/ossimCacheTileSource.h is in libossim-dev 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | //*******************************************************************
//
// License: MIT
//
// Author: Garrett Potts
//
// Description: ossimCacheTileSource
//
//*******************************************************************
// $Id$
#ifndef ossimCacheTileSource_HEADER
#define ossimCacheTileSource_HEADER 1
#include <ossim/imaging/ossimImageSourceFilter.h>
#include <ossim/imaging/ossimAppFixedTileCache.h>
#include <ossim/base/ossimProcessProgressEvent.h>
#include <mutex>
/** Cache Tile Source */
class OSSIMDLLEXPORT ossimCacheTileSource : public ossimImageSourceFilter
{
public:
typedef std::vector<ossimAppFixedTileCache::ossimAppFixedCacheId> RLevelCacheList;
/**
* Will construct a new Application cache
*/
ossimCacheTileSource();
// ossimCacheTileSource(ossimImageSource* inputSource);
virtual ~ossimCacheTileSource();
virtual ossimString getLongName() const;
virtual ossimString getShortName() const;
virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tileRect,
ossim_uint32 resLevel=0);
virtual void initialize();
virtual void flush();
virtual void setCachingEnabledFlag(bool value);
virtual void setEventProgressFlag(bool value);
void getTileSize(ossimIpt& size) const;
/**
* @brief Set the tile size. This changes underlying cache tile size.
* @param Size of cache tile.
*/
void setTileSize(const ossimIpt& size);
virtual ossim_uint32 getTileWidth() const;
virtual ossim_uint32 getTileHeight() const;
virtual bool loadState(const ossimKeywordlist& kwl,
const char* prefix=0);
virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix=0)const;
virtual ossimRefPtr<ossimProperty> getProperty(const ossimString& name)const;
virtual void setProperty(ossimRefPtr<ossimProperty> property);
virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
protected:
void allocate();
void deleteRlevelCache();
void initializeRlevelCache();
ossimAppFixedTileCache::ossimAppFixedCacheId getCacheId(ossim_uint32 resLevel);
virtual void fireProgressEvent(double percentComplete);
// virtual ossimRefPtr<ossimImageData> fillTile(ossim_uint32 resLevel);
virtual ossimRefPtr<ossimImageData> fillTile(
const ossimIrect& tileRect, ossim_uint32 resLevel,
ossimAppFixedTileCache::ossimAppFixedCacheId cacheId );
ossimRefPtr<ossimImageData> theTile;
ossimIpt theFixedTileSize;
bool theCachingEnabled;
bool theEventProgressFlag;
bool theUseInputTileSizeFlag;
RLevelCacheList theRLevelCacheList;
ossimIpt theTileSizeXY;
/** For lock and unlock. */
TYPE_DATA
};
#endif /* end of "#ifndef ossimCacheTileSource_HEADER" */
|