| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
TeDecoderQtImage Class Reference

Implements a decoder to access a Qt image as a TeRaster. More...

`#include <TeDecoderQtImage.h>`

Inheritance diagram for TeDecoderQtImage:

List of all members.

## Public Member Functions

| TeDecoderQtImage (const TeRasterParams &)
| ~TeDecoderQtImage ()
bool | setElement (int col, int lin, double val, int band=0)
| Sets the value of a specific raster element.
bool | getElement (int col, int lin, double &val, int band=0)
| Gets an specific element (col, lin, band) of a raster data.
void | init ()
| Initializes the internal structures of the decoder.
bool | clear ()
| Clears its internal structures.
QImage * | getImage ()
bool | setElementRGB (int col, int lin, double Rval, double Gval, double Bval, unsigned int=255)
| An optimizated method to set values raster images.
bool | setAlphaBufferToTransparent ()
void | setTransparency (int t)
unsigned int | getTransparency ()

## Detailed Description

Implements a decoder to access a Qt image as a TeRaster.

## Constructor & Destructor Documentation

TeDecoderQtImage::TeDecoderQtImage | ( | const TeRasterParams & | par | ) |

TeDecoderQtImage::~TeDecoderQtImage | ( |  | ) |

## Member Function Documentation

bool TeDecoderQtImage::clear | ( |  | ) | `[virtual]`

Clears its internal structures.

Implements TeDecoder.

bool TeDecoderQtImage::getElement | ( | int | col,
|  | int | lin,
|  | double & | val,
|  | int | band = `0`
| ) |  | `[virtual]`

Gets an specific element (col, lin, band) of a raster data.

Parameters:

  col | element column identifier
  lin | element line identifier
  val | element value being retrieved
  band | element band identifier

Implements TeDecoder.

QImage* TeDecoderQtImage::getImage | ( |  | ) | `[inline]`

unsigned int TeDecoderQtImage::getTransparency | ( |  | ) | `[inline]`

void TeDecoderQtImage::init | ( |  | ) | `[virtual]`

Initializes the internal structures of the decoder.

Implements TeDecoder.

bool TeDecoderQtImage::setAlphaBufferToTransparent | ( |  | ) |

bool TeDecoderQtImage::setElement | ( | int | col,
|  | int | lin,
|  | double | val,
|  | int | band = `0`
| ) |  | `[virtual]`

Sets the value of a specific raster element.

Parameters:

  col | element column identifier
  lin | element line identifier
  val | element value being inserted
  band | element band identifier

Implements TeDecoder.

bool TeDecoderQtImage::setElementRGB | ( | int | col,
|  | int | lin,
|  | double | Rval,
|  | double | Gval,
|  | double | Bval,
|  | unsigned | int = `255`
| ) |  | `[virtual]`

An optimizated method to set values raster images.

Reimplemented from TeDecoder.

void TeDecoderQtImage::setTransparency | ( | int | t | ) | `[inline]`

The documentation for this class was generated from the following files:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/qt/TeDecoderQtImage.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/qt/TeDecoderQtImage.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines