Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
MscColor Class Reference

Common basic class for color value. More...

#include <MscColor.h>

Collaboration diagram for MscColor:
Collaboration graph

Public Member Functions

 MscColor ()
 
void setColor (int R, int G, int B)
 
void setColor (double color)
 
void setColor (MscColor color)
 
double getColor () const
 
void getColor (int &R, int &G, int &B) const
 
void getColorD (double &R, double &G, double &B) const
 
int getRed () const
 
int getGreen () const
 
int getBlue () const
 
bool operator< (const MscColor &color) const
 
bool operator== (const MscColor &color) const
 
bool operator!= (const MscColor &color) const
 
void clear ()
 

Private Attributes

int m_R
 
int m_G
 
int m_B
 
double m_color
 

Detailed Description

Common basic class for color value.

Definition at line 25 of file MscColor.h.

Constructor & Destructor Documentation

MscColor::MscColor ( )
inline

Definition at line 35 of file MscColor.h.

Member Function Documentation

void MscColor::clear ( void  )
inline

Definition at line 122 of file MscColor.h.

int MscColor::getBlue ( ) const
inline

Definition at line 89 of file MscColor.h.

Referenced by CShapeUtils::ChangeShapeColor().

double MscColor::getColor ( ) const
inline

Definition at line 58 of file MscColor.h.

Referenced by CShapeUtils::ChangeShapeColor().

void MscColor::getColor ( int &  R,
int &  G,
int &  B 
) const
inline

Definition at line 63 of file MscColor.h.

void MscColor::getColorD ( double &  R,
double &  G,
double &  B 
) const
inline

Definition at line 72 of file MscColor.h.

References color_round.

int MscColor::getGreen ( ) const
inline

Definition at line 84 of file MscColor.h.

Referenced by CShapeUtils::ChangeShapeColor().

int MscColor::getRed ( ) const
inline

Definition at line 79 of file MscColor.h.

Referenced by CShapeUtils::ChangeShapeColor().

bool MscColor::operator!= ( const MscColor color) const
inline

Definition at line 118 of file MscColor.h.

bool MscColor::operator< ( const MscColor color) const
inline

Definition at line 94 of file MscColor.h.

References m_B, m_color, m_G, and m_R.

bool MscColor::operator== ( const MscColor color) const
inline

Definition at line 106 of file MscColor.h.

References m_B, m_color, m_G, and m_R.

void MscColor::setColor ( int  R,
int  G,
int  B 
)
inline

Definition at line 40 of file MscColor.h.

Referenced by CShapeUtils::ExtractShapeColor().

void MscColor::setColor ( double  color)
inline

Definition at line 47 of file MscColor.h.

void MscColor::setColor ( MscColor  color)
inline

Definition at line 52 of file MscColor.h.

References m_B, m_color, m_G, and m_R.

Member Data Documentation

int MscColor::m_B
private

Definition at line 30 of file MscColor.h.

Referenced by operator<(), operator==(), and setColor().

double MscColor::m_color
private

Definition at line 31 of file MscColor.h.

Referenced by operator<(), operator==(), and setColor().

int MscColor::m_G
private

Definition at line 29 of file MscColor.h.

Referenced by operator<(), operator==(), and setColor().

int MscColor::m_R
private

Definition at line 28 of file MscColor.h.

Referenced by operator<(), operator==(), and setColor().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:59 for Sequence Chart Studio by  doxygen