This is a simple class for holding 4 reals representing the colour any give object or lightsource can have. More...
#include <colourvalue.h>
Public Member Functions | |
ColourValue (Real Red=1.0, Real Green=1.0, Real Blue=1.0, Real Alpha=1.0) | |
4 Reals constructor. More... | |
ColourValue (const Ogre::ColourValue &OgreValues) | |
Ogre constructor. More... | |
ColourValue (const ColourValue &OtherColour) | |
Copy Constructor. More... | |
ColourValue (const XML::Node &OneNode) | |
XML Constructor. More... | |
~ColourValue () | |
Class destructor. | |
ColourValue | Average (const ColourValue &OtherColor) const |
Get the color that is the average of this and another color. More... | |
Real | GetAlphaChannel () const |
Retrieve the Alpha color component. More... | |
Real | GetBlueChannel () const |
Retrieve the Blue color component. More... | |
Real | GetGreenChannel () const |
Retrieve the Green color component. More... | |
Ogre::ColourValue | GetOgreColourValue () const |
Creates and returns an Ogre ColourValue class with values equal to this one. More... | |
Real | GetRedChannel () const |
Retrieve the Red color component. More... | |
Boole | operator!= (const ColourValue &Colour) const |
Inequality Comparison Operator. More... | |
ColourValue | operator* (const Real Scalar) |
Scalar Multiplication Operator. More... | |
ColourValue | operator* (const ColourValue &Colour) |
Multiplication Operator. More... | |
ColourValue & | operator*= (const ColourValue &Colour) |
Multiplication Operator. More... | |
ColourValue | operator+ (const ColourValue &Colour) |
Addition Operator. More... | |
ColourValue & | operator+= (const ColourValue &Colour) |
Addition Operator. More... | |
ColourValue | operator- (const ColourValue &Colour) |
Subtraction Operator. More... | |
ColourValue & | operator-= (const ColourValue &Colour) |
Subtraction Operator. More... | |
void | operator= (const ColourValue &OtherColour) |
Assignment operator. More... | |
Boole | operator== (const ColourValue &Colour) const |
Equality Comparison Operator. More... | |
void | ProtoDeSerialize (const XML::Node &OneNode) |
Take the data stored in an XML and overwrite this instance of this object with it. More... | |
void | ProtoSerialize (XML::Node &CurrentRoot) const |
Convert this class to an XML::Node ready for serialization. More... | |
void | SetAlphaChannel (const Real Alpha) |
Set the Alpha component of this color. More... | |
void | SetBlueChannel (const Real Blue) |
Set the Blue component of this color. More... | |
void | SetGreenChannel (const Real Green) |
Set the Green component of this color. More... | |
void | SetRedChannel (const Real Red) |
Set the Red component of this color. More... | |
void | SetValues (const Real Red, const Real Green, const Real Blue, const Real Alpha) |
Sets each of the colour channels. More... | |
Static Public Member Functions | |
static ColourValue | AliceBlue () |
Creates a ColourValue representing the colour AliceBlue. More... | |
static ColourValue | AntiqueWhite () |
Creates a ColourValue representing the colour AntiqueWhite. More... | |
static ColourValue | Aqua () |
Creates a ColourValue representing the colour Aqua. More... | |
static ColourValue | Aquamarine () |
Creates a ColourValue representing the colour Aquamarine. More... | |
static ColourValue | Azure () |
Creates a ColourValue representing the colour Azure. More... | |
static ColourValue | Beige () |
Creates a ColourValue representing the colour Beige. More... | |
static ColourValue | Bisque () |
Creates a ColourValue representing the colour Bisque. More... | |
static ColourValue | Black () |
Creates a ColourValue representing the colour Black. More... | |
static ColourValue | Blanchedalmond () |
Creates a ColourValue representing the colour Blanchedalmond. More... | |
static ColourValue | Blue () |
Creates a ColourValue representing the colour Blue. More... | |
static ColourValue | BlueViolet () |
Creates a ColourValue representing the colour BlueViolet. More... | |
static ColourValue | Brown () |
Creates a ColourValue representing the colour Brown. More... | |
static ColourValue | BurlyWood () |
Creates a ColourValue representing the colour BurlyWood. More... | |
static ColourValue | CadetBlue () |
Creates a ColourValue representing the colour CadetBlue. More... | |
static ColourValue | Chartreuse () |
Creates a ColourValue representing the colour Chartreuse. More... | |
static ColourValue | Chocolate () |
Creates a ColourValue representing the colour Chocolate. More... | |
static ColourValue | Coral () |
Creates a ColourValue representing the colour Coral. More... | |
static ColourValue | CornFlowerBlue () |
Creates a ColourValue representing the colour CornFlowerBlue. More... | |
static ColourValue | CornSilk () |
Creates a ColourValue representing the colour CornSilk. More... | |
static ColourValue | Crimson () |
Creates a ColourValue representing the colour Crimson. More... | |
static ColourValue | Cyan () |
Creates a ColourValue representing the colour Cyan. More... | |
static ColourValue | DarkBlue () |
Creates a ColourValue representing the colour DarkBlue. More... | |
static ColourValue | DarkCyan () |
Creates a ColourValue representing the colour DarkCyan. More... | |
static ColourValue | DarkGoldenRod () |
Creates a ColourValue representing the colour DarkGoldenRod. More... | |
static ColourValue | DarkGray () |
Creates a ColourValue representing the colour DarkGray. More... | |
static ColourValue | DarkGreen () |
Creates a ColourValue representing the colour DarkGreen. More... | |
static ColourValue | DarkKhaki () |
Creates a ColourValue representing the colour DarkKhaki. More... | |
static ColourValue | DarkMagenta () |
Creates a ColourValue representing the colour DarkMagenta. More... | |
static ColourValue | DarkOliveGreen () |
Creates a ColourValue representing the colour DarkOliveGreen. More... | |
static ColourValue | DarkOrange () |
Creates a ColourValue representing the colour DarkOrange. More... | |
static ColourValue | DarkOrchid () |
Creates a ColourValue representing the colour DarkOrchid. More... | |
static ColourValue | DarkRed () |
Creates a ColourValue representing the colour DarkRed. More... | |
static ColourValue | DarkSalmon () |
Creates a ColourValue representing the colour DarkSalmon. More... | |
static ColourValue | DarkSeaGreen () |
Creates a ColourValue representing the colour DarkSeaGreen. More... | |
static ColourValue | DarkSlateBlue () |
Creates a ColourValue representing the colour DarkSlateBlue. More... | |
static ColourValue | DarkSlateGray () |
Creates a ColourValue representing the colour DarkSlateGray. More... | |
static ColourValue | DarkTurquoise () |
Creates a ColourValue representing the colour DarkTurquoise. More... | |
static ColourValue | DarkViolet () |
Creates a ColourValue representing the colour DarkViolet. More... | |
static ColourValue | DeepPink () |
Creates a ColourValue representing the colour DeepPink. More... | |
static ColourValue | DeepSkyBlue () |
Creates a ColourValue representing the colour DeepSkyBlue. More... | |
static ColourValue | DimGray () |
Creates a ColourValue representing the colour DimGray. More... | |
static ColourValue | DodgerBlue () |
Creates a ColourValue representing the colour DodgerBlue. More... | |
static ColourValue | FireBrick () |
Creates a ColourValue representing the colour FireBrick. More... | |
static ColourValue | FloralWhite () |
Creates a ColourValue representing the colour FloralWhite. More... | |
static ColourValue | ForestGreen () |
Creates a ColourValue representing the colour ForestGreen. More... | |
static ColourValue | Fuchsia () |
Creates a ColourValue representing the colour Fuchsia. More... | |
static ColourValue | Gainsboro () |
Creates a ColourValue representing the colour Gainsboro. More... | |
static String | GetSerializableName () |
Get the name of the the XML tag this class will leave behind as its instances are serialized. More... | |
static ColourValue | GhostWhite () |
Creates a ColourValue representing the colour GhostWhite. More... | |
static ColourValue | Gold () |
Creates a ColourValue representing the colour Gold. More... | |
static ColourValue | GoldenRod () |
Creates a ColourValue representing the colour GoldenRod. More... | |
static ColourValue | Gray () |
Creates a ColourValue representing the colour Gray. More... | |
static ColourValue | Green () |
Creates a ColourValue representing the colour Green. More... | |
static ColourValue | GreenYellow () |
Creates a ColourValue representing the colour GreenYellow. More... | |
static ColourValue | HoneyDew () |
Creates a ColourValue representing the colour HoneyDew. More... | |
static ColourValue | HotPink () |
Creates a ColourValue representing the colour HotPink. More... | |
static ColourValue | IndianRed () |
Creates a ColourValue representing the colour IndianRed. More... | |
static ColourValue | Indigo () |
Creates a ColourValue representing the colour Indigo. More... | |
static ColourValue | Ivory () |
Creates a ColourValue representing the colour Ivory. More... | |
static ColourValue | Khaki () |
Creates a ColourValue representing the colour Khaki. More... | |
static ColourValue | Lavender () |
Creates a ColourValue representing the colour Lavender. More... | |
static ColourValue | LavenderBlush () |
Creates a ColourValue representing the colour LavenderBlush. More... | |
static ColourValue | LawnGreen () |
Creates a ColourValue representing the colour LawnGreen. More... | |
static ColourValue | LemonChiffon () |
Creates a ColourValue representing the colour LemonChiffon. More... | |
static ColourValue | LightBlue () |
Creates a ColourValue representing the colour LightBlue. More... | |
static ColourValue | LightCoral () |
Creates a ColourValue representing the colour LightCoral. More... | |
static ColourValue | LightCyan () |
Creates a ColourValue representing the colour LightCyan. More... | |
static ColourValue | LightGoldenRodYellow () |
Creates a ColourValue representing the colour LightGoldenRodYellow. More... | |
static ColourValue | LightGray () |
Creates a ColourValue representing the colour LightGray. More... | |
static ColourValue | LightGreen () |
Creates a ColourValue representing the colour LightGreen. More... | |
static ColourValue | LightPink () |
Creates a ColourValue representing the colour LightPink. More... | |
static ColourValue | LightSalmon () |
Creates a ColourValue representing the colour LightSalmon. More... | |
static ColourValue | LightSeaGreen () |
Creates a ColourValue representing the colour LightSeaGreen. More... | |
static ColourValue | LightSkyBlue () |
Creates a ColourValue representing the colour LightSkyBlue. More... | |
static ColourValue | LightSlateGray () |
Creates a ColourValue representing the colour LightSlateGray. More... | |
static ColourValue | LightSteelBlue () |
Creates a ColourValue representing the colour LightSteelBlue. More... | |
static ColourValue | LightYellow () |
Creates a ColourValue representing the colour LightYellow. More... | |
static ColourValue | Lime () |
Creates a ColourValue representing the colour Lime. More... | |
static ColourValue | LimeGreen () |
Creates a ColourValue representing the colour LimeGreen. More... | |
static ColourValue | Linen () |
Creates a ColourValue representing the colour Linen. More... | |
static ColourValue | Magenta () |
Creates a ColourValue representing the colour Magenta. More... | |
static ColourValue | Maroon () |
Creates a ColourValue representing the colour Maroon. More... | |
static ColourValue | MediumAquamarine () |
Creates a ColourValue representing the colour MediumAquamarine. More... | |
static ColourValue | MediumBlue () |
Creates a ColourValue representing the colour MediumBlue. More... | |
static ColourValue | MediumOrchid () |
Creates a ColourValue representing the colour MediumOrchid. More... | |
static ColourValue | MediumPurple () |
Creates a ColourValue representing the colour MediumPurple. More... | |
static ColourValue | MediumSeaGreen () |
Creates a ColourValue representing the colour MediumSeaGreen. More... | |
static ColourValue | MediumSlateBlue () |
Creates a ColourValue representing the colour MediumSlateBlue. More... | |
static ColourValue | MediumSpringGreen () |
Creates a ColourValue representing the colour MediumSpringGreen. More... | |
static ColourValue | MediumTurquoise () |
Creates a ColourValue representing the colour MediumTurquoise. More... | |
static ColourValue | MediumVioletRed () |
Creates a ColourValue representing the colour MediumVioletRed. More... | |
static ColourValue | MidnightBlue () |
Creates a ColourValue representing the colour MidnightBlue. More... | |
static ColourValue | MintCream () |
Creates a ColourValue representing the colour MintCream. More... | |
static ColourValue | MistyRose () |
Creates a ColourValue representing the colour MistyRose. More... | |
static ColourValue | Moccasin () |
Creates a ColourValue representing the colour Moccasin. More... | |
static ColourValue | NavajoWhite () |
Creates a ColourValue representing the colour NavajoWhite. More... | |
static ColourValue | Navy () |
Creates a ColourValue representing the colour Navy. More... | |
static ColourValue | OldLace () |
Creates a ColourValue representing the colour OldLace. More... | |
static ColourValue | Olive () |
Creates a ColourValue representing the colour Olive. More... | |
static ColourValue | OliveDrab () |
Creates a ColourValue representing the colour OliveDrab. More... | |
static ColourValue | Orange () |
Creates a ColourValue representing the colour Orange. More... | |
static ColourValue | OrangeRed () |
Creates a ColourValue representing the colour OrangeRed. More... | |
static ColourValue | Orchid () |
Creates a ColourValue representing the colour Orchid. More... | |
static ColourValue | PaleGoldenRod () |
Creates a ColourValue representing the colour PaleGoldenRod. More... | |
static ColourValue | PaleGreen () |
Creates a ColourValue representing the colour PaleGreen. More... | |
static ColourValue | PaleTurquoise () |
Creates a ColourValue representing the colour PaleTurquoise. More... | |
static ColourValue | PaleVioletRed () |
Creates a ColourValue representing the colour PaleVioletRed. More... | |
static ColourValue | PapayaWhip () |
Creates a ColourValue representing the colour PapayaWhip. More... | |
static ColourValue | PeachPuff () |
Creates a ColourValue representing the colour PeachPuff. More... | |
static ColourValue | Peru () |
Creates a ColourValue representing the colour Peru. More... | |
static ColourValue | Pink () |
Creates a ColourValue representing the colour Pink. More... | |
static ColourValue | Plum () |
Creates a ColourValue representing the colour Plum. More... | |
static ColourValue | PowderBlue () |
Creates a ColourValue representing the colour PowderBlue. More... | |
static ColourValue | Purple () |
Creates a ColourValue representing the colour Purple. More... | |
static ColourValue | Red () |
Creates a ColourValue representing the colour Red. More... | |
static ColourValue | RosyBrown () |
Creates a ColourValue representing the colour RosyBrown. More... | |
static ColourValue | RoyalBlue () |
Creates a ColourValue representing the colour RoyalBlue. More... | |
static ColourValue | SaddleBrown () |
Creates a ColourValue representing the colour SaddleBrown. More... | |
static ColourValue | Salmon () |
Creates a ColourValue representing the colour Salmon. More... | |
static ColourValue | SandyBrown () |
Creates a ColourValue representing the colour SandyBrown. More... | |
static ColourValue | SeaGreen () |
Creates a ColourValue representing the colour SeaGreen. More... | |
static ColourValue | SeaShell () |
Creates a ColourValue representing the colour SeaShell. More... | |
static ColourValue | Sienna () |
Creates a ColourValue representing the colour Sienna. More... | |
static ColourValue | Silver () |
Creates a ColourValue representing the colour Silver. More... | |
static ColourValue | SkyBlue () |
Creates a ColourValue representing the colour SkyBlue. More... | |
static ColourValue | SlateBlue () |
Creates a ColourValue representing the colour SlateBlue. More... | |
static ColourValue | SlateGray () |
Creates a ColourValue representing the colour SlateGray. More... | |
static ColourValue | Snow () |
Creates a ColourValue representing the colour Snow. More... | |
static ColourValue | SpringGreen () |
Creates a ColourValue representing the colour SpringGreen. More... | |
static ColourValue | SteelBlue () |
Creates a ColourValue representing the colour SteelBlue. More... | |
static ColourValue | Tan () |
Creates a ColourValue representing the colour Tan. More... | |
static ColourValue | Teal () |
Creates a ColourValue representing the colour Teal. More... | |
static ColourValue | Thistle () |
Creates a ColourValue representing the colour Thistle. More... | |
static ColourValue | Tomato () |
Creates a ColourValue representing the colour Tomato. More... | |
static ColourValue | Transparent () |
Creates a ColourValue representing no colour. More... | |
static ColourValue | Turquoise () |
Creates a ColourValue representing the colour Turquoise. More... | |
static ColourValue | Violet () |
Creates a ColourValue representing the colour Violet. More... | |
static ColourValue | Wheat () |
Creates a ColourValue representing the colour Wheat. More... | |
static ColourValue | White () |
Creates a ColourValue representing the colour White. More... | |
static ColourValue | WhiteSmoke () |
Creates a ColourValue representing the colour WhiteSmoke. More... | |
static ColourValue | Yellow () |
Creates a ColourValue representing the colour Yellow. More... | |
static ColourValue | YellowGreen () |
Creates a ColourValue representing the colour YellowGreen. More... | |
Public Attributes | |
Real | AlphaChannel |
Value from 0.0 to 1.0 representing the transparency of the colours. 1.0 is opaque and 0.0 is clear. More... | |
Real | BlueChannel |
Value from 0.0 to 1.0 representing the amount of blue present in the colour. 1.0 if very blue, 0.0 is no blue. More... | |
Real | GreenChannel |
Value from 0.0 to 1.0 representing the amount of green present in the colour. 1.0 if very green, 0.0 is no green. More... | |
Real | RedChannel |
Value from 0.0 to 1.0 representing the amount of red present in the colour. 1.0 if very red, 0.0 is no red. More... | |
This is a simple class for holding 4 reals representing the colour any give object or lightsource can have.
Definition at line 64 of file colourvalue.h.
Mezzanine::ColourValue::ColourValue | ( | Real | Red = 1.0 , |
Real | Green = 1.0 , |
||
Real | Blue = 1.0 , |
||
Real | Alpha = 1.0 |
||
) |
4 Reals constructor.
This constructor allows you to set any values, if unset, they default to 1.0.
Red | Real representing the amount of red present in the colour. |
Green | Real representing the amount of green present in the colour. |
Blue | Real representing the amount of blue present in the colour. |
Alpha | Real representing the transparency of the colours. |
Definition at line 53 of file colourvalue.cpp.
Mezzanine::ColourValue::ColourValue | ( | const Ogre::ColourValue & | OgreValues | ) |
Ogre constructor.
Internal use only. Constructs a colourvalue class from an ogre colourvalue.
OgreValues | The Ogre ColourValue class to base this class on. |
Definition at line 61 of file colourvalue.cpp.
Mezzanine::ColourValue::ColourValue | ( | const ColourValue & | OtherColour | ) |
Mezzanine::ColourValue::ColourValue | ( | const XML::Node & | OneNode | ) |
XML Constructor.
OneNode | The XML node to deserialize from. |
Definition at line 77 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour AliceBlue.
Definition at line 186 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour AntiqueWhite.
Definition at line 189 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Aqua.
Definition at line 192 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Aquamarine.
Definition at line 195 of file colourvalue.cpp.
ColourValue Mezzanine::ColourValue::Average | ( | const ColourValue & | OtherColor | ) | const |
Get the color that is the average of this and another color.
OtherColor | The other color to average with. |
Definition at line 131 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Azure.
Definition at line 198 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Beige.
Definition at line 201 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Bisque.
Definition at line 204 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Black.
Definition at line 207 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Blanchedalmond.
Definition at line 210 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Blue.
Definition at line 213 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour BlueViolet.
Definition at line 216 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Brown.
Definition at line 219 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour BurlyWood.
Definition at line 222 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour CadetBlue.
Definition at line 225 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Chartreuse.
Definition at line 228 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Chocolate.
Definition at line 231 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Coral.
Definition at line 234 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour CornFlowerBlue.
Definition at line 237 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour CornSilk.
Definition at line 240 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Crimson.
Definition at line 243 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Cyan.
Definition at line 246 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkBlue.
Definition at line 249 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkCyan.
Definition at line 252 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkGoldenRod.
Definition at line 255 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkGray.
Definition at line 258 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkGreen.
Definition at line 261 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkKhaki.
Definition at line 264 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkMagenta.
Definition at line 267 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkOliveGreen.
Definition at line 270 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkOrange.
Definition at line 273 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkOrchid.
Definition at line 276 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkRed.
Definition at line 279 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkSalmon.
Definition at line 282 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkSeaGreen.
Definition at line 285 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkSlateBlue.
Definition at line 288 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkSlateGray.
Definition at line 291 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkTurquoise.
Definition at line 294 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DarkViolet.
Definition at line 297 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DeepPink.
Definition at line 300 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DeepSkyBlue.
Definition at line 303 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DimGray.
Definition at line 306 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour DodgerBlue.
Definition at line 309 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour FireBrick.
Definition at line 312 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour FloralWhite.
Definition at line 315 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour ForestGreen.
Definition at line 318 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Fuchsia.
Definition at line 321 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Gainsboro.
Definition at line 324 of file colourvalue.cpp.
Real Mezzanine::ColourValue::GetAlphaChannel | ( | ) | const |
Retrieve the Alpha color component.
Definition at line 120 of file colourvalue.cpp.
Real Mezzanine::ColourValue::GetBlueChannel | ( | ) | const |
Retrieve the Blue color component.
Definition at line 114 of file colourvalue.cpp.
Real Mezzanine::ColourValue::GetGreenChannel | ( | ) | const |
Retrieve the Green color component.
Definition at line 108 of file colourvalue.cpp.
Ogre::ColourValue Mezzanine::ColourValue::GetOgreColourValue | ( | ) | const |
Creates and returns an Ogre ColourValue class with values equal to this one.
This function is intended for internal use only.
Definition at line 86 of file colourvalue.cpp.
Real Mezzanine::ColourValue::GetRedChannel | ( | ) | const |
Retrieve the Red color component.
Definition at line 102 of file colourvalue.cpp.
|
static |
Get the name of the the XML tag this class will leave behind as its instances are serialized.
Definition at line 651 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour GhostWhite.
Definition at line 327 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Gold.
Definition at line 330 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour GoldenRod.
Definition at line 333 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Gray.
Definition at line 336 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Green.
Definition at line 339 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour GreenYellow.
Definition at line 342 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour HoneyDew.
Definition at line 345 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour HotPink.
Definition at line 348 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour IndianRed.
Definition at line 351 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Indigo.
Definition at line 354 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Ivory.
Definition at line 357 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Khaki.
Definition at line 360 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Lavender.
Definition at line 363 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LavenderBlush.
Definition at line 366 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LawnGreen.
Definition at line 369 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LemonChiffon.
Definition at line 372 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightBlue.
Definition at line 375 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightCoral.
Definition at line 378 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightCyan.
Definition at line 381 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightGoldenRodYellow.
Definition at line 384 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightGray.
Definition at line 387 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightGreen.
Definition at line 390 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightPink.
Definition at line 393 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightSalmon.
Definition at line 396 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightSeaGreen.
Definition at line 399 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightSkyBlue.
Definition at line 402 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightSlateGray.
Definition at line 405 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightSteelBlue.
Definition at line 408 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LightYellow.
Definition at line 411 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Lime.
Definition at line 414 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour LimeGreen.
Definition at line 417 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Linen.
Definition at line 420 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Magenta.
Definition at line 423 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Maroon.
Definition at line 426 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MediumAquamarine.
Definition at line 429 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MediumBlue.
Definition at line 432 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MediumOrchid.
Definition at line 435 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MediumPurple.
Definition at line 438 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MediumSeaGreen.
Definition at line 441 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MediumSlateBlue.
Definition at line 444 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MediumSpringGreen.
Definition at line 447 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MediumTurquoise.
Definition at line 450 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MediumVioletRed.
Definition at line 453 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MidnightBlue.
Definition at line 456 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MintCream.
Definition at line 459 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour MistyRose.
Definition at line 462 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Moccasin.
Definition at line 465 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour NavajoWhite.
Definition at line 468 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Navy.
Definition at line 471 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour OldLace.
Definition at line 474 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Olive.
Definition at line 477 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour OliveDrab.
Definition at line 480 of file colourvalue.cpp.
Boole Mezzanine::ColourValue::operator!= | ( | const ColourValue & | Colour | ) | const |
Inequality Comparison Operator.
Colour | This is another ColourValue to compare with. |
Definition at line 166 of file colourvalue.cpp.
ColourValue Mezzanine::ColourValue::operator* | ( | const Real | Scalar | ) |
Scalar Multiplication Operator.
Scalar | The Scalar to multiply all the colour channels by. |
Definition at line 142 of file colourvalue.cpp.
ColourValue Mezzanine::ColourValue::operator* | ( | const ColourValue & | Colour | ) |
Multiplication Operator.
Colour | The ColourValue to multiply each respective colour channel by. |
Definition at line 151 of file colourvalue.cpp.
ColourValue & Mezzanine::ColourValue::operator*= | ( | const ColourValue & | Colour | ) |
Multiplication Operator.
Colour | The ColourValue to multiply each respective colour channel by. |
Definition at line 160 of file colourvalue.cpp.
ColourValue Mezzanine::ColourValue::operator+ | ( | const ColourValue & | Colour | ) |
Addition Operator.
Colour | The ColourValue to add each respective colour channel by. |
Definition at line 145 of file colourvalue.cpp.
ColourValue & Mezzanine::ColourValue::operator+= | ( | const ColourValue & | Colour | ) |
Addition Operator.
Colour | The ColourValue to add each respective colour channel by. |
Definition at line 154 of file colourvalue.cpp.
ColourValue Mezzanine::ColourValue::operator- | ( | const ColourValue & | Colour | ) |
Subtraction Operator.
Colour | The ColourValue to subtract each respective colour channel by. |
Definition at line 148 of file colourvalue.cpp.
ColourValue & Mezzanine::ColourValue::operator-= | ( | const ColourValue & | Colour | ) |
Subtraction Operator.
Colour | The ColourValue to subtract each respective colour channel by. |
Definition at line 157 of file colourvalue.cpp.
void Mezzanine::ColourValue::operator= | ( | const ColourValue & | OtherColour | ) |
Assignment operator.
OtherColour | The colour values you want to overwrite this colour's values with. |
Definition at line 169 of file colourvalue.cpp.
Boole Mezzanine::ColourValue::operator== | ( | const ColourValue & | Colour | ) | const |
Equality Comparison Operator.
Colour | This is another ColourValue to compare with. |
Definition at line 163 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Orange.
Definition at line 483 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour OrangeRed.
Definition at line 486 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Orchid.
Definition at line 489 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour PaleGoldenRod.
Definition at line 492 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour PaleGreen.
Definition at line 495 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour PaleTurquoise.
Definition at line 498 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour PaleVioletRed.
Definition at line 501 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour PapayaWhip.
Definition at line 504 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour PeachPuff.
Definition at line 507 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Peru.
Definition at line 510 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Pink.
Definition at line 513 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Plum.
Definition at line 516 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour PowderBlue.
Definition at line 519 of file colourvalue.cpp.
void Mezzanine::ColourValue::ProtoDeSerialize | ( | const XML::Node & | OneNode | ) |
Take the data stored in an XML and overwrite this instance of this object with it.
OneNode | An XML::Node containing the data. |
Definition at line 633 of file colourvalue.cpp.
void Mezzanine::ColourValue::ProtoSerialize | ( | XML::Node & | CurrentRoot | ) | const |
Convert this class to an XML::Node ready for serialization.
CurrentRoot | The point in the XML hierarchy that all this ColourValue should be appended to. |
Definition at line 609 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Purple.
Definition at line 522 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Red.
Definition at line 525 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour RosyBrown.
Definition at line 528 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour RoyalBlue.
Definition at line 531 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour SaddleBrown.
Definition at line 534 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Salmon.
Definition at line 537 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour SandyBrown.
Definition at line 540 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour SeaGreen.
Definition at line 543 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour SeaShell.
Definition at line 546 of file colourvalue.cpp.
void Mezzanine::ColourValue::SetAlphaChannel | ( | const Real | Alpha | ) |
Set the Alpha component of this color.
Alpha | A Real between 0 and 1 signify how much Opaque/Transparent this will color with have. |
Definition at line 117 of file colourvalue.cpp.
void Mezzanine::ColourValue::SetBlueChannel | ( | const Real | Blue | ) |
Set the Blue component of this color.
Blue | A Real between 0 and 1 signify how much Blue this will color with have. |
Definition at line 111 of file colourvalue.cpp.
void Mezzanine::ColourValue::SetGreenChannel | ( | const Real | Green | ) |
Set the Green component of this color.
Green | A Real between 0 and 1 signify how much Green this will color with have. |
Definition at line 105 of file colourvalue.cpp.
void Mezzanine::ColourValue::SetRedChannel | ( | const Real | Red | ) |
Set the Red component of this color.
Red | A Real between 0 and 1 signify how much red this will color with have. |
Definition at line 99 of file colourvalue.cpp.
void Mezzanine::ColourValue::SetValues | ( | const Real | Red, |
const Real | Green, | ||
const Real | Blue, | ||
const Real | Alpha | ||
) |
Sets each of the colour channels.
Red | A Real between 0 and 1 signify how much red this will color with have. |
Green | A Real between 0 and 1 signify how much Green this will color with have. |
Blue | A Real between 0 and 1 signify how much Blue this will color with have. |
Alpha | A Real between 0 and 1 signify how much Opaque/Transparent this will color with have. |
Definition at line 123 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Sienna.
Definition at line 549 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Silver.
Definition at line 552 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour SkyBlue.
Definition at line 555 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour SlateBlue.
Definition at line 558 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour SlateGray.
Definition at line 561 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Snow.
Definition at line 564 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour SpringGreen.
Definition at line 567 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour SteelBlue.
Definition at line 570 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Tan.
Definition at line 573 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Teal.
Definition at line 576 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Thistle.
Definition at line 579 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Tomato.
Definition at line 582 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing no colour.
Definition at line 180 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Turquoise.
Definition at line 585 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Violet.
Definition at line 588 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Wheat.
Definition at line 591 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour White.
Definition at line 594 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour WhiteSmoke.
Definition at line 597 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour Yellow.
Definition at line 600 of file colourvalue.cpp.
|
static |
Creates a ColourValue representing the colour YellowGreen.
Definition at line 603 of file colourvalue.cpp.
Real Mezzanine::ColourValue::AlphaChannel |
Value from 0.0 to 1.0 representing the transparency of the colours. 1.0 is opaque and 0.0 is clear.
Definition at line 79 of file colourvalue.h.
Real Mezzanine::ColourValue::BlueChannel |
Value from 0.0 to 1.0 representing the amount of blue present in the colour. 1.0 if very blue, 0.0 is no blue.
Definition at line 76 of file colourvalue.h.
Real Mezzanine::ColourValue::GreenChannel |
Value from 0.0 to 1.0 representing the amount of green present in the colour. 1.0 if very green, 0.0 is no green.
Definition at line 73 of file colourvalue.h.
Real Mezzanine::ColourValue::RedChannel |
Value from 0.0 to 1.0 representing the amount of red present in the colour. 1.0 if very red, 0.0 is no red.
Definition at line 70 of file colourvalue.h.