ossimGdalDatasetRasterBand Represents a single band within the image.
More...
#include <ossimGdalDataset.h>
|
virtual CPLErr | IReadBlock (int nBlockXOff, int nBlockYOff, void *pImage) |
| Read block method. More...
|
|
ossimGdalDatasetRasterBand Represents a single band within the image.
Definition at line 92 of file ossimGdalDataset.h.
◆ ossimGdalDatasetRasterBand()
Constructor that takes a ossimGdalDataset, band and image handler.
- Parameters
-
ds | The parent data set. |
band | The "ONE" based band. |
ih | The pointer to the image handler. |
Definition at line 184 of file ossimGdalDataset.cpp.
187 : GDALPamRasterBand(),
194 <<
"ossimGdalDatasetRasterBand::ossimGdalDatasetRasterBand entered..." 219 nBlockXSize = (nBlockXSize==0) ? 1 : nBlockXSize;
220 nBlockYSize = (nBlockYSize==0) ? 1 : nBlockYSize;
222 nBlocksPerRow = nRasterXSize / nBlockXSize;
223 nBlocksPerColumn = nRasterYSize / nBlockYSize;
224 if (nRasterXSize % nBlockXSize) ++nBlocksPerRow;
225 if (nRasterYSize % nBlockYSize) ++nBlocksPerColumn;
228 bForceCachedIO =
false;
ossim_uint32 height() const
virtual ossim_uint32 getTileHeight() const
Returns the default processing tile height.
virtual ossim_uint32 getTileWidth() const
Returns the default processing tile width.
virtual ossimIrect getImageRectangle(ossim_uint32 resLevel=0) const
Returns zero-based bounding rectangle of the image.
ossim_uint32 width() const
ossimRefPtr< ossimImageHandler > theImageHandler
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
GDALDataType toGdal(ossimScalarType) const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
◆ ~ossimGdalDatasetRasterBand()
ossimGdalDatasetRasterBand::~ossimGdalDatasetRasterBand |
( |
| ) |
|
|
virtual |
◆ GetNoDataValue()
double ossimGdalDatasetRasterBand::GetNoDataValue |
( |
int * |
pbSuccess = 0 | ) |
|
|
virtual |
This returns 0 right now and should probably be implemented if anything serious is to be done with this data set with the gdal library.
Definition at line 268 of file ossimGdalDataset.cpp.
274 <<
"ossimGdalDatasetRasterBand::GetNoDataValue entered..."
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
◆ IReadBlock()
CPLErr ossimGdalDatasetRasterBand::IReadBlock |
( |
int |
nBlockXOff, |
|
|
int |
nBlockYOff, |
|
|
void * |
pImage |
|
) |
| |
|
protectedvirtual |
Read block method.
- Parameters
-
nBlockXOff | X Block offset, "0" being upper left sample of image, 1 being sample at nBlockXOff * nBlockXSize and so on. |
nBlockYOff | YBlock offset, "0" being upper left sample of image, 1 being sample at nBlockYOff * nBlockYSize and so on. |
pImage | Buffer to put image data in. Must be at least: pixel_size_in_bytes * nBlockXSize * nBlockYSize |
- Returns
- CE_None on success, CE_Failure on failure.
Definition at line 235 of file ossimGdalDataset.cpp.
References ossimDataObject::getDataObjectStatus(), ossimImageSource::getTile(), OSSIM_FULL, OSSIM_PARTIAL, theImageHandler, ossimImageData::unloadBand(), ossimRefPtr< T >::valid(), ossimIpt::x, and ossimIpt::y.
244 ossimIpt startPt(nBlockXOff*nBlockXSize, nBlockYOff*nBlockYSize);
247 ossimIpt endPt( startPt.x+nBlockXSize-1,
248 startPt.y+nBlockYSize-1);
263 memset(pImage, 0, nBlockXSize * nBlockYSize);
virtual ossimDataObjectStatus getDataObjectStatus() const
virtual void unloadBand(void *dest, ossim_uint32 src_band, ossim_uint32 dest_band, const ossimIrect &dest_rect, ossimInterleaveType il_type=OSSIM_BSQ, OverwriteBandRule ow_type=NULL_RULE) const
This routine is designed for overwriting a selected band of the destination buffer 'dest' by an indep...
ossimRefPtr< ossimImageHandler > theImageHandler
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)
◆ ossimGdalDataset
◆ theImageHandler
The documentation for this class was generated from the following files: