| 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 Attributes
TeVisual Class Reference

This class is used to store the standard presentation characteristics of vector geometries. More...

`#include <TeVisual.h>`

List of all members.

## Public Member Functions

| TeVisual (TeGeomRep rep=TePOLYGONS)
| Empty constructor.
virtual | ~TeVisual ()
| Destructor.
| TeVisual (const TeVisual &other)
| Copy constructor.
virtual TeVisual & | operator= (const TeVisual &vis)
| Assignment operator.
virtual bool | operator== (const TeVisual &vis)
| Returns TRUE if param1 is equal to param2 or FALSE if they are different.
virtual void | clear ()
| Returns visual to the default parameters.
virtual void | setBasic (TeVisual &vis)
| Copies only the basic visual parameters from another visual.
virtual void | color (const TeColor &color)
| Sets the color used for geometry filling and line, point and text color.
virtual TeColor & | color ()
| Returns the color used for geometry filling and line, point and text color.
virtual void | style (int s)
| Sets the style for the filling of geometries.
virtual int | style ()
| Returns the style for the filling of geometries.
virtual void | transparency (int t)
| Sets the percentage of transparency for polygons and cells.
virtual int | transparency ()
| Returns the percentage of transparency used in polygons and cells.
virtual void | contourColor (const TeColor &color)
| Sets the color for the polygons and cells outlines.
virtual TeColor & | contourColor ()
| Returns the color used in the polygons and cells outlines.
virtual void | contourTransparency (int t)
| Sets the percentage of transparency for the polygon ans cells outlines.
virtual int | contourTransparency ()
| Returns the color used in the polygons and cells outlines.
virtual void | contourWidth (int w)
| Sets the contour width for the polygons and cells outlines.
virtual int | contourWidth ()
| Returns the contour width used in the polygons and cells outlines.
virtual void | contourStyle (int s)
| Sets the contour style for the polygons and cells outlines.
virtual int | contourStyle ()
| Returns the contour style used in the polygons and cells outlines.
virtual void | width (int w)
| Sets the width.
virtual int | width ()
| Returns the width.
virtual void | size (int s)
| Sets the point size.
virtual int | size ()
| Returns the point size.
virtual void | family (string f)
| Sets the text family for fonts.
virtual string | family ()
| Returns fontīs family.
virtual void | bold (bool b)
| Sets the bold style for texts.
virtual bool | bold ()
| Returns the bold style used in the texts.
virtual void | italic (bool i)
| Sets the italic style for texts.
virtual bool | italic ()
| Returns the italic style used in the texts.
virtual void | fixedSize (bool i)
| Sets a flag indicating if the text will have a fixed size.
virtual bool | fixedSize ()
| Retuns a flag indicating if an text have a fixed size.
virtual void | alignmentVert (double a)
| Sets the vertical alignment of texts.
virtual double | alignmentVert ()
| Retuns the vertical alignment of texts.
virtual void | alignmentHoriz (double a)
| Sets the horizontal alignment of texts.
virtual double | alignmentHoriz ()
| Retuns the horizontal alignment of texts.
virtual void | tabSize (int s)
| Sets the number of spaces defined in a tab character.
virtual int | tabSize ()
| Returns the number of spaces defined in a tab character.
virtual void | lineSpace (int s)
| Sets the spacing between lines.
virtual int | lineSpace ()
| Returns the spacing between lines.
virtual int | ptAngle ()
| Returns the angle of points and symbols.
virtual void | ptAngle (int p)
| Sets the angle of points and symbols.
virtual TeVisual * | copy ()
| Creates another visual pointer and copies its content.

## Static Public Member Functions

static TeVisual * | DefaultObject ()
| Returns a default visual object.

## Protected Attributes

TeBaseVisualParams | params_

## Detailed Description

This class is used to store the standard presentation characteristics of vector geometries.

Examples:

  createTheme.cpp, rasterSlicing.cpp, and themeGrouping.cpp.

## Constructor & Destructor Documentation

TeVisual::TeVisual | ( | TeGeomRep | rep = `TePOLYGONS` | ) |

Empty constructor.

virtual TeVisual::~TeVisual | ( |  | ) | `[inline, virtual]`

Destructor.

TeVisual::TeVisual | ( | const TeVisual & | other | ) |

Copy constructor.

## Member Function Documentation

virtual void TeVisual::alignmentHoriz | ( | double | a | ) | `[inline, virtual]`

Sets the horizontal alignment of texts.

virtual double TeVisual::alignmentHoriz | ( |  | ) | `[inline, virtual]`

Retuns the horizontal alignment of texts.

virtual void TeVisual::alignmentVert | ( | double | a | ) | `[inline, virtual]`

Sets the vertical alignment of texts.

virtual double TeVisual::alignmentVert | ( |  | ) | `[inline, virtual]`

Retuns the vertical alignment of texts.

virtual void TeVisual::bold | ( | bool | b | ) | `[inline, virtual]`

Sets the bold style for texts.

virtual bool TeVisual::bold | ( |  | ) | `[inline, virtual]`

Returns the bold style used in the texts.

void TeVisual::clear | ( | void |  | ) | `[virtual]`

Returns visual to the default parameters.

virtual void TeVisual::color | ( | const TeColor & | color | ) | `[inline, virtual]`

Sets the color used for geometry filling and line, point and text color.

Examples:
  createTheme.cpp, rasterSlicing.cpp, and themeGrouping.cpp.

virtual TeColor& TeVisual::color | ( |  | ) | `[inline, virtual]`

Returns the color used for geometry filling and line, point and text color.

virtual void TeVisual::contourColor | ( | const TeColor & | color | ) | `[inline, virtual]`

Sets the color for the polygons and cells outlines.

Examples:
  rasterSlicing.cpp.

virtual TeColor& TeVisual::contourColor | ( |  | ) | `[inline, virtual]`

Returns the color used in the polygons and cells outlines.

virtual void TeVisual::contourStyle | ( | int | s | ) | `[inline, virtual]`

Sets the contour style for the polygons and cells outlines.

Examples:
  rasterSlicing.cpp.

virtual int TeVisual::contourStyle | ( |  | ) | `[inline, virtual]`

Returns the contour style used in the polygons and cells outlines.

virtual void TeVisual::contourTransparency | ( | int | t | ) | `[inline, virtual]`

Sets the percentage of transparency for the polygon ans cells outlines.

virtual int TeVisual::contourTransparency | ( |  | ) | `[inline, virtual]`

Returns the color used in the polygons and cells outlines.

virtual int TeVisual::contourWidth | ( |  | ) | `[inline, virtual]`

Returns the contour width used in the polygons and cells outlines.

virtual void TeVisual::contourWidth | ( | int | w | ) | `[inline, virtual]`

Sets the contour width for the polygons and cells outlines.

Examples:
  rasterSlicing.cpp.

virtual TeVisual* TeVisual::copy | ( |  | ) | `[inline, virtual]`

Creates another visual pointer and copies its content.

static TeVisual* TeVisual::DefaultObject | ( |  | ) | `[inline, static]`

Returns a default visual object.

virtual void TeVisual::family | ( | string | f | ) | `[inline, virtual]`

Sets the text family for fonts.

virtual string TeVisual::family | ( |  | ) | `[inline, virtual]`

Returns fontīs family.

virtual void TeVisual::fixedSize | ( | bool | i | ) | `[inline, virtual]`

Sets a flag indicating if the text will have a fixed size.

virtual bool TeVisual::fixedSize | ( |  | ) | `[inline, virtual]`

Retuns a flag indicating if an text have a fixed size.

virtual void TeVisual::italic | ( | bool | i | ) | `[inline, virtual]`

Sets the italic style for texts.

virtual bool TeVisual::italic | ( |  | ) | `[inline, virtual]`

Returns the italic style used in the texts.

virtual void TeVisual::lineSpace | ( | int | s | ) | `[inline, virtual]`

Sets the spacing between lines.

virtual int TeVisual::lineSpace | ( |  | ) | `[inline, virtual]`

Returns the spacing between lines.

TeVisual & TeVisual::operator= | ( | const TeVisual & | vis | ) | `[virtual]`

Assignment operator.

bool TeVisual::operator== | ( | const TeVisual & | vis | ) | `[virtual]`

Returns TRUE if param1 is equal to param2 or FALSE if they are different.

virtual int TeVisual::ptAngle | ( |  | ) | `[inline, virtual]`

Returns the angle of points and symbols.

virtual void TeVisual::ptAngle | ( | int | p | ) | `[inline, virtual]`

Sets the angle of points and symbols.

void TeVisual::setBasic | ( | TeVisual & | vis | ) | `[virtual]`

Copies only the basic visual parameters from another visual.

virtual int TeVisual::size | ( | void |  | ) | `[inline, virtual]`

Returns the point size.

virtual void TeVisual::size | ( | int | s | ) | `[inline, virtual]`

Sets the point size.

virtual int TeVisual::style | ( |  | ) | `[inline, virtual]`

Returns the style for the filling of geometries.

virtual void TeVisual::style | ( | int | s | ) | `[inline, virtual]`

Sets the style for the filling of geometries.

Examples:
  createTheme.cpp.

virtual int TeVisual::tabSize | ( |  | ) | `[inline, virtual]`

Returns the number of spaces defined in a tab character.

virtual void TeVisual::tabSize | ( | int | s | ) | `[inline, virtual]`

Sets the number of spaces defined in a tab character.

virtual void TeVisual::transparency | ( | int | t | ) | `[inline, virtual]`

Sets the percentage of transparency for polygons and cells.

Examples:
  rasterSlicing.cpp.

virtual int TeVisual::transparency | ( |  | ) | `[inline, virtual]`

Returns the percentage of transparency used in polygons and cells.

virtual void TeVisual::width | ( | int | w | ) | `[inline, virtual]`

Sets the width.

virtual int TeVisual::width | ( |  | ) | `[inline, virtual]`

Returns the width.

## Member Data Documentation

TeBaseVisualParams TeVisual::params_`[protected]`

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines