class SugColor

This class represents the a color in the sugar enviornment

Public Methods

[more] SugColor ()
The class constructor.
[more]SugRealType getBlue ()
Returns the blue variable
[more]SugRealType getGreen ()
Returns the green variable
[more]void getRGB (SugRealType& r, SugRealType& g, SugRealType& b)
Stores the RGB value of this color in the three SugRealType variables
[more]SugRealType getRed ()
Returns the red variable
[more] operator SugRealType* ()
Operator overloader to cast this class as a vector of floats
[more]void setColor (const char* colorStr)
Sets the x variable
[more]void setRGB (SugRealType r, SugRealType g, SugRealType b)
Sets the RGB value of this color from the three SugRealType variables
[more] ~SugColor ()
The class destructor

Protected Fields

[more]SugRealType mRGB [3]
The color value


Documentation

This class represents the a color in the sugar enviornment
oSugRealType mRGB[3]
The color value

oSugRealType getRed()
Returns the red variable

oSugRealType getGreen()
Returns the green variable

oSugRealType getBlue()
Returns the blue variable

ovoid getRGB(SugRealType& r, SugRealType& g, SugRealType& b)
Stores the RGB value of this color in the three SugRealType variables

ovoid setRGB(SugRealType r, SugRealType g, SugRealType b)
Sets the RGB value of this color from the three SugRealType variables

ovoid setColor(const char* colorStr)
Sets the x variable

o operator SugRealType*()
Operator overloader to cast this class as a vector of floats

o SugColor()
The class constructor.

o ~SugColor()
The class destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.