cmlabs::Color Class Reference

#include <Color.h>

Inheritance diagram for cmlabs::Color:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::Color:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Color ()
 Color (int red, int green, int blue)
 Color (JString name)
 Color (const Color &color)
 Color (XMLNode *node)
virtual ~Color ()
Objectclone () const
bool fromXML (XMLNode *node)
JString toXML (JString name)
JString toXML ()
Color mixOn (Color &color, double weight)
Color getReverseColor ()
int getGrayValue ()
double distance (Color &otherColor)
bool setNoColor ()
bool isValid ()
bool isNoColor ()

Static Public Member Functions

static ObjectCollectioncreateColorsMaxDifference (int count, bool mix=false)

Public Attributes

int r
int g
int b
int size

Private Member Functions

void init (int red, int green, int blue)
void init (JString colorName)

Private Attributes

void * pen
void * brush


Detailed Description

Definition at line 45 of file Color.h.


Constructor & Destructor Documentation

cmlabs::Color::Color (  ) 

Definition at line 40 of file Color.cpp.

cmlabs::Color::Color ( int  red,
int  green,
int  blue 
)

Definition at line 44 of file Color.cpp.

cmlabs::Color::Color ( JString  name  ) 

Definition at line 58 of file Color.cpp.

cmlabs::Color::Color ( const Color color  ) 

Definition at line 53 of file Color.cpp.

cmlabs::Color::Color ( XMLNode node  ) 

Definition at line 48 of file Color.cpp.

cmlabs::Color::~Color (  )  [virtual]

Definition at line 24 of file Color_Linux.cpp.


Member Function Documentation

Object * cmlabs::Color::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 62 of file Color.cpp.

bool cmlabs::Color::fromXML ( XMLNode node  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 154 of file Color.cpp.

JString cmlabs::Color::toXML ( JString  name  ) 

Definition at line 171 of file Color.cpp.

JString cmlabs::Color::toXML (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 167 of file Color.cpp.

Color cmlabs::Color::mixOn ( Color color,
double  weight 
)

Definition at line 129 of file Color.cpp.

Color cmlabs::Color::getReverseColor (  ) 

Definition at line 146 of file Color.cpp.

int cmlabs::Color::getGrayValue (  ) 

Definition at line 142 of file Color.cpp.

double cmlabs::Color::distance ( Color otherColor  ) 

Definition at line 175 of file Color.cpp.

bool cmlabs::Color::setNoColor (  ) 

Definition at line 116 of file Color.cpp.

bool cmlabs::Color::isValid (  ) 

Definition at line 121 of file Color.cpp.

bool cmlabs::Color::isNoColor (  ) 

Definition at line 125 of file Color.cpp.

ObjectCollection * cmlabs::Color::createColorsMaxDifference ( int  count,
bool  mix = false 
) [static]

Definition at line 179 of file Color.cpp.

void cmlabs::Color::init ( int  red,
int  green,
int  blue 
) [private]

Definition at line 67 of file Color.cpp.

void cmlabs::Color::init ( JString  colorName  )  [private]

Definition at line 76 of file Color.cpp.


Member Data Documentation

Definition at line 64 of file Color.h.

Definition at line 64 of file Color.h.

Definition at line 64 of file Color.h.

Definition at line 65 of file Color.h.

void* cmlabs::Color::pen [private]

Definition at line 88 of file Color.h.

void* cmlabs::Color::brush [private]

Definition at line 89 of file Color.h.


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

Generated on Tue Jul 7 16:22:35 2009 for CoreLibrary by  doxygen 1.5.6