| TerraLib 4.1

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

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

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
TeSFSTheme Class Reference

`#include <TeSFSTheme.h>`

Inheritance diagram for TeSFSTheme:

List of all members.

## Public Member Functions

| TeSFSTheme (const std::string &name="", TeViewNode *parent=0, int view=0, int id=0)
virtual | ~TeSFSTheme ()
void | setLocalDatabase (TeDatabase *database)
void | setRemoteDatabaseId (const int &remoteDbId)
void | setRemoteDatabase (TeDatabase *remoteDb)
TeDatabase * | getLocalDatabase ()
void | setThemeProjection (TeProjection *proj)
void | getAttributeList (TeAttributeList &attrList)
virtual TeProjection * | getThemeProjection ()
| Returns a pointer to a projection that is the spatial reference for the objects of this theme.
virtual TeDatabasePortal * | getQueryPortal (const TeBox &box, int &spatialColumnIndex, TeGeomRep &geomRep)
virtual void | setSFSTableInfo (const std::string &tableName, const std::string &columnName)
virtual bool | save ()
| Save the theme parameters.
virtual bool | buildGrouping (const TeGrouping &g, TeSelectedObjects selectedObjects=TeAll, vector< double > *dValuesVec=0)
| Save the grouping parameters in memory when there is no chronon.
virtual bool | buildGrouping (const TeGrouping &g, TeChronon chr, vector< map< string, string > > &mapObjValVec)
| Save the grouping parameters in memory when there is chronon.
virtual bool | saveGrouping (TeSelectedObjects selectedObjects=TeAll)
| Build the grouping and associate each object to its group.
virtual bool | deleteGrouping ()
| Delete grouping.
virtual void | setLegendsForObjects ()
| Set the legend id for each object of the theme.
virtual void | setOwnLegendsForObjects ()
| Set the own legend id for each object of the theme.
virtual set< string > | getObjects (TeSelectedObjects selectedObjects=TeAll)
| Get the set of objects corresponding to the object selection criteria.
virtual set< string > | getObjects (const vector< string > &itemVec)
| Get the set of objects corresponding to the list of items.
virtual vector< string > | getItemVector (TeSelectedObjects selectedObjects)
| Get the set of items corresponding to the object selection criteria.
virtual vector< string > | getItemVector (const set< string > &oidSet)
| Get the set of items corresponding to the set of objects.
virtual unsigned int | getNumberOfObjects ()
| Get the number of objects acessible by this theme.
virtual bool | saveMetadata (TeDatabase *)
| Save (insert or update) the theme metadata in the database.
virtual bool | loadMetadata (TeDatabase *)
| Load the theme metadata from database.
bool | getRemoteThemeInfo (int &databaseId, std::string &tableName, std::string &columnName, int &geomRep, int &projId)
Locate geometries
Returns the geometry(ies) of the theme given coordinate
virtual bool | locatePolygon (TeCoord2D &pt, TePolygon &polygon, const double &tol=0.0)
virtual bool | locatePolygonSet (TeCoord2D &pt, double tol, TePolygonSet &polygons)
virtual bool | locateLine (TeCoord2D &pt, TeLine2D &line, const double &tol=0.0)
virtual bool | locatePoint (TeCoord2D &pt, TePoint &point, const double &tol=0.0)
virtual bool | locateCell (TeCoord2D &pt, TeCell &c, const double &tol=0.0)

## Static Public Member Functions

static bool | createSFSThemeTable (TeDatabase *sourceDB)

## Protected Member Functions

virtual bool | eraseMetadata (TeDatabase *)
| Erase the theme metadata in the database.

## Protected Attributes

std::string | _tableName
std::string | _columnName
TeDatabase * | _localDB
TeDatabase * | _remoteDb
int | _remoteDbId
TeProjection * | _projection
TeAttributeList | _attrList
TeAttributeList | _originalAttrList

## Constructor & Destructor Documentation

TeSFSTheme::TeSFSTheme | ( | const std::string & | name = `""`,
|  | TeViewNode * | parent = `0`,
|  | int | view = `0`,
|  | int | id = `0`
| ) |  |

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

## Member Function Documentation

bool TeSFSTheme::buildGrouping | ( | const TeGrouping & | g,
|  | TeSelectedObjects | selectedObjects = `TeAll`,
|  | vector< double > * | dValuesVec = `0`
| ) |  | `[virtual]`

Save the grouping parameters in memory when there is no chronon.

Implements TeAbstractTheme.

bool TeSFSTheme::buildGrouping | ( | const TeGrouping & | g,
|  | TeChronon | chr,
|  | vector< map< string, string > > & | mapObjValVec
| ) |  | `[virtual]`

Save the grouping parameters in memory when there is chronon.

Implements TeAbstractTheme.

bool TeSFSTheme::createSFSThemeTable | ( | TeDatabase * | sourceDB | ) | `[static]`

bool TeSFSTheme::deleteGrouping | ( |  | ) | `[virtual]`

Delete grouping.

Implements TeAbstractTheme.

bool TeSFSTheme::eraseMetadata | ( | TeDatabase * | database | ) | `[protected, virtual]`

Erase the theme metadata in the database.

Implements TeAbstractTheme.

void TeSFSTheme::getAttributeList | ( | TeAttributeList & | attrList | ) |

vector< string > TeSFSTheme::getItemVector | ( | TeSelectedObjects | selectedObjects | ) | `[virtual]`

Get the set of items corresponding to the object selection criteria.

Implements TeAbstractTheme.

vector< string > TeSFSTheme::getItemVector | ( | const set< string > & | oidSet | ) | `[virtual]`

Get the set of items corresponding to the set of objects.

Implements TeAbstractTheme.

TeDatabase * TeSFSTheme::getLocalDatabase | ( |  | ) |

unsigned int TeSFSTheme::getNumberOfObjects | ( |  | ) | `[virtual]`

Get the number of objects acessible by this theme.

Implements TeAbstractTheme.

set< string > TeSFSTheme::getObjects | ( | TeSelectedObjects | selectedObjects = `TeAll` | ) | `[virtual]`

Get the set of objects corresponding to the object selection criteria.

Implements TeAbstractTheme.

set< string > TeSFSTheme::getObjects | ( | const vector< string > & | itemVec | ) | `[virtual]`

Get the set of objects corresponding to the list of items.

Implements TeAbstractTheme.

TeDatabasePortal * TeSFSTheme::getQueryPortal | ( | const TeBox & | box,
|  | int & | spatialColumnIndex,
|  | TeGeomRep & | geomRep
| ) |  | `[virtual]`

bool TeSFSTheme::getRemoteThemeInfo | ( | int & | databaseId,
|  | std::string & | tableName,
|  | std::string & | columnName,
|  | int & | geomRep,
|  | int & | projId
| ) |  |

TeProjection * TeSFSTheme::getThemeProjection | ( |  | ) | `[virtual]`

Returns a pointer to a projection that is the spatial reference for the objects of this theme.

Concrete classes should reimplement this method.

Implements TeAbstractTheme.

bool TeSFSTheme::loadMetadata | ( | TeDatabase * | db | ) | `[virtual]`

Load the theme metadata from database.

Implements TeAbstractTheme.

bool TeSFSTheme::locateCell | ( | TeCoord2D & | pt,
|  | TeCell & | c,
|  | const double & | tol = `0.0`
| ) |  | `[virtual]`

Implements TeAbstractTheme.

bool TeSFSTheme::locateLine | ( | TeCoord2D & | pt,
|  | TeLine2D & | line,
|  | const double & | tol = `0.0`
| ) |  | `[virtual]`

Implements TeAbstractTheme.

bool TeSFSTheme::locatePoint | ( | TeCoord2D & | pt,
|  | TePoint & | point,
|  | const double & | tol = `0.0`
| ) |  | `[virtual]`

Implements TeAbstractTheme.

bool TeSFSTheme::locatePolygon | ( | TeCoord2D & | pt,
|  | TePolygon & | polygon,
|  | const double & | tol = `0.0`
| ) |  | `[virtual]`

Implements TeAbstractTheme.

bool TeSFSTheme::locatePolygonSet | ( | TeCoord2D & | pt,
|  | double | tol,
|  | TePolygonSet & | polygons
| ) |  | `[virtual]`

Implements TeAbstractTheme.

bool TeSFSTheme::save | ( |  | ) | `[virtual]`

Save the theme parameters.

Implements TeAbstractTheme.

bool TeSFSTheme::saveGrouping | ( | TeSelectedObjects | selectedObjects = `TeAll` | ) | `[virtual]`

Build the grouping and associate each object to its group.

Implements TeAbstractTheme.

bool TeSFSTheme::saveMetadata | ( | TeDatabase * | database | ) | `[virtual]`

Save (insert or update) the theme metadata in the database.

Implements TeAbstractTheme.

void TeSFSTheme::setLegendsForObjects | ( |  | ) | `[virtual]`

Set the legend id for each object of the theme.

Implements TeAbstractTheme.

void TeSFSTheme::setLocalDatabase | ( | TeDatabase * | database | ) |

void TeSFSTheme::setOwnLegendsForObjects | ( |  | ) | `[virtual]`

Set the own legend id for each object of the theme.

Implements TeAbstractTheme.

void TeSFSTheme::setRemoteDatabase | ( | TeDatabase * | remoteDb | ) |

void TeSFSTheme::setRemoteDatabaseId | ( | const int & | remoteDbId | ) |

void TeSFSTheme::setSFSTableInfo | ( | const std::string & | tableName,
|  | const std::string & | columnName
| ) |  | `[virtual]`

void TeSFSTheme::setThemeProjection | ( | TeProjection * | proj | ) |

## Member Data Documentation

TeAttributeList TeSFSTheme::_attrList`[protected]`

std::string TeSFSTheme::_columnName`[protected]`

TeDatabase* TeSFSTheme::_localDB`[protected]`

TeAttributeList TeSFSTheme::_originalAttrList`[protected]`

TeProjection* TeSFSTheme::_projection`[protected]`

TeDatabase* TeSFSTheme::_remoteDb`[protected]`

int TeSFSTheme::_remoteDbId`[protected]`

std::string TeSFSTheme::_tableName`[protected]`

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines