aRTtheme {aRT} | R Documentation

## Class aRTtheme

### Description

Class that enables database queries with temporal and (or) attributes restrictions. It can be created using the results of a spatial query, passing the ids. Temporal queries are executed creating an `aRTquerier` object from this object.

Themes in TerraLib can have visual aspects, as colors and lines styles. These configurations are not used when an `aRTtheme` object is created, besause it can be used only for processing. But there are functions to do this, for example `setVisual` and `setVisible`.

### Objects from the Class

Objects can be created by calls of the form `new("aRTtheme", aRTlayer, themename)`. To avoid creating objects this way, there are two functions of class `aRTlayer`: `createTheme` and `openTheme`. `openTheme` is a function of class `aRTdb` too.

### Arguments

layer
  The layer where the theme is associated. Object of class `aRTlayer`.
themename
  The theme name. The default value is the layer name.
create
  Creates a new theme when `TRUE`, and open a existing theme when `FALSE`. The default is `FALSE`.
tables
  The table(s) of the used layer.
viewname
  The view name. The default is the theme name.

### Extends

Class `aRTcomponent`, directly.

### Methods

getAttributes
  Do a query and return all.
getBox
  Returns the bounding box.
getData
  Returns all attributes and geometry of a layer.
getGeometry
  Returns all the geometry associated with the object.
setVisible
  Changes the visibility of a theme (visible or not).
setVisual
  Sets the colors associated to a theme's geometry.

### Author(s)

Marcos Aurelio Carrero, Pedro Ribeiro de Andrade Neto

### See Also

See `aRTtheme-METHOD` for a method of this class or `CLASSNAME-class` for links to other classes.

[Package aRT version 0.4-0 Index]