| TerraLib 4.1

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

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

Public Member Functions | Protected Attributes
TeQuerier Class Reference

A class responsible for loading spatial temporal instances from different sources. More...

`#include <TeQuerier.h>`

List of all members.

## Public Member Functions

| TeQuerier ()
| Empty constructor.
| TeQuerier (TeQuerierParams &params)
| Constructor from a set of parameters.
| TeQuerier (const TeQuerier &other)
| Copy constructor.
TeQuerier & | operator= (const TeQuerier &other)
| Operator =.
| ~TeQuerier ()
| Destructor.
TeTheme * | theme ()
| Returns the base theme.
bool | loadInstances (int frame=-1)
| Loads the ST instances. If frame > -1, loads only the instances of the frame-th time frame.
bool | fetchInstance (TeSTInstance &sto)
| Gets the current ST instance and moves to the next one. Returns if there is a next instance.
int | getNumTimeFrames ()
| Returns the number of time frames generated by a specific chronon.
bool | getTSEntry (TeTSEntry &tsEntry, int frame)
| Gets a temporal serie entry associated to a time frame.
bool | getTS (TeTemporalSeries &ts)
| Gets the temporal series.
TeTSParams & | getTSParams ()
| Returns the temporal series parameters.
TeAttributeList | getAttrList ()
| Gets the attribute list of the instances.
TeBox | getBox ()
| Gets the minimal bounding box.
int | numElemInstances ()
| Returns the number of instances loaded by the method "loadInstances".
TeQuerierParams & | params ()
| Returns the querier parameters.
void | clear ()
| Clear querier structures.
void | refresh (TeQuerierParams &params)
| Refreshes the querier based on a new querier parameters.
bool | loadGeometries (TeMultiGeometry &geometries, unsigned int &index)
| Loads all geometries of the index-th geometry representation.
bool | loadGeometries (TeMultiGeometry &geometries)
| Loads all geometries.

## Protected Attributes

TeQuerierImpl * | Impl_
| querier implementation (handle/bory pattern)

## Detailed Description

A class responsible for loading spatial temporal instances from different sources.

This class implements a mechanism that is responsible for loading spatio-temporal instances (ST instances) from different sources. This mechanism can load ST instances from a layer or theme stored in a TerraLib database or in a shape file. The Querier is initialized for a set of parameters that defines its behavior.

See also:
  TeSTInstance TeQuerierParams

Examples:

  querierFromLayer.cpp, querierFromTheme.cpp, querierGroupChronon.cpp, querierGroupElement.cpp, querierGroupSpatialRest.cpp, querierWithSpatialRestBox.cpp, and querierWithSpatialRestGeometry.cpp.

## Constructor & Destructor Documentation

TeQuerier::TeQuerier | ( |  | ) | `[inline]`

Empty constructor.

TeQuerier::TeQuerier | ( | TeQuerierParams & | params | ) |

Constructor from a set of parameters.

TeQuerier::TeQuerier | ( | const TeQuerier & | other | ) |

Copy constructor.

TeQuerier::~TeQuerier | ( |  | ) |

Destructor.

## Member Function Documentation

void TeQuerier::clear | ( | void |  | ) |

Clear querier structures.

bool TeQuerier::fetchInstance | ( | TeSTInstance & | sto | ) |

Gets the current ST instance and moves to the next one. Returns if there is a next instance.

Examples:
  querierFromLayer.cpp, querierFromTheme.cpp, querierGroupChronon.cpp, querierGroupElement.cpp, querierGroupSpatialRest.cpp, querierWithSpatialRestBox.cpp, and querierWithSpatialRestGeometry.cpp.

TeAttributeList TeQuerier::getAttrList | ( |  | ) |

Gets the attribute list of the instances.

Examples:
  querierFromLayer.cpp.

TeBox TeQuerier::getBox | ( | void |  | ) |

Gets the minimal bounding box.

int TeQuerier::getNumTimeFrames | ( |  | ) |

Returns the number of time frames generated by a specific chronon.

Examples:
  querierGroupChronon.cpp.

bool TeQuerier::getTS | ( | TeTemporalSeries & | ts | ) |

Gets the temporal series.

bool TeQuerier::getTSEntry | ( | TeTSEntry & | tsEntry,
|  | int | frame
| ) |  |

Gets a temporal serie entry associated to a time frame.

Examples:
  querierGroupChronon.cpp.

TeTSParams & TeQuerier::getTSParams | ( |  | ) |

Returns the temporal series parameters.

bool TeQuerier::loadGeometries | ( | TeMultiGeometry & | geometries | ) |

Loads all geometries.

bool TeQuerier::loadGeometries | ( | TeMultiGeometry & | geometries,
|  | unsigned int & | index
| ) |  |

Loads all geometries of the index-th geometry representation.

bool TeQuerier::loadInstances | ( | int | frame = `-1` | ) |

Loads the ST instances. If frame > -1, loads only the instances of the frame-th time frame.

Examples:
  querierFromLayer.cpp, querierFromTheme.cpp, querierGroupChronon.cpp, querierGroupElement.cpp, querierGroupSpatialRest.cpp, querierWithSpatialRestBox.cpp, and querierWithSpatialRestGeometry.cpp.

int TeQuerier::numElemInstances | ( |  | ) |

Returns the number of instances loaded by the method "loadInstances".

TeQuerier & TeQuerier::operator= | ( | const TeQuerier & | other | ) |

Operator =.

TeQuerierParams & TeQuerier::params | ( |  | ) |

Returns the querier parameters.

void TeQuerier::refresh | ( | TeQuerierParams & | params | ) |

Refreshes the querier based on a new querier parameters.

TeTheme * TeQuerier::theme | ( |  | ) |

Returns the base theme.

## Member Data Documentation

TeQuerierImpl* TeQuerier::Impl_`[protected]`

querier implementation (handle/bory pattern)

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines