/usr/include/ossim/imaging/ossimCacheTileSource.h is in libossim-dev 1.7.21-3ubuntu2.
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 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
// Description: ossimCacheTileSource
//
//*******************************************************************
// $Id: ossimCacheTileSource.h 12623 2008-04-07 14:10:08Z gpotts $
#ifndef ossimCacheTileSource_HEADER
#define ossimCacheTileSource_HEADER
#include <ossim/imaging/ossimImageSourceFilter.h>
#include <ossim/imaging/ossimAppFixedTileCache.h>
#include <ossim/base/ossimProcessProgressEvent.h>
#include <OpenThreads/ReentrantMutex>
/** Cache Tile Source */
class OSSIMDLLEXPORT ossimCacheTileSource : public ossimImageSourceFilter
{
public:
/**
* 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();
ossimAppFixedTileCache::ossimAppFixedCacheId theCacheId;
ossimRefPtr<ossimImageData> theTile;
ossimIpt theFixedTileSize;
bool theCachingEnabled;
bool theEventProgressFlag;
ossim_uint32 theCacheRLevel;
ossimIrect theBoundingRect;
/** For lock and unlock. */
mutable OpenThreads::ReentrantMutex theMutex;
virtual void fireProgressEvent(double percentComplete);
virtual ossimRefPtr<ossimImageData> fillTile(ossim_uint32 resLevel);
TYPE_DATA
};
#endif /* end of "#ifndef ossimCacheTileSource_HEADER" */
|