OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimImageDataHelper.h>
Public Member Functions | |
ossimImageDataHelper (ossimImageData *imageData=0) | |
void | setImageData (ossimImageData *imageData) |
void | fill (const double *values, const ossimIrect &rect, bool clipPoly=true) |
void | fill (const double *values, std::vector< ossimPolygon > ®ionList, bool clipPoly=true) |
void | fill (const ossimRgbVector &color, std::vector< ossimPolygon > ®ionList, bool clipPoly=true) |
void | fill (const ossimRgbVector &color, const ossimIrect &rect, bool clipPoly=true) |
void | fill (const double *values, const ossimPolygon ®ion, bool clipPoly=true) |
void | fill (const ossimRgbVector &color, const ossimPolygon ®ion, bool clipPoly=true) |
void | copyInputToThis (const void *input, const ossimPolygon ®ion, bool clipPoly=true) |
Public Attributes | |
ossimImageData * | theImageData |
Protected Member Functions | |
template<class T > | |
void | fill (T dummyVariable, const double *values, const ossimPolygon ®ion, bool clipPoly) |
template<class T > | |
void | fill (T dummyVariable, const double *values, const ossimIrect ®ion, bool clipPoly) |
template<class T > | |
void | copyInputToThis (const T *inputBuf, const ossimPolygon ®ion, bool clipPoly) |
template<class T > | |
void | fill (T dummyVariable, const double *values, const ossimPolygon ®ion) |
template<class T > | |
void | fill (T dummyVariable, const double *values, const ossimIrect ®ion) |
template<class T > | |
void | copyInputToThis (const T *inputBuf, const ossimPolygon ®ion) |
Protected Attributes | |
ossimIpt | theOrigin |
ossimIrect | theImageRectangle |
ossimPolyArea2d | thePolyImageRectangle |
Definition at line 17 of file ossimImageDataHelper.h.
ossimImageDataHelper::ossimImageDataHelper | ( | ossimImageData * | imageData = 0 | ) |
This must be a valid image data object
Definition at line 18 of file ossimImageDataHelper.cpp.
References setImageData().
void ossimImageDataHelper::copyInputToThis | ( | const void * | input, |
const ossimPolygon & | region, | ||
bool | clipPoly = true |
||
) |
The input is assumed to have the same origin, size and scalar as this object. This will implement a selection
Definition at line 39 of file ossimImageDataHelper.cpp.
References ossimRectilinearDataObject::getScalarType(), OSSIM_DOUBLE, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SCALAR_UNKNOWN, OSSIM_SINT32, OSSIM_SSHORT16, OSSIM_UCHAR, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, OSSIM_USHORT16, and theImageData.
Referenced by copyInputToThis(), and ossimPolyCutter::getTile().
|
protected |
Definition at line 343 of file ossimImageDataHelper.cpp.
References copyInputToThis(), ossimPolyArea2d::getVisiblePolygons(), and thePolyImageRectangle.
|
protected |
Definition at line 368 of file ossimImageDataHelper.cpp.
References ossimImageData::getBuf(), ossimImageData::getHeight(), ossimPolygon::getIntegerBounds(), ossimImageData::getNumberOfBands(), ossimPolygon::getVertexCount(), ossimImageData::getWidth(), n, theImageData, theOrigin, ossimIpt::x, ossimIpt::y, and y.
void ossimImageDataHelper::fill | ( | const double * | values, |
const ossimIrect & | rect, | ||
bool | clipPoly = true |
||
) |
Definition at line 279 of file ossimImageDataHelper.cpp.
References ossimRectilinearDataObject::getScalarType(), OSSIM_DOUBLE, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SCALAR_UNKNOWN, OSSIM_SSHORT16, OSSIM_UCHAR, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, OSSIM_USHORT16, and theImageData.
Referenced by ossimMapCompositionSource::drawBorders(), fill(), and ossimPolyCutter::getTile().
void ossimImageDataHelper::fill | ( | const double * | values, |
std::vector< ossimPolygon > & | regionList, | ||
bool | clipPoly = true |
||
) |
Definition at line 118 of file ossimImageDataHelper.cpp.
References fill().
void ossimImageDataHelper::fill | ( | const ossimRgbVector & | color, |
std::vector< ossimPolygon > & | regionList, | ||
bool | clipPoly = true |
||
) |
Definition at line 103 of file ossimImageDataHelper.cpp.
References fill().
void ossimImageDataHelper::fill | ( | const ossimRgbVector & | color, |
const ossimIrect & | rect, | ||
bool | clipPoly = true |
||
) |
Definition at line 174 of file ossimImageDataHelper.cpp.
References fill(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimImageData::getNumberOfBands(), ossimRgbVector::getR(), ossimRectilinearDataObject::getScalarType(), OSSIM_DOUBLE, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SCALAR_UNKNOWN, OSSIM_SSHORT16, OSSIM_UCHAR, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, OSSIM_USHORT16, and theImageData.
void ossimImageDataHelper::fill | ( | const double * | values, |
const ossimPolygon & | region, | ||
bool | clipPoly = true |
||
) |
Values must be of the same type as the image data that we are writing to.
Definition at line 218 of file ossimImageDataHelper.cpp.
References fill(), ossimRectilinearDataObject::getScalarType(), OSSIM_DOUBLE, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SCALAR_UNKNOWN, OSSIM_SSHORT16, OSSIM_UCHAR, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, OSSIM_USHORT16, and theImageData.
void ossimImageDataHelper::fill | ( | const ossimRgbVector & | color, |
const ossimPolygon & | region, | ||
bool | clipPoly = true |
||
) |
Definition at line 132 of file ossimImageDataHelper.cpp.
References fill(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimImageData::getNumberOfBands(), ossimRgbVector::getR(), ossimRectilinearDataObject::getScalarType(), OSSIM_DOUBLE, OSSIM_FLOAT, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SCALAR_UNKNOWN, OSSIM_SSHORT16, OSSIM_UCHAR, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, OSSIM_USHORT16, and theImageData.
|
protected |
Definition at line 455 of file ossimImageDataHelper.cpp.
References fill(), ossimPolyArea2d::getVisiblePolygons(), and thePolyImageRectangle.
|
protected |
Definition at line 481 of file ossimImageDataHelper.cpp.
References ossimIrect::clipToRect(), fill(), ossimImageData::getImageRectangle(), and theImageData.
|
protected |
Definition at line 501 of file ossimImageDataHelper.cpp.
References abs, ossimImageData::getBuf(), ossimImageData::getHeight(), ossimPolygon::getIntegerBounds(), ossimImageData::getNumberOfBands(), ossimPolygon::getVertexCount(), ossimImageData::getWidth(), n, theImageData, theOrigin, ossimIpt::x, ossimIpt::y, and y.
|
protected |
Definition at line 589 of file ossimImageDataHelper.cpp.
References ossimImageData::getBuf(), ossimImageData::getHeight(), ossimImageData::getNumberOfBands(), ossimImageData::getWidth(), ossimIrect::lr(), theImageData, theOrigin, ossimIrect::ul(), ossimIpt::x, ossimIpt::y, and y.
void ossimImageDataHelper::setImageData | ( | ossimImageData * | imageData | ) |
Definition at line 24 of file ossimImageDataHelper.cpp.
References ossimImageData::getImageRectangle(), theImageData, theImageRectangle, theOrigin, thePolyImageRectangle, and ossimIrect::ul().
Referenced by ossimPolyCutter::getTile(), and ossimImageDataHelper().
ossimImageData* ossimImageDataHelper::theImageData |
Definition at line 61 of file ossimImageDataHelper.h.
Referenced by copyInputToThis(), fill(), and setImageData().
|
protected |
Definition at line 66 of file ossimImageDataHelper.h.
Referenced by setImageData().
|
protected |
Definition at line 65 of file ossimImageDataHelper.h.
Referenced by copyInputToThis(), fill(), and setImageData().
|
protected |
Definition at line 67 of file ossimImageDataHelper.h.
Referenced by copyInputToThis(), fill(), and setImageData().