| TerraLib 4.1

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

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

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
TePDIStrategy Class Reference
Algorithm strategies.

This is the base class for digital image processing algorithms strategies. More...

`#include <TePDIStrategy.hpp>`

Inheritance diagram for TePDIStrategy:

List of all members.

## Public Types

typedef TeSharedPtr < TePDIStrategy > | pointer
typedef const TeSharedPtr < TePDIStrategy > | const_pointer

## Public Member Functions

virtual | ~TePDIStrategy ()
| Default Destructor.
virtual bool | CheckParameters (const TePDIParameters &parameters) const =0
| Checks if the supplied parameters fits the requirements of each PDI strategy.
bool | Apply (const TePDIParameters &params)
| Applies the strategy.
void | ToggleProgInt (bool enabled)
| Enable / Disable the progress interface.

## Static Public Member Functions

static TePDIStrategy * | DefaultObject (const TePDIParameters &params)
| Returns a default object.

## Protected Member Functions

| TePDIStrategy ()
| Default constructor.
virtual bool | Implementation (const TePDIParameters &params)=0
| Runs the algorithm implementation.

## Protected Attributes

bool | progress_interface_enabled_
| Progress interface enabled/disable flag.

## Detailed Description

This is the base class for digital image processing algorithms strategies.

Author:
  Emiliano F. Castejon <castejon@dpi.inpe.br>

Note:
  All TePDIStrategy derived classes must be a friend of the respective TePDIStrategyFactory derived class ( for private constructor access ).

## Member Typedef Documentation

const TeSharedPtr< TePDIStrategy > TePDIStrategy::const_pointer

Type definition for a const instance pointer

Reimplemented in TePDIMixModelStrategy, and TePDIPrincoMixModelStrategy.

TeSharedPtr< TePDIStrategy > TePDIStrategy::pointer

Type definition for a instance pointer

Reimplemented in TePDIMixModelStrategy, and TePDIPrincoMixModelStrategy.

## Constructor & Destructor Documentation

TePDIStrategy::~TePDIStrategy | ( |  | ) | `[virtual]`

Default Destructor.

TePDIStrategy::TePDIStrategy | ( |  | ) | `[protected]`

Default constructor.

Parameters:

  factoryName | Factory name.

## Member Function Documentation

bool TePDIStrategy::Apply | ( | const TePDIParameters & | params | ) |

Applies the strategy.

Note:
  Parameters checking will be performed.

Returns:
  true if OK. false on error.

virtual bool TePDIStrategy::CheckParameters | ( | const TePDIParameters & | parameters | ) | const`[pure virtual]`

Checks if the supplied parameters fits the requirements of each PDI strategy.

Note:
  Error log messages must be generated. No exceptions generated.

Parameters:

  parameters | The parameters to be checked.

Returns:
  true if the parameters are OK. false if not.

Implemented in TePDIPrincoMixModelStrategy.

TePDIStrategy * TePDIStrategy::DefaultObject | ( | const TePDIParameters & | params | ) | `[static]`

Returns a default object.

Returns:
  A default object.

Reimplemented in TePDIMixModelStrategy.

virtual bool TePDIStrategy::Implementation | ( | const TePDIParameters & | params | ) | `[protected, pure virtual]`

Runs the algorithm implementation.

Returns:
  true if OK. false on errors.

Implemented in TePDIPrincoMixModelStrategy.

void TePDIStrategy::ToggleProgInt | ( | bool | enabled | ) |

Enable / Disable the progress interface.

Parameters:

  enabled | Flag to enable ( true ) or disable ( false ).

## Member Data Documentation

bool TePDIStrategy::progress_interface_enabled_`[mutable, protected]`

Progress interface enabled/disable flag.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIStrategy.hpp
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIStrategy.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines