TerraLib 4.1
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.
TeColoroperator= (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

Blue component.

Green component.

Color name.

Red component.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines