| TerraLib 4.1

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

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

Public Member Functions
TeDecoderMrSID Class Reference

The TeMrSID decoder is a driver to decode images on the MrSID format. More...

`#include <TeDecoderMrSID.h>`

Inheritance diagram for TeDecoderMrSID:

List of all members.

## Public Member Functions

| TeDecoderMrSID (const TeRasterParams &par)
| Constructor from parameters.
| TeDecoderMrSID (const std::string &fname)
| Constructor from file name.
| ~TeDecoderMrSID ()
| Destructor.
void | init ()
| Initalizes internal structures to make decoder able to read MrSID images.
bool | clear ()
| Releases internal structures and invalidates MrSID decoder.
bool | setElement (int, int, double, int)
| Provided for compatibility reasons only, this decoder can not encode data.
bool | getElement (int, int, double &, int)
| Gets the value of an specific element (col, lin, band) of a raster data.
int | bestResolution (TeBox &bb, int ncols, int nlines, TeProjection *proj)
| Returns the best resolution level in a MrSID image to cover a paricular area.
bool | selectBlocks (TeBox &bbox, int resLevel, TeRasterParams &parBlock)
| Selects a portion of a MrSID image in a certain resolution level.
bool | getSelectedRasterBlock (TeDecoderMemory *memDec)
| Returns the contents of a portion of image previously selected.
int | numberOfSelectedBlocks ()
| Returns the number of blocks selected by the latest selection.
void | clearBlockSelection ()
| Reset block selection. Returns navigator to the original resolution level.
int | bestResolution (double res)
| Returns the raster resolution level available that is more similiar to a given desired resolution.

## Detailed Description

The TeMrSID decoder is a driver to decode images on the MrSID format.

## Constructor & Destructor Documentation

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

Constructor from parameters.

TeDecoderMrSID::TeDecoderMrSID | ( | const std::string & | fname | ) |

Constructor from file name.

TeDecoderMrSID::~TeDecoderMrSID | ( |  | ) |

Destructor.

## Member Function Documentation

int TeDecoderMrSID::bestResolution | ( | TeBox & | bb,
|  | int | ncols,
|  | int | nlines,
|  | TeProjection * | proj
| ) |  | `[virtual]`

Returns the best resolution level in a MrSID image to cover a paricular area.

Reimplemented from TeDecoder.

int TeDecoderMrSID::bestResolution | ( | double | res | ) | `[virtual]`

Returns the raster resolution level available that is more similiar to a given desired resolution.

Reimplemented from TeDecoder.

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

Releases internal structures and invalidates MrSID decoder.

Implements TeDecoder.

void TeDecoderMrSID::clearBlockSelection | ( |  | ) | `[virtual]`

Reset block selection. Returns navigator to the original resolution level.

Reimplemented from TeDecoder.

bool TeDecoderMrSID::getElement | ( | int | ,
|  | int | ,
|  | double & | ,
|  | int |
| ) |  | `[inline, virtual]`

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

Parameters:

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

Implements TeDecoder.

bool TeDecoderMrSID::getSelectedRasterBlock | ( | TeDecoderMemory * | memDec | ) | `[virtual]`

Returns the contents of a portion of image previously selected.

Reimplemented from TeDecoder.

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

Initalizes internal structures to make decoder able to read MrSID images.

Implements TeDecoder.

int TeDecoderMrSID::numberOfSelectedBlocks | ( |  | ) | `[inline, virtual]`

Returns the number of blocks selected by the latest selection.

Reimplemented from TeDecoder.

bool TeDecoderMrSID::selectBlocks | ( | TeBox & | bbox,
|  | int | resLevel,
|  | TeRasterParams & | parBlock
| ) |  | `[virtual]`

Selects a portion of a MrSID image in a certain resolution level.

Reimplemented from TeDecoder.

bool TeDecoderMrSID::setElement | ( | int | ,
|  | int | ,
|  | double | ,
|  | int |
| ) |  | `[inline, virtual]`

Provided for compatibility reasons only, this decoder can not encode data.

Implements TeDecoder.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/MrSID/TeDecoderMrSID.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/MrSID/TeDecoderMrSID.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines