AGX Dynamics  2.35.0.1
agxRender::Color Class Reference

Utility color class with "common colors". More...

#include <Color.h>

+ Inheritance diagram for agxRender::Color:

Public Member Functions

 Color ()
 Default constructor. Set color to 0,0,0,1. More...
 
 Color (const agx::Vec3f &color, float a=1.f)
 Constructor. More...
 
 Color (float c)
 Constructor which set all elements of color to c. More...
 
 Color (float r, float g, float b, float a=1.f)
 Constructor. More...
 
float & a ()
 
float a () const
 
AGXPHYSICS_EXPORT Color asHSV () const
 
agx::Vec4 asVec4 () const
 
float & b ()
 
float b () const
 
AGXPHYSICS_EXPORT void fromHSV (const Color &hsv)
 
AGXPHYSICS_EXPORT void fromHSV (float h, float s, float v)
 Set the color as HSV (Hue, Saturation, Value) More...
 
float & g ()
 
float g () const
 
 operator agx::Vec3d () const
 
 operator agx::Vec3f () const
 
 operator agx::Vec4d () const
 
float & r ()
 
float r () const
 
- Public Member Functions inherited from agx::Vec4T< T >
 Vec4T ()
 Default constructor. More...
 
 Vec4T (const T v[4])
 Constructor, initialize elements with the specified scalars. More...
 
 Vec4T (const Vec3T< T > &v3, T w)
 Constructor, initialize the first three elements with v3 and the last with w. More...
 
 Vec4T (const Vec4T &copy)=default
 Copy constructor. More...
 
template<typename T2 >
 Vec4T (const Vec4T< T2 > &copy)
 Copy constructor for other types. More...
 
 Vec4T (T r)
 Constructor, fill all elements with scalar r. More...
 
 Vec4T (T x, T y, T z, T w)
 Constructor, initialize elements with the specified scalars. More...
 
Vec3T< T > asVec3 () const
 
T at (size_t i)
 
void clamp (const Vec4T &min, const Vec4T &max)
 Clamp a vector between a lower and upper bound (per component). More...
 
Real distance (const Vec4T &v2) const
 
Real distance2 (const Vec4T &v2) const
 
Real distance2 (const Vec4T &v2) const
 
Real distance2 (const Vec4T &v2) const
 
Real distance2 (const Vec4T &v2) const
 
Real distance2 (const Vec4T &v2) const
 
bool equalsZero () const
 
bool isFinite () const
 
bool isNaN () const
 
bool isValid () const
 
Real length () const
 
Real length2 () const
 
T maxComponent () const
 
size_t maxElement () const
 
T minComponent () const
 
size_t minElement () const
 
Real normalize ()
 Normalize the vector so that it has length unity. More...
 
bool operator!= (const Vec4T &v) const
 In-equality test. More...
 
T operator* (const Vec4T &rhs) const
 
const Vec4T operator* (T rhs) const
 
Vec4T & operator*= (T rhs)
 
const Vec4T operator+ (const T &rhs) const
 Binary vector add. More...
 
const Vec4T operator+ (const Vec4T &rhs) const
 Binary vector add. More...
 
Vec4T & operator+= (const T &rhs)
 Unary vector add. More...
 
Vec4T & operator+= (const Vec4T &rhs)
 Unary vector add. More...
 
const Vec4T operator- () const
 Negation operator. More...
 
const Vec4T operator- (const T &rhs) const
 Binary vector subtract. More...
 
const Vec4T operator- (const Vec4T &rhs) const
 Binary vector subtract. More...
 
Vec4T & operator-= (const T &rhs)
 Unary vector subtract. More...
 
Vec4T & operator-= (const Vec4T &rhs)
 Unary vector subtract. More...
 
const Vec4T operator/ (T rhs) const
 Divide by scalar. More...
 
Vec4T & operator/= (T rhs)
 
bool operator== (const Vec4T &v) const
 Equality test. More...
 
T & operator[] (size_t i)
 
const T & operator[] (size_t i) const
 
const Vec4T operator| (const Vec4T &rhs) const
 
T * ptr ()
 
const T * ptr () const
 
void set (const Vec4T &rhs)
 Set the value of the vector with rhs. More...
 
void set (T val, size_t i)
 Set the value of element i. Mainly for accessing vec4 in Lua. More...
 
void set (T value)
 Set all elements of the vector with scalar value value. More...
 
void set (T x, T y, T z, T w)
 Set the elements of the vector. More...
 
T & w ()
 
T w () const
 
T & x ()
 
T x () const
 
T & y ()
 
T y () const
 
T & z ()
 
T z () const
 

Static Public Member Functions

static agxRender::Color AliceBlue ()
 
static agxRender::Color AntiqueWhite ()
 
static agxRender::Color Aqua ()
 
static agxRender::Color Aquamarine ()
 
static agxRender::Color Azure ()
 
static agxRender::Color Beige ()
 
static agxRender::Color Bisque ()
 
static agxRender::Color Black ()
 
static agxRender::Color BlanchedAlmond ()
 
static agxRender::Color Blue ()
 
static agxRender::Color BlueViolet ()
 
static agxRender::Color Brown ()
 
static agxRender::Color Burlywood ()
 
static agxRender::Color CadetBlue ()
 
static agxRender::Color Chartreuse ()
 
static agxRender::Color Chocolate ()
 
static agxRender::Color Coral ()
 
static agxRender::Color CornflowerBlue ()
 
static agxRender::Color Cornsilk ()
 
static agxRender::Color Cyan ()
 
static agxRender::Color DarkBlue ()
 
static agxRender::Color DarkCyan ()
 
static agxRender::Color DarkGoldenrod ()
 
static agxRender::Color DarkGray ()
 
static agxRender::Color DarkGreen ()
 
static agxRender::Color DarkKhaki ()
 
static agxRender::Color DarkMagenta ()
 
static agxRender::Color DarkOliveGreen ()
 
static agxRender::Color DarkOrange ()
 
static agxRender::Color DarkOrchid ()
 
static agxRender::Color DarkRed ()
 
static agxRender::Color DarkSalmon ()
 
static agxRender::Color DarkSeaGreen ()
 
static agxRender::Color DarkSlateBlue ()
 
static agxRender::Color DarkSlateGray ()
 
static agxRender::Color DarkTurquoise ()
 
static agxRender::Color DarkViolet ()
 
static agxRender::Color DeepPink ()
 
static agxRender::Color DeepSkyBlue ()
 
static agxRender::Color DimGray ()
 
static agxRender::Color DodgerBlue ()
 
static agxRender::Color Firebrick ()
 
static agxRender::Color FloralWhite ()
 
static agxRender::Color ForestGreen ()
 
static agxRender::Color Fuschia ()
 
static agxRender::Color Gainsboro ()
 
static AGXPHYSICS_EXPORT agxRender::Color getColor (size_t)
 
static AGXPHYSICS_EXPORT size_t getNumColors ()
 
static agxRender::Color GhostWhite ()
 
static agxRender::Color Gold ()
 
static agxRender::Color Goldenrod ()
 
static agxRender::Color Gray ()
 
static agxRender::Color Green ()
 
static agxRender::Color GreenYellow ()
 
static agxRender::Color Honeydew ()
 
static agxRender::Color HotPink ()
 
static AGXPHYSICS_EXPORT Color HSVToRGB (const Color &rgb)
 Convert a HSV color to RGB. More...
 
static agxRender::Color IndianRed ()
 
static agxRender::Color Ivory ()
 
static agxRender::Color Khaki ()
 
static agxRender::Color Lavender ()
 
static agxRender::Color LavenderBlush ()
 
static agxRender::Color LawnGreen ()
 
static agxRender::Color LemonChiffon ()
 
static agxRender::Color LightBlue ()
 
static agxRender::Color LightCoral ()
 
static agxRender::Color LightCyan ()
 
static agxRender::Color LightGoldenrod ()
 
static agxRender::Color LightGoldenrodYellow ()
 
static agxRender::Color LightGray ()
 
static agxRender::Color LightGreen ()
 
static agxRender::Color LightPink ()
 
static agxRender::Color LightSalmon ()
 
static agxRender::Color LightSeaGreen ()
 
static agxRender::Color LightSkyBlue ()
 
static agxRender::Color LightSlateBlue ()
 
static agxRender::Color LightSlateGray ()
 
static agxRender::Color LightSteelBlue ()
 
static agxRender::Color LightYellow ()
 
static agxRender::Color Lime ()
 
static agxRender::Color LimeGreen ()
 
static agxRender::Color Linen ()
 
static agxRender::Color Magenta ()
 
static agxRender::Color Maroon ()
 
static agxRender::Color MediumAquamarine ()
 
static agxRender::Color MediumBlue ()
 
static agxRender::Color MediumOrchid ()
 
static agxRender::Color MediumPurple ()
 
static agxRender::Color MediumSeaGreen ()
 
static agxRender::Color MediumSlateBlue ()
 
static agxRender::Color MediumSpringGreen ()
 
static agxRender::Color MediumTurquoise ()
 
static agxRender::Color MediumVioletRed ()
 
static agxRender::Color MidnightBlue ()
 
static agxRender::Color MintCream ()
 
static agxRender::Color MistyRose ()
 
static agxRender::Color Moccasin ()
 
static agxRender::Color NavajoWhite ()
 
static agxRender::Color Navy ()
 
static agxRender::Color OldLace ()
 
static agxRender::Color Olive ()
 
static agxRender::Color OliveDrab ()
 
static agxRender::Color Orange ()
 
static agxRender::Color OrangeRed ()
 
static agxRender::Color Orchid ()
 
static agxRender::Color PaleGoldenrod ()
 
static agxRender::Color PaleGreen ()
 
static agxRender::Color PaleTurquoise ()
 
static agxRender::Color PaleVioletRed ()
 
static agxRender::Color PapayaWhip ()
 
static agxRender::Color PeachPuff ()
 
static agxRender::Color Peru ()
 
static agxRender::Color Pink ()
 
static agxRender::Color Plum ()
 
static agxRender::Color PowderBlue ()
 
static agxRender::Color Purple ()
 
static agxRender::Color Red ()
 
static AGXPHYSICS_EXPORT Color RGBToHSV (const Color &rgb)
 Convert a rgb color to HSV. More...
 
static agxRender::Color RosyBrown ()
 
static agxRender::Color RoyalBlue ()
 
static agxRender::Color SaddleBrown ()
 
static agxRender::Color Salmon ()
 
static agxRender::Color SandyBrown ()
 
static agxRender::Color SeaGreen ()
 
static agxRender::Color Seashell ()
 
static agxRender::Color Sienna ()
 
static agxRender::Color Silver ()
 
static agxRender::Color SkyBlue ()
 
static agxRender::Color SlateBlue ()
 
static agxRender::Color SlateGray ()
 
static agxRender::Color Snow ()
 
static agxRender::Color SpringGreen ()
 
static agxRender::Color SteelBlue ()
 
static agxRender::Color Tan ()
 
static agxRender::Color Teal ()
 
static agxRender::Color Thistle ()
 
static agxRender::Color Tomato ()
 
static agxRender::Color Turquoise ()
 
static agxRender::Color Violet ()
 
static agxRender::Color VioletRed ()
 
static agxRender::Color Wheat ()
 
static agxRender::Color White ()
 
static agxRender::Color WhiteSmoke ()
 
static agxRender::Color Yellow ()
 
static agxRender::Color YellowGreen ()
 
- Static Public Member Functions inherited from agx::Vec4T< T >
static Vec4T componentMax (const Vec4T &v1, const Vec4T &v2)
 
static Vec4T componentMin (const Vec4T &v1, const Vec4T &v2)
 
static Vec4T random (const Vec4T &min, const Vec4T &max)
 
static Vec4T random (T min, T max)
 

Additional Inherited Members

- Public Types inherited from agx::Vec4T< T >
typedef T Type
 

Detailed Description

Utility color class with "common colors".

Ref: http://kb.iu.edu/data/aetf.html

Stored as float [0..1]

Definition at line 33 of file Color.h.

Constructor & Destructor Documentation

◆ Color() [1/4]

agxRender::Color::Color ( )
inline

Default constructor. Set color to 0,0,0,1.

Definition at line 38 of file Color.h.

◆ Color() [2/4]

agxRender::Color::Color ( float  r,
float  g,
float  b,
float  a = 1.f 
)
inlineexplicit

Constructor.

Definition at line 42 of file Color.h.

◆ Color() [3/4]

agxRender::Color::Color ( const agx::Vec3f &  color,
float  a = 1.f 
)
inlineexplicit

Constructor.

Definition at line 46 of file Color.h.

◆ Color() [4/4]

agxRender::Color::Color ( float  c)
inlineexplicit

Constructor which set all elements of color to c.

Parameters
c- Color (r,g,b,a) will be set to c

Definition at line 53 of file Color.h.

Member Function Documentation

◆ a() [1/2]

float& agxRender::Color::a ( )
inline

Definition at line 64 of file Color.h.

References agx::Vec4T< T >::w().

◆ a() [2/2]

float agxRender::Color::a ( ) const
inline

Definition at line 63 of file Color.h.

References agx::Vec4T< T >::w().

Referenced by asVec4(), and operator agx::Vec4d().

◆ AliceBlue()

static agxRender::Color agxRender::Color::AliceBlue ( )
inlinestatic

Definition at line 113 of file Color.h.

◆ AntiqueWhite()

static agxRender::Color agxRender::Color::AntiqueWhite ( )
inlinestatic

Definition at line 136 of file Color.h.

◆ Aqua()

static agxRender::Color agxRender::Color::Aqua ( )
inlinestatic

Definition at line 179 of file Color.h.

◆ Aquamarine()

static agxRender::Color agxRender::Color::Aquamarine ( )
inlinestatic

Definition at line 117 of file Color.h.

◆ asHSV()

AGXPHYSICS_EXPORT Color agxRender::Color::asHSV ( ) const
Returns
the color as HSV

◆ asVec4()

agx::Vec4 agxRender::Color::asVec4 ( ) const
inline

Definition at line 81 of file Color.h.

References a(), b(), g(), and r().

◆ Azure()

static agxRender::Color agxRender::Color::Azure ( )
inlinestatic

Definition at line 234 of file Color.h.

◆ b() [1/2]

float& agxRender::Color::b ( )
inline

Definition at line 62 of file Color.h.

References agx::Vec4T< T >::z().

◆ b() [2/2]

float agxRender::Color::b ( ) const
inline

Definition at line 61 of file Color.h.

References agx::Vec4T< T >::z().

Referenced by asVec4(), operator agx::Vec3d(), operator agx::Vec3f(), and operator agx::Vec4d().

◆ Beige()

static agxRender::Color agxRender::Color::Beige ( )
inlinestatic

Definition at line 178 of file Color.h.

◆ Bisque()

static agxRender::Color agxRender::Color::Bisque ( )
inlinestatic

Definition at line 172 of file Color.h.

◆ Black()

static agxRender::Color agxRender::Color::Black ( )
inlinestatic

Definition at line 236 of file Color.h.

◆ BlanchedAlmond()

static agxRender::Color agxRender::Color::BlanchedAlmond ( )
inlinestatic

Definition at line 143 of file Color.h.

◆ Blue()

static agxRender::Color agxRender::Color::Blue ( )
inlinestatic

Definition at line 202 of file Color.h.

◆ BlueViolet()

static agxRender::Color agxRender::Color::BlueViolet ( )
inlinestatic

Definition at line 243 of file Color.h.

◆ Brown()

static agxRender::Color agxRender::Color::Brown ( )
inlinestatic

Definition at line 151 of file Color.h.

◆ Burlywood()

static agxRender::Color agxRender::Color::Burlywood ( )
inlinestatic

Definition at line 155 of file Color.h.

◆ CadetBlue()

static agxRender::Color agxRender::Color::CadetBlue ( )
inlinestatic

Definition at line 127 of file Color.h.

◆ Chartreuse()

static agxRender::Color agxRender::Color::Chartreuse ( )
inlinestatic

Definition at line 194 of file Color.h.

◆ Chocolate()

static agxRender::Color agxRender::Color::Chocolate ( )
inlinestatic

Definition at line 245 of file Color.h.

◆ Coral()

static agxRender::Color agxRender::Color::Coral ( )
inlinestatic

Definition at line 247 of file Color.h.

◆ CornflowerBlue()

static agxRender::Color agxRender::Color::CornflowerBlue ( )
inlinestatic

Definition at line 176 of file Color.h.

◆ Cornsilk()

static agxRender::Color agxRender::Color::Cornsilk ( )
inlinestatic

Definition at line 132 of file Color.h.

◆ Cyan()

static agxRender::Color agxRender::Color::Cyan ( )
inlinestatic

Definition at line 173 of file Color.h.

◆ DarkBlue()

static agxRender::Color agxRender::Color::DarkBlue ( )
inlinestatic

Definition at line 139 of file Color.h.

◆ DarkCyan()

static agxRender::Color agxRender::Color::DarkCyan ( )
inlinestatic

Definition at line 134 of file Color.h.

◆ DarkGoldenrod()

static agxRender::Color agxRender::Color::DarkGoldenrod ( )
inlinestatic

Definition at line 109 of file Color.h.

◆ DarkGray()

static agxRender::Color agxRender::Color::DarkGray ( )
inlinestatic

Definition at line 180 of file Color.h.

◆ DarkGreen()

static agxRender::Color agxRender::Color::DarkGreen ( )
inlinestatic

Definition at line 230 of file Color.h.

◆ DarkKhaki()

static agxRender::Color agxRender::Color::DarkKhaki ( )
inlinestatic

Definition at line 108 of file Color.h.

◆ DarkMagenta()

static agxRender::Color agxRender::Color::DarkMagenta ( )
inlinestatic

Definition at line 164 of file Color.h.

◆ DarkOliveGreen()

static agxRender::Color agxRender::Color::DarkOliveGreen ( )
inlinestatic

Definition at line 222 of file Color.h.

◆ DarkOrange()

static agxRender::Color agxRender::Color::DarkOrange ( )
inlinestatic

Definition at line 159 of file Color.h.

◆ DarkOrchid()

static agxRender::Color agxRender::Color::DarkOrchid ( )
inlinestatic

Definition at line 135 of file Color.h.

◆ DarkRed()

static agxRender::Color agxRender::Color::DarkRed ( )
inlinestatic

Definition at line 225 of file Color.h.

◆ DarkSalmon()

static agxRender::Color agxRender::Color::DarkSalmon ( )
inlinestatic

Definition at line 210 of file Color.h.

◆ DarkSeaGreen()

static agxRender::Color agxRender::Color::DarkSeaGreen ( )
inlinestatic

Definition at line 170 of file Color.h.

◆ DarkSlateBlue()

static agxRender::Color agxRender::Color::DarkSlateBlue ( )
inlinestatic

Definition at line 190 of file Color.h.

◆ DarkSlateGray()

static agxRender::Color agxRender::Color::DarkSlateGray ( )
inlinestatic

Definition at line 126 of file Color.h.

◆ DarkTurquoise()

static agxRender::Color agxRender::Color::DarkTurquoise ( )
inlinestatic

Definition at line 226 of file Color.h.

◆ DarkViolet()

static agxRender::Color agxRender::Color::DarkViolet ( )
inlinestatic

Definition at line 192 of file Color.h.

◆ DeepPink()

static agxRender::Color agxRender::Color::DeepPink ( )
inlinestatic

Definition at line 218 of file Color.h.

◆ DeepSkyBlue()

static agxRender::Color agxRender::Color::DeepSkyBlue ( )
inlinestatic

Definition at line 161 of file Color.h.

◆ DimGray()

static agxRender::Color agxRender::Color::DimGray ( )
inlinestatic

Definition at line 148 of file Color.h.

◆ DodgerBlue()

static agxRender::Color agxRender::Color::DodgerBlue ( )
inlinestatic

Definition at line 158 of file Color.h.

◆ Firebrick()

static agxRender::Color agxRender::Color::Firebrick ( )
inlinestatic

Definition at line 186 of file Color.h.

◆ FloralWhite()

static agxRender::Color agxRender::Color::FloralWhite ( )
inlinestatic

Definition at line 122 of file Color.h.

◆ ForestGreen()

static agxRender::Color agxRender::Color::ForestGreen ( )
inlinestatic

Definition at line 141 of file Color.h.

◆ fromHSV() [1/2]

AGXPHYSICS_EXPORT void agxRender::Color::fromHSV ( const Color &  hsv)

◆ fromHSV() [2/2]

AGXPHYSICS_EXPORT void agxRender::Color::fromHSV ( float  h,
float  s,
float  v 
)

Set the color as HSV (Hue, Saturation, Value)

◆ Fuschia()

static agxRender::Color agxRender::Color::Fuschia ( )
inlinestatic

Definition at line 246 of file Color.h.

◆ g() [1/2]

float& agxRender::Color::g ( )
inline

Definition at line 60 of file Color.h.

References agx::Vec4T< T >::y().

◆ g() [2/2]

float agxRender::Color::g ( ) const
inline

Definition at line 59 of file Color.h.

References agx::Vec4T< T >::y().

Referenced by asVec4(), operator agx::Vec3d(), operator agx::Vec3f(), and operator agx::Vec4d().

◆ Gainsboro()

static agxRender::Color agxRender::Color::Gainsboro ( )
inlinestatic

Definition at line 211 of file Color.h.

◆ getColor()

static AGXPHYSICS_EXPORT agxRender::Color agxRender::Color::getColor ( size_t  )
static
Returns
a color as defined by the list of static methods below. Index goes from 0 to the number of colors. Invalid index returns first color.

◆ getNumColors()

static AGXPHYSICS_EXPORT size_t agxRender::Color::getNumColors ( )
static
Returns
number of colors in predefined color table

◆ GhostWhite()

static agxRender::Color agxRender::Color::GhostWhite ( )
inlinestatic

Definition at line 229 of file Color.h.

◆ Gold()

static agxRender::Color agxRender::Color::Gold ( )
inlinestatic

Definition at line 195 of file Color.h.

◆ Goldenrod()

static agxRender::Color agxRender::Color::Goldenrod ( )
inlinestatic

Definition at line 208 of file Color.h.

◆ Gray()

static agxRender::Color agxRender::Color::Gray ( )
inlinestatic

Definition at line 224 of file Color.h.

◆ Green()

static agxRender::Color agxRender::Color::Green ( )
inlinestatic

Definition at line 169 of file Color.h.

◆ GreenYellow()

static agxRender::Color agxRender::Color::GreenYellow ( )
inlinestatic

Definition at line 182 of file Color.h.

◆ Honeydew()

static agxRender::Color agxRender::Color::Honeydew ( )
inlinestatic

Definition at line 242 of file Color.h.

◆ HotPink()

static agxRender::Color agxRender::Color::HotPink ( )
inlinestatic

Definition at line 146 of file Color.h.

◆ HSVToRGB()

static AGXPHYSICS_EXPORT Color agxRender::Color::HSVToRGB ( const Color &  rgb)
static

Convert a HSV color to RGB.

◆ IndianRed()

static agxRender::Color agxRender::Color::IndianRed ( )
inlinestatic

Definition at line 138 of file Color.h.

◆ Ivory()

static agxRender::Color agxRender::Color::Ivory ( )
inlinestatic

Definition at line 163 of file Color.h.

◆ Khaki()

static agxRender::Color agxRender::Color::Khaki ( )
inlinestatic

Definition at line 157 of file Color.h.

◆ Lavender()

static agxRender::Color agxRender::Color::Lavender ( )
inlinestatic

Definition at line 188 of file Color.h.

◆ LavenderBlush()

static agxRender::Color agxRender::Color::LavenderBlush ( )
inlinestatic

Definition at line 199 of file Color.h.

◆ LawnGreen()

static agxRender::Color agxRender::Color::LawnGreen ( )
inlinestatic

Definition at line 232 of file Color.h.

◆ LemonChiffon()

static agxRender::Color agxRender::Color::LemonChiffon ( )
inlinestatic

Definition at line 120 of file Color.h.

◆ LightBlue()

static agxRender::Color agxRender::Color::LightBlue ( )
inlinestatic

Definition at line 215 of file Color.h.

◆ LightCoral()

static agxRender::Color agxRender::Color::LightCoral ( )
inlinestatic

Definition at line 240 of file Color.h.

◆ LightCyan()

static agxRender::Color agxRender::Color::LightCyan ( )
inlinestatic

Definition at line 165 of file Color.h.

◆ LightGoldenrod()

static agxRender::Color agxRender::Color::LightGoldenrod ( )
inlinestatic

Definition at line 131 of file Color.h.

◆ LightGoldenrodYellow()

static agxRender::Color agxRender::Color::LightGoldenrodYellow ( )
inlinestatic

Definition at line 244 of file Color.h.

◆ LightGray()

static agxRender::Color agxRender::Color::LightGray ( )
inlinestatic

Definition at line 238 of file Color.h.

◆ LightGreen()

static agxRender::Color agxRender::Color::LightGreen ( )
inlinestatic

Definition at line 223 of file Color.h.

◆ LightPink()

static agxRender::Color agxRender::Color::LightPink ( )
inlinestatic

Definition at line 175 of file Color.h.

◆ LightSalmon()

static agxRender::Color agxRender::Color::LightSalmon ( )
inlinestatic

Definition at line 115 of file Color.h.

◆ LightSeaGreen()

static agxRender::Color agxRender::Color::LightSeaGreen ( )
inlinestatic

Definition at line 166 of file Color.h.

◆ LightSkyBlue()

static agxRender::Color agxRender::Color::LightSkyBlue ( )
inlinestatic

Definition at line 177 of file Color.h.

◆ LightSlateBlue()

static agxRender::Color agxRender::Color::LightSlateBlue ( )
inlinestatic

Definition at line 125 of file Color.h.

◆ LightSlateGray()

static agxRender::Color agxRender::Color::LightSlateGray ( )
inlinestatic

Definition at line 142 of file Color.h.

◆ LightSteelBlue()

static agxRender::Color agxRender::Color::LightSteelBlue ( )
inlinestatic

Definition at line 168 of file Color.h.

◆ LightYellow()

static agxRender::Color agxRender::Color::LightYellow ( )
inlinestatic

Definition at line 233 of file Color.h.

◆ Lime()

static agxRender::Color agxRender::Color::Lime ( )
inlinestatic

Definition at line 183 of file Color.h.

◆ LimeGreen()

static agxRender::Color agxRender::Color::LimeGreen ( )
inlinestatic

Definition at line 145 of file Color.h.

◆ Linen()

static agxRender::Color agxRender::Color::Linen ( )
inlinestatic

Definition at line 124 of file Color.h.

◆ Magenta()

static agxRender::Color agxRender::Color::Magenta ( )
inlinestatic

Definition at line 201 of file Color.h.

◆ Maroon()

static agxRender::Color agxRender::Color::Maroon ( )
inlinestatic

Definition at line 123 of file Color.h.

◆ MediumAquamarine()

static agxRender::Color agxRender::Color::MediumAquamarine ( )
inlinestatic

Definition at line 191 of file Color.h.

◆ MediumBlue()

static agxRender::Color agxRender::Color::MediumBlue ( )
inlinestatic

Definition at line 152 of file Color.h.

◆ MediumOrchid()

static agxRender::Color agxRender::Color::MediumOrchid ( )
inlinestatic

Definition at line 171 of file Color.h.

◆ MediumPurple()

static agxRender::Color agxRender::Color::MediumPurple ( )
inlinestatic

Definition at line 167 of file Color.h.

◆ MediumSeaGreen()

static agxRender::Color agxRender::Color::MediumSeaGreen ( )
inlinestatic

Definition at line 228 of file Color.h.

◆ MediumSlateBlue()

static agxRender::Color agxRender::Color::MediumSlateBlue ( )
inlinestatic

Definition at line 150 of file Color.h.

◆ MediumSpringGreen()

static agxRender::Color agxRender::Color::MediumSpringGreen ( )
inlinestatic

Definition at line 137 of file Color.h.

◆ MediumTurquoise()

static agxRender::Color agxRender::Color::MediumTurquoise ( )
inlinestatic

Definition at line 209 of file Color.h.

◆ MediumVioletRed()

static agxRender::Color agxRender::Color::MediumVioletRed ( )
inlinestatic

Definition at line 184 of file Color.h.

◆ MidnightBlue()

static agxRender::Color agxRender::Color::MidnightBlue ( )
inlinestatic

Definition at line 235 of file Color.h.

◆ MintCream()

static agxRender::Color agxRender::Color::MintCream ( )
inlinestatic

Definition at line 156 of file Color.h.

◆ MistyRose()

static agxRender::Color agxRender::Color::MistyRose ( )
inlinestatic

Definition at line 237 of file Color.h.

◆ Moccasin()

static agxRender::Color agxRender::Color::Moccasin ( )
inlinestatic

Definition at line 144 of file Color.h.

◆ NavajoWhite()

static agxRender::Color agxRender::Color::NavajoWhite ( )
inlinestatic

Definition at line 128 of file Color.h.

◆ Navy()

static agxRender::Color agxRender::Color::Navy ( )
inlinestatic

Definition at line 189 of file Color.h.

◆ OldLace()

static agxRender::Color agxRender::Color::OldLace ( )
inlinestatic

Definition at line 121 of file Color.h.

◆ Olive()

static agxRender::Color agxRender::Color::Olive ( )
inlinestatic

Definition at line 214 of file Color.h.

◆ OliveDrab()

static agxRender::Color agxRender::Color::OliveDrab ( )
inlinestatic

Definition at line 118 of file Color.h.

◆ operator agx::Vec3d()

agxRender::Color::operator agx::Vec3d ( ) const
inline

Definition at line 71 of file Color.h.

References b(), g(), and r().

◆ operator agx::Vec3f()

agxRender::Color::operator agx::Vec3f ( ) const
inline

Definition at line 66 of file Color.h.

References b(), g(), and r().

◆ operator agx::Vec4d()

agxRender::Color::operator agx::Vec4d ( ) const
inline

Definition at line 76 of file Color.h.

References a(), b(), g(), and r().

◆ Orange()

static agxRender::Color agxRender::Color::Orange ( )
inlinestatic

Definition at line 241 of file Color.h.

◆ OrangeRed()

static agxRender::Color agxRender::Color::OrangeRed ( )
inlinestatic

Definition at line 114 of file Color.h.

◆ Orchid()

static agxRender::Color agxRender::Color::Orchid ( )
inlinestatic

Definition at line 162 of file Color.h.

◆ PaleGoldenrod()

static agxRender::Color agxRender::Color::PaleGoldenrod ( )
inlinestatic

Definition at line 239 of file Color.h.

◆ PaleGreen()

static agxRender::Color agxRender::Color::PaleGreen ( )
inlinestatic

Definition at line 111 of file Color.h.

◆ PaleTurquoise()

static agxRender::Color agxRender::Color::PaleTurquoise ( )
inlinestatic

Definition at line 221 of file Color.h.

◆ PaleVioletRed()

static agxRender::Color agxRender::Color::PaleVioletRed ( )
inlinestatic

Definition at line 130 of file Color.h.

◆ PapayaWhip()

static agxRender::Color agxRender::Color::PapayaWhip ( )
inlinestatic

Definition at line 119 of file Color.h.

◆ PeachPuff()

static agxRender::Color agxRender::Color::PeachPuff ( )
inlinestatic

Definition at line 147 of file Color.h.

◆ Peru()

static agxRender::Color agxRender::Color::Peru ( )
inlinestatic

Definition at line 212 of file Color.h.

◆ Pink()

static agxRender::Color agxRender::Color::Pink ( )
inlinestatic

Definition at line 207 of file Color.h.

◆ Plum()

static agxRender::Color agxRender::Color::Plum ( )
inlinestatic

Definition at line 227 of file Color.h.

◆ PowderBlue()

static agxRender::Color agxRender::Color::PowderBlue ( )
inlinestatic

Definition at line 181 of file Color.h.

◆ Purple()

static agxRender::Color agxRender::Color::Purple ( )
inlinestatic

Definition at line 149 of file Color.h.

◆ r() [1/2]

float& agxRender::Color::r ( )
inline

Definition at line 58 of file Color.h.

References agx::Vec4T< T >::x().

◆ r() [2/2]

float agxRender::Color::r ( ) const
inline

Definition at line 57 of file Color.h.

References agx::Vec4T< T >::x().

Referenced by asVec4(), operator agx::Vec3d(), operator agx::Vec3f(), and operator agx::Vec4d().

◆ Red()

static agxRender::Color agxRender::Color::Red ( )
inlinestatic

Definition at line 153 of file Color.h.

◆ RGBToHSV()

static AGXPHYSICS_EXPORT Color agxRender::Color::RGBToHSV ( const Color &  rgb)
static

Convert a rgb color to HSV.

◆ RosyBrown()

static agxRender::Color agxRender::Color::RosyBrown ( )
inlinestatic

Definition at line 187 of file Color.h.

◆ RoyalBlue()

static agxRender::Color agxRender::Color::RoyalBlue ( )
inlinestatic

Definition at line 220 of file Color.h.

◆ SaddleBrown()

static agxRender::Color agxRender::Color::SaddleBrown ( )
inlinestatic

Definition at line 219 of file Color.h.

◆ Salmon()

static agxRender::Color agxRender::Color::Salmon ( )
inlinestatic

Definition at line 185 of file Color.h.

◆ SandyBrown()

static agxRender::Color agxRender::Color::SandyBrown ( )
inlinestatic

Definition at line 206 of file Color.h.

◆ SeaGreen()

static agxRender::Color agxRender::Color::SeaGreen ( )
inlinestatic

Definition at line 205 of file Color.h.

◆ Seashell()

static agxRender::Color agxRender::Color::Seashell ( )
inlinestatic

Definition at line 216 of file Color.h.

◆ Sienna()

static agxRender::Color agxRender::Color::Sienna ( )
inlinestatic

Definition at line 140 of file Color.h.

◆ Silver()

static agxRender::Color agxRender::Color::Silver ( )
inlinestatic

Definition at line 133 of file Color.h.

◆ SkyBlue()

static agxRender::Color agxRender::Color::SkyBlue ( )
inlinestatic

Definition at line 197 of file Color.h.

◆ SlateBlue()

static agxRender::Color agxRender::Color::SlateBlue ( )
inlinestatic

Definition at line 116 of file Color.h.

◆ SlateGray()

static agxRender::Color agxRender::Color::SlateGray ( )
inlinestatic

Definition at line 213 of file Color.h.

◆ Snow()

static agxRender::Color agxRender::Color::Snow ( )
inlinestatic

Definition at line 231 of file Color.h.

◆ SpringGreen()

static agxRender::Color agxRender::Color::SpringGreen ( )
inlinestatic

Definition at line 112 of file Color.h.

◆ SteelBlue()

static agxRender::Color agxRender::Color::SteelBlue ( )
inlinestatic

Definition at line 217 of file Color.h.

◆ Tan()

static agxRender::Color agxRender::Color::Tan ( )
inlinestatic

Definition at line 204 of file Color.h.

◆ Teal()

static agxRender::Color agxRender::Color::Teal ( )
inlinestatic

Definition at line 154 of file Color.h.

◆ Thistle()

static agxRender::Color agxRender::Color::Thistle ( )
inlinestatic

Definition at line 174 of file Color.h.

◆ Tomato()

static agxRender::Color agxRender::Color::Tomato ( )
inlinestatic

Definition at line 203 of file Color.h.

◆ Turquoise()

static agxRender::Color agxRender::Color::Turquoise ( )
inlinestatic

Definition at line 200 of file Color.h.

◆ Violet()

static agxRender::Color agxRender::Color::Violet ( )
inlinestatic

Definition at line 129 of file Color.h.

◆ VioletRed()

static agxRender::Color agxRender::Color::VioletRed ( )
inlinestatic

Definition at line 198 of file Color.h.

◆ Wheat()

static agxRender::Color agxRender::Color::Wheat ( )
inlinestatic

Definition at line 107 of file Color.h.

◆ White()

static agxRender::Color agxRender::Color::White ( )
inlinestatic

Definition at line 160 of file Color.h.

◆ WhiteSmoke()

static agxRender::Color agxRender::Color::WhiteSmoke ( )
inlinestatic

Definition at line 196 of file Color.h.

◆ Yellow()

static agxRender::Color agxRender::Color::Yellow ( )
inlinestatic

Definition at line 193 of file Color.h.

◆ YellowGreen()

static agxRender::Color agxRender::Color::YellowGreen ( )
inlinestatic

Definition at line 110 of file Color.h.


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