| TerraLib 4.1

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

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

Public Member Functions | Public Attributes
TeColor Struct Reference

A structure for supporting a color definition. More...

`#include <TeVisual.h>`

List of all members.

## Public Member Functions

| TeColor ()
| Empty constructor.
| TeColor (int r, int g, int b, const string &name="")
| Constructor with parameters.
void | init (int r, int g, int b, const string &name="")
| Set parameters of colors.
bool | operator== (const TeColor &color)
| Returns TRUE if color1 is equal to color2 or FALSE if they are different.
TeColor & | operator= (const TeColor &color)
| Assignment operator.

## Public Attributes

int | red_
| Red component.
int | green_
| Green component.
int | blue_
| Blue component.
string | name_
| Color name.

## Detailed Description

A structure for supporting a color definition.

Examples:

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

## Constructor & Destructor Documentation

TeColor::TeColor | ( |  | ) | `[inline]`

Empty constructor.

TeColor::TeColor | ( | int | r,
|  | int | g,
|  | int | b,
|  | const string & | name = `""`
| ) |  | `[inline]`

Constructor with parameters.

## Member Function Documentation

void TeColor::init | ( | int | r,
|  | int | g,
|  | int | b,
|  | const string & | name = `""`
| ) |  | `[inline]`

Set parameters of colors.

Examples:
  createTheme.cpp, and themeGrouping.cpp.

TeColor& TeColor::operator= | ( | const TeColor & | color | ) | `[inline]`

Assignment operator.

bool TeColor::operator== | ( | const TeColor & | color | ) | `[inline]`

Returns TRUE if color1 is equal to color2 or FALSE if they are different.

## Member Data Documentation

int TeColor::blue_

Blue component.

int TeColor::green_

Green component.

string TeColor::name_

Color name.

int TeColor::red_

Red component.

The documentation for this struct was generated from the following file:

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines