|
| QgsRasterBlock () |
|
| QgsRasterBlock (Qgis::DataType dataType, int width, int height) |
| Constructor which allocates data block in memory. More...
|
|
virtual | ~QgsRasterBlock () |
|
void | applyNoDataValues (const QgsRasterRangeList &rangeList) |
|
void | applyScaleOffset (double scale, double offset) |
| Apply band scale and offset to raster block values. More...
|
|
char * | bits () |
| Returns a pointer to block data. More...
|
|
char * | bits (int row, int column) |
| Returns a pointer to block data. More...
|
|
char * | bits (qgssize index) |
| Returns a pointer to block data. More...
|
|
const quint8 * | byteData () const |
| Gives direct access to the raster block data. More...
|
|
QRgb | color (int row, int column) const SIP_HOLDGIL |
| Read a single color. More...
|
|
QRgb | color (qgssize index) const SIP_HOLDGIL |
| Read a single value. More...
|
|
QRgb * | colorData () |
| Gives direct read/write access to the raster RGB data. More...
|
|
bool | convert (Qgis::DataType destDataType) |
| Convert data to different type. More...
|
|
QByteArray | data () const |
| Gets access to raw data. More...
|
|
Qgis::DataType | dataType () const SIP_HOLDGIL |
| Returns data type. More...
|
|
int | dataTypeSize () const SIP_HOLDGIL |
| Data type size in bytes. More...
|
|
QgsError | error () const |
| Returns the last error. More...
|
|
bool | hasNoData () const SIP_HOLDGIL |
| Returns true if the block may contain no data. More...
|
|
bool | hasNoDataValue () const SIP_HOLDGIL |
| true if the block has no data value. More...
|
|
int | height () const SIP_HOLDGIL |
| Returns the height (number of rows) of the raster block. More...
|
|
QImage | image () const |
| Returns an image containing the block data, if the block's data type is color. More...
|
|
bool | isEmpty () const |
| Returns true if block is empty, i.e. More...
|
|
bool | isNoData (int row, int column) const SIP_HOLDGIL |
| Checks if value at position is no data. More...
|
|
bool | isNoData (qgssize index) const SIP_HOLDGIL |
| Check if value at position is no data. More...
|
|
bool | isNoData (qgssize row, qgssize column) const SIP_HOLDGIL |
| Check if value at position is no data. More...
|
|
bool | isValid () const SIP_HOLDGIL |
| Returns true if the block is valid (correctly filled with data). More...
|
|
double | noDataValue () const SIP_HOLDGIL |
| Returns no data value. More...
|
|
bool | reset (Qgis::DataType dataType, int width, int height) |
| Reset block. More...
|
|
void | resetNoDataValue () SIP_HOLDGIL |
| Reset no data value: if there was a no data value previously set, it will be discarded. More...
|
|
bool | setColor (int row, int column, QRgb color) SIP_HOLDGIL |
| Set color on position. More...
|
|
bool | setColor (qgssize index, QRgb color) SIP_HOLDGIL |
| Set color on index (indexed line by line) More...
|
|
void | setData (const QByteArray &data, int offset=0) |
| Rewrite raw pixel data. More...
|
|
void | setError (const QgsError &error) |
| Sets the last error. More...
|
|
bool | setImage (const QImage *image) |
| Sets the block data via an image. More...
|
|
void | setIsData (int row, int column) SIP_HOLDGIL |
| Remove no data flag on pixel. More...
|
|
void | setIsData (qgssize index) SIP_HOLDGIL |
| Remove no data flag on pixel. More...
|
|
bool | setIsNoData () |
| Set the whole block to no data. More...
|
|
bool | setIsNoData (int row, int column) SIP_HOLDGIL |
| Set no data on pixel. More...
|
|
bool | setIsNoData (qgssize index) SIP_HOLDGIL |
| Set no data on pixel. More...
|
|
bool | setIsNoDataExcept (QRect exceptRect) |
| Set the whole block to no data except specified rectangle. More...
|
|
void | setNoDataValue (double noDataValue) SIP_HOLDGIL |
| Sets cell value that will be considered as "no data". More...
|
|
void | setValid (bool valid) SIP_HOLDGIL |
| Mark block as valid or invalid. More...
|
|
bool | setValue (int row, int column, double value) SIP_HOLDGIL |
| Set value on position. More...
|
|
bool | setValue (qgssize index, double value) SIP_HOLDGIL |
| Set value on index (indexed line by line) More...
|
|
QString | toString () const |
|
double | value (int row, int column) const SIP_HOLDGIL |
| Read a single value if type of block is numeric. More...
|
|
double | value (qgssize index) const SIP_HOLDGIL |
| Reads a single value if type of block is numeric. More...
|
|
double | valueAndNoData (int row, int column, bool &isNoData) const |
| Reads a single value from the pixel at row and column, if type of block is numeric. More...
|
|
double | valueAndNoData (qgssize index, bool &isNoData) const |
| Reads a single value from the pixel at the specified data matrix index, if type of block is numeric. More...
|
|
int | width () const SIP_HOLDGIL |
| Returns the width (number of columns) of the raster block. More...
|
|