\HeaderA{aRTtheme-setVisual}{Set the theme's visual}{aRTtheme.Rdash.setVisual}
\aliasA{setVisual}{aRTtheme-setVisual}{setVisual}
\aliasA{setVisual,aRTtheme-method}{aRTtheme-setVisual}{setVisual,aRTtheme.Rdash.method}
\keyword{database}{aRTtheme-setVisual}
\begin{Description}\relax
Function to set the visual of a theme, to be visualized in a TerraLib-based GIS.
If the visual has only one color, it will set the default visual of the geometric
objects. If it has more than one color, the function will generate a slicing.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S4 method for signature 'aRTtheme':
setVisual(object, visual, attribute="attname", mode="s")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] Object of class \code{aRTtheme}.
\item[\code{visual}] Object of class \code{aRTvisual}.
\item[\code{attribute}] Theme attribute which values will be used to generate the slices.
\item[\code{mode}] Type of slicing (see below).
\end{ldescription}
\end{Arguments}
\begin{Section}{Slicing}
The theme visual will be sliced if \code{visual} contains more then one color.
Slices can be generated based on 5 different factors, represented by \code{mode}:
\Itemize{
\item equalsteps
\item stddeviation
\item quantil
\item uniquevalue
\item raster
}
When slicing a raster, \code{mode} will always be \code{raster}, and it will
be divided into equal steps, according with its values (and no \code{attribute} is
used). The other four modes are used with attributes.
\end{Section}
\begin{Author}\relax
Pedro Ribeiro de Andrade Neto
\end{Author}
\begin{SeeAlso}\relax
See \code{aRTtheme-class} to show the description of this class.
\end{SeeAlso}

