/usr/include/ossim/base/ossimRectilinearDataObject.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 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimRectilinearDataObject.h 9252 2006-07-14 14:06:13Z dburken $
#ifndef ossimRectilinearDataObject_HEADER
#define ossimRectilinearDataObject_HEADER
#include <ossim/base/ossimDataObject.h>
class OSSIMDLLEXPORT ossimRectilinearDataObject : public ossimDataObject
{
public:
ossimRectilinearDataObject(const ossimRectilinearDataObject&rhs);
ossimRectilinearDataObject(ossim_uint32 numberOfSpatialComponents,
ossimSource* owner,
ossim_uint32 numberOfDataComponents,
ossimScalarType scalarType=OSSIM_SCALAR_UNKNOWN,
ossimDataObjectStatus status=OSSIM_NULL);
/**
* This is a helper constructor that allows one to instantiate a one
* dimensional Spatial component with N number of data components.
* It will internally allocate theSpatialExtent to 1 and set the
* contents equal to the value passed in to length.
*/
ossimRectilinearDataObject(ossimSource* owner,
ossim_uint32 numberOfDataComponents,
ossim_uint32 length,
ossimScalarType scalarType=OSSIM_SCALAR_UNKNOWN,
ossimDataObjectStatus status=OSSIM_NULL);
/**
* This is a helper constructor that allows one to instantiate a two
* dimensional Spatial component (WidthxHeight) with N number of
* data components. It will internally allocate theSpatialExtent
* to 2 and set the contents equal to the value passed in to width, and
* height.
*/
ossimRectilinearDataObject(ossimSource* owner,
ossim_uint32 numberOfDataComponents,
ossim_uint32 width,
ossim_uint32 height,
ossimScalarType scalarType=OSSIM_SCALAR_UNKNOWN,
ossimDataObjectStatus status=OSSIM_NULL);
/**
* This is a helper constructor that allows one to instantiate a two
* dimensional Spatial component (WidthxHeightxDepth) with N number of
* data components. It will internally allocate theSpatialExtent
* to 3 and set the contents equal to the value passed in to width,
* height, and depth.
*/
ossimRectilinearDataObject(ossimSource* owner,
ossim_uint32 numberOfDataComponents,
ossim_uint32 width,
ossim_uint32 height,
ossim_uint32 depth,
ossimScalarType scalarType=OSSIM_SCALAR_UNKNOWN,
ossimDataObjectStatus status=OSSIM_NULL);
virtual ~ossimRectilinearDataObject();
/**
* How many components make up this data object. For
* example: If this were an RGB image data object then
* the number of components would be set to 3 and the
* RGB would be seen as a single data object being
* passed through.
*/
virtual void setNumberOfDataComponents(ossim_uint32 n);
virtual void setSpatialExtents(ossim_uint32* extents, ossim_uint32 size);
/**
* See ossimScalarType in ossimConstants for a full list
*
* OSSIM_SCALAR_UNKNOWN
* OSSIM_UCHAR Unsigned char
* OSSIM_USHORT16 16bit unsigned short
* OSSIM_SSHORT16 16bit signed short
* OSSIM_USHORT11 11bit unsigned short
* OSSIM_FLOAT float
* OSSIM_NORMALIZED_DOUBLE normalized 0 to 1 data
*/
virtual void setScalarType(ossimScalarType type);
virtual ossim_uint32 getNumberOfDataComponents() const;
virtual ossim_uint32 getNumberOfSpatialComponents() const;
virtual const ossim_uint32* getSpatialExtents() const;
virtual ossimScalarType getScalarType() const;
virtual ossim_uint32 getScalarSizeInBytes()const;
virtual void* getBuf();
virtual const void* getBuf() const;
virtual void assign(const ossimRectilinearDataObject* data);
/**
* Calls deInitialize() which deletes theDataBuffer and sets object status
* to OSSIM_NULL, then initializes theDataBuffer.
*
* @see deInitialize
*
* @note This method is destructive in that if the buffer existed of
* the correct size it will delete it, then reallocate.
*/
virtual void initialize();
virtual ossim_uint32 computeSpatialProduct()const;
virtual ossim_uint32 getDataSizeInBytes()const;
virtual std::ostream& print(std::ostream& out) const;
protected:
ossim_uint32 theNumberOfDataComponents;
ossim_uint32 theNumberOfSpatialComponents;
ossimScalarType theScalarType;
std::vector<ossim_uint8> theDataBuffer;
ossim_uint32* theSpatialExtents;
TYPE_DATA
};
#endif
|