| TerraLib 4.1

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

Functions
Pie/Bar Charts

## Functions

TL_DLL bool | createChartParamsTable (TeDatabase *db, bool integrity=false)
TL_DLL bool | updateGridColor (TeDatabase *db, int themeId, TeObjectSelectionMode sel, TeColor &color)

## Detailed Description

A set of functions to manipulate the charts (pie and/or bar) persistence model used by TerraView application. It can be used as a model for other TerraLib based applications.

## Function Documentation

TL_DLL bool createChartParamsTable | ( | TeDatabase * | db,
|  | bool | integrity = `false`
| ) |  |

Creates a table to store the parameters of bar/pie charts

Parameters:

  db | pointer do a TerraLib database
  integrity | flag to indicate a integrity relation (with the theme) should be created

TL_DLL bool updateGridColor | ( | TeDatabase * | db,
|  | int | themeId,
|  | TeObjectSelectionMode | sel,
|  | TeColor & | color
| ) |  |

Updates the color associated to a selection mode for a theme

Parameters:

  db | pointer do a TerraLib database
  themeId | theme extended identifier
  sel | selection mode
  color | color definition

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines