/usr/include/ossim/imaging/ossimSubImageTileSource.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 86 87 88 89 | //*****************************************************************************
// FILE: ossimSubImageTileSource.h
//
// Copyright (C) 2001 ImageLinks, Inc.
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// AUTHOR: Oscar Kramer
//
// DESCRIPTION: Contains declaration of class ossimSubImageTileSource.
//
// LIMITATIONS: None.
//
//*****************************************************************************
// $Id: ossimSubImageTileSource.h 9094 2006-06-13 19:12:40Z dburken $
#ifndef ossimSubImageTileSource_HEADER
#define ossimSubImageTileSource_HEADER
#include <ossim/imaging/ossimImageSourceFilter.h>
/*!****************************************************************************
*
* CLASS: ossimSubImageTileSource
*
* This tile source permits specifying an offset that is to be applied to the
* tile origin for all getTile() requests. It is intended for converting
* a full-image space coordinate to a sub-image coordinate.
*
*****************************************************************************/
class ossimSubImageTileSource : public ossimImageSourceFilter
{
public:
/*!
* Default constructor initializes the sub-image offset to zero.
*/
ossimSubImageTileSource();
/*!
* Constructor accepts an input source pointer. Offset is defaulted to (0,0).
*/
ossimSubImageTileSource(ossimImageSource* inputSource);
/*!
* Constructs with specified input source and offset.
*/
ossimSubImageTileSource(ossimImageSource* inputSource,
const ossimIpt& offset);
virtual ~ossimSubImageTileSource();
/*!
* Permits setting the image's offset relative to the full image space.
*/
void setSubImageOffset(const ossimIpt& offset) { theSubImageOffset=offset; }
ossimIpt getSubImageOffset()const{ return theSubImageOffset;}
virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& rect,
ossim_uint32 rr_level=0);
/*!
* Fetches the sub-image's bounding rect in FULL-IMAGE SPACE.
*/
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const;
/*!
* Fetches the sub-image's valid image vertices in FULL-IMAGE SPACE.
*/
virtual void getValidImageVertices(vector<ossimIpt>& validVertices,
ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER,
ossim_uint32 resLevel=0)const;
virtual void initialize();
virtual bool loadState(const ossimKeywordlist& kwl,
const char* prefix=0);
virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix=0)const;
private:
ossimIpt theSubImageOffset;
ossimRefPtr<ossimImageData> theTile;
TYPE_DATA
};
#endif
|