| TerraLib 4.1

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

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

Public Member Functions
TeDecoderMemory Class Reference

Implements a decoder to a raster stored as a as a mulitdimensional matrix in memory. More...

`#include <TeDecoderMemory.h>`

Inheritance diagram for TeDecoderMemory:

List of all members.

## Public Member Functions

| TeDecoderMemory ()
| Empty constructor.
| TeDecoderMemory (const TeRasterParams &par)
| Constructor from parameters.
| ~TeDecoderMemory ()
| Destructor.
bool | setElement (int col, int lin, double val, int band=0)
| Writes an element.
bool | getElement (int col, int lin, double &val, int band=0)
| Reads an element.
void * | data (int band=0)
| Retuns a pointer to a given band.
void | init ()
| Initalizes the internal structures.
bool | clear ()
| Releases the internal structures.
bool | allocateMemory ()
| Allocates the necessary memory.
bool | resetMemory ()
| Deallocates the used memory.

## Detailed Description

Implements a decoder to a raster stored as a as a mulitdimensional matrix in memory.

## Constructor & Destructor Documentation

TeDecoderMemory::TeDecoderMemory | ( |  | ) |

Empty constructor.

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

Constructor from parameters.

TeDecoderMemory::~TeDecoderMemory | ( |  | ) |

Destructor.

## Member Function Documentation

bool TeDecoderMemory::allocateMemory | ( |  | ) |

Allocates the necessary memory.

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

Releases the internal structures.

Implements TeDecoder.

void * TeDecoderMemory::data | ( | int | band = `0` | ) |

Retuns a pointer to a given band.

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

Reads an element.

Implements TeDecoder.

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

Initalizes the internal structures.

Implements TeDecoder.

bool TeDecoderMemory::resetMemory | ( |  | ) |

Deallocates the used memory.

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

Writes an element.

Implements TeDecoder.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeDecoderMemory.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeDecoderMemory.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines