AGXDynamics  2.35.0.3
Color.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXRENDER_COLOR_H
18 #define AGXRENDER_COLOR_H
19 
20 #include <agx/Vector.h>
21 #include <agx/Vec4.h>
22 #include <agx/agxPhysics_export.h>
23 
24 namespace agxRender
25 {
26 
33  class Color : public agx::Vec4f
34  {
35  public:
36 
39  : agx::Vec4f( 0.f, 0.f, 0.f, 1.f ) {}
40 
42  explicit Color( float r, float g, float b, float a = 1.f )
43  : agx::Vec4f( r, g, b, a ) {}
44 
46  explicit Color(const agx::Vec3f& color, float a = 1.f)
47  : agx::Vec4f(color[0], color[1], color[2], a) {}
48 
53  explicit Color(float c)
54  : agx::Vec4f(c) {}
55 
56 
57  AGX_FORCE_INLINE float r() const { return x(); }
58  AGX_FORCE_INLINE float& r() { return x(); }
59  AGX_FORCE_INLINE float g() const { return y(); }
60  AGX_FORCE_INLINE float& g() { return y(); }
61  AGX_FORCE_INLINE float b() const { return z(); }
62  AGX_FORCE_INLINE float& b() { return z(); }
63  AGX_FORCE_INLINE float a() const { return w(); }
64  AGX_FORCE_INLINE float& a() { return w(); }
65 
66  inline operator agx::Vec3f() const
67  {
68  return agx::Vec3f( r(), g(), b() );
69  }
70 
71  inline operator agx::Vec3d() const
72  {
73  return agx::Vec3d( (double)r(), (double)g(), (double)b() );
74  }
75 
76  inline operator agx::Vec4d() const
77  {
78  return agx::Vec4d( (double)r(), (double)g(), (double)b(), (double)a() );
79  }
80 
81  inline agx::Vec4 asVec4() const
82  {
83  return agx::Vec4((agx::Real)r(), (agx::Real)g(), (agx::Real)b(), (agx::Real)a() );
84  }
85 
87  AGXPHYSICS_EXPORT void fromHSV( float h, float s, float v );
88  AGXPHYSICS_EXPORT void fromHSV( const Color& hsv );
89 
92 
94  AGXPHYSICS_EXPORT static Color RGBToHSV( const Color& rgb );
96  AGXPHYSICS_EXPORT static Color HSVToRGB( const Color& rgb );
97 
98 
99  public:
102 
104  AGXPHYSICS_EXPORT static size_t getNumColors( );
105 
106  // If you add or remove a color, be sure to reflect that in the InitColorTable method!
107  inline static agxRender::Color Wheat() { return agxRender::Color( 0.960784f, 0.870588f, 0.701961f, 1.f ); }
108  inline static agxRender::Color DarkKhaki() { return agxRender::Color( 0.741176f, 0.717647f, 0.419608f, 1.f ); }
109  inline static agxRender::Color DarkGoldenrod() { return agxRender::Color( 0.721569f, 0.525490f, 0.043137f, 1.f ); }
110  inline static agxRender::Color YellowGreen() { return agxRender::Color( 0.603922f, 0.803922f, 0.196078f, 1.f ); }
111  inline static agxRender::Color PaleGreen() { return agxRender::Color( 0.596078f, 0.984314f, 0.596078f, 1.f ); }
112  inline static agxRender::Color SpringGreen() { return agxRender::Color( 0.000000f, 1.000000f, 0.498039f, 1.f ); }
113  inline static agxRender::Color AliceBlue() { return agxRender::Color( 0.941176f, 0.972549f, 1.000000f, 1.f ); }
114  inline static agxRender::Color OrangeRed() { return agxRender::Color( 1.000000f, 0.270588f, 0.000000f, 1.f ); }
115  inline static agxRender::Color LightSalmon() { return agxRender::Color( 1.000000f, 0.627451f, 0.478431f, 1.f ); }
116  inline static agxRender::Color SlateBlue() { return agxRender::Color( 0.415686f, 0.352941f, 0.803922f, 1.f ); }
117  inline static agxRender::Color Aquamarine() { return agxRender::Color( 0.498039f, 1.000000f, 0.831373f, 1.f ); }
118  inline static agxRender::Color OliveDrab() { return agxRender::Color( 0.419608f, 0.556863f, 0.137255f, 1.f ); }
119  inline static agxRender::Color PapayaWhip() { return agxRender::Color( 1.000000f, 0.937255f, 0.835294f, 1.f ); }
120  inline static agxRender::Color LemonChiffon() { return agxRender::Color( 1.000000f, 0.980392f, 0.803922f, 1.f ); }
121  inline static agxRender::Color OldLace() { return agxRender::Color( 0.992157f, 0.960784f, 0.901961f, 1.f ); }
122  inline static agxRender::Color FloralWhite() { return agxRender::Color( 1.000000f, 0.980392f, 0.941176f, 1.f ); }
123  inline static agxRender::Color Maroon() { return agxRender::Color( 0.501961f, 0.000000f, 0.000000f, 1.f ); }
124  inline static agxRender::Color Linen() { return agxRender::Color( 0.980392f, 0.941176f, 0.901961f, 1.f ); }
125  inline static agxRender::Color LightSlateBlue() { return agxRender::Color( 0.517647f, 0.439216f, 1.000000f, 1.f ); }
126  inline static agxRender::Color DarkSlateGray() { return agxRender::Color( 0.184314f, 0.309804f, 0.309804f, 1.f ); }
127  inline static agxRender::Color CadetBlue() { return agxRender::Color( 0.372549f, 0.619608f, 0.627451f, 1.f ); }
128  inline static agxRender::Color NavajoWhite() { return agxRender::Color( 1.000000f, 0.870588f, 0.678431f, 1.f ); }
129  inline static agxRender::Color Violet() { return agxRender::Color( 0.933333f, 0.509804f, 0.933333f, 1.f ); }
130  inline static agxRender::Color PaleVioletRed() { return agxRender::Color( 0.858824f, 0.439216f, 0.576471f, 1.f ); }
131  inline static agxRender::Color LightGoldenrod() { return agxRender::Color( 0.933333f, 0.866667f, 0.509804f, 1.f ); }
132  inline static agxRender::Color Cornsilk() { return agxRender::Color( 1.000000f, 0.972549f, 0.862745f, 1.f ); }
133  inline static agxRender::Color Silver() { return agxRender::Color( 0.752941f, 0.752941f, 0.752941f, 1.f ); }
134  inline static agxRender::Color DarkCyan() { return agxRender::Color( 0.000000f, 0.545098f, 0.545098f, 1.f ); }
135  inline static agxRender::Color DarkOrchid() { return agxRender::Color( 0.600000f, 0.196078f, 0.800000f, 1.f ); }
136  inline static agxRender::Color AntiqueWhite() { return agxRender::Color( 0.980392f, 0.921569f, 0.843137f, 1.f ); }
137  inline static agxRender::Color MediumSpringGreen() { return agxRender::Color( 0.000000f, 0.980392f, 0.603922f, 1.f ); }
138  inline static agxRender::Color IndianRed() { return agxRender::Color( 0.803922f, 0.360784f, 0.360784f, 1.f ); }
139  inline static agxRender::Color DarkBlue() { return agxRender::Color( 0.000000f, 0.000000f, 0.545098f, 1.f ); }
140  inline static agxRender::Color Sienna() { return agxRender::Color( 0.627451f, 0.321569f, 0.176471f, 1.f ); }
141  inline static agxRender::Color ForestGreen() { return agxRender::Color( 0.133333f, 0.545098f, 0.133333f, 1.f ); }
142  inline static agxRender::Color LightSlateGray() { return agxRender::Color( 0.466667f, 0.533333f, 0.600000f, 1.f ); }
143  inline static agxRender::Color BlanchedAlmond() { return agxRender::Color( 1.000000f, 0.921569f, 0.803922f, 1.f ); }
144  inline static agxRender::Color Moccasin() { return agxRender::Color( 1.000000f, 0.894118f, 0.709804f, 1.f ); }
145  inline static agxRender::Color LimeGreen() { return agxRender::Color( 0.196078f, 0.803922f, 0.196078f, 1.f ); }
146  inline static agxRender::Color HotPink() { return agxRender::Color( 1.000000f, 0.411765f, 0.705882f, 1.f ); }
147  inline static agxRender::Color PeachPuff() { return agxRender::Color( 1.000000f, 0.854902f, 0.725490f, 1.f ); }
148  inline static agxRender::Color DimGray() { return agxRender::Color( 0.411765f, 0.411765f, 0.411765f, 1.f ); }
149  inline static agxRender::Color Purple() { return agxRender::Color( 0.501961f, 0.000000f, 0.501961f, 1.f ); }
150  inline static agxRender::Color MediumSlateBlue() { return agxRender::Color( 0.482353f, 0.407843f, 0.933333f, 1.f ); }
151  inline static agxRender::Color Brown() { return agxRender::Color( 0.647059f, 0.164706f, 0.164706f, 1.f ); }
152  inline static agxRender::Color MediumBlue() { return agxRender::Color( 0.000000f, 0.000000f, 0.803922f, 1.f ); }
153  inline static agxRender::Color Red() { return agxRender::Color( 1.000000f, 0.000000f, 0.000000f, 1.f ); }
154  inline static agxRender::Color Teal() { return agxRender::Color( 0.000000f, 0.501961f, 0.501961f, 1.f ); }
155  inline static agxRender::Color Burlywood() { return agxRender::Color( 0.870588f, 0.721569f, 0.529412f, 1.f ); }
156  inline static agxRender::Color MintCream() { return agxRender::Color( 0.960784f, 1.000000f, 0.980392f, 1.f ); }
157  inline static agxRender::Color Khaki() { return agxRender::Color( 0.941176f, 0.901961f, 0.549020f, 1.f ); }
158  inline static agxRender::Color DodgerBlue() { return agxRender::Color( 0.117647f, 0.564706f, 1.000000f, 1.f ); }
159  inline static agxRender::Color DarkOrange() { return agxRender::Color( 1.000000f, 0.549020f, 0.000000f, 1.f ); }
160  inline static agxRender::Color White() { return agxRender::Color( 1.000000f, 1.000000f, 1.000000f, 1.f ); }
161  inline static agxRender::Color DeepSkyBlue() { return agxRender::Color( 0.000000f, 0.749020f, 1.000000f, 1.f ); }
162  inline static agxRender::Color Orchid() { return agxRender::Color( 0.854902f, 0.439216f, 0.839216f, 1.f ); }
163  inline static agxRender::Color Ivory() { return agxRender::Color( 1.000000f, 1.000000f, 0.941176f, 1.f ); }
164  inline static agxRender::Color DarkMagenta() { return agxRender::Color( 0.545098f, 0.000000f, 0.545098f, 1.f ); }
165  inline static agxRender::Color LightCyan() { return agxRender::Color( 0.878431f, 1.000000f, 1.000000f, 1.f ); }
166  inline static agxRender::Color LightSeaGreen() { return agxRender::Color( 0.125490f, 0.698039f, 0.666667f, 1.f ); }
167  inline static agxRender::Color MediumPurple() { return agxRender::Color( 0.576471f, 0.439216f, 0.858824f, 1.f ); }
168  inline static agxRender::Color LightSteelBlue() { return agxRender::Color( 0.690196f, 0.768627f, 0.870588f, 1.f ); }
169  inline static agxRender::Color Green() { return agxRender::Color( 0.000000f, 0.501961f, 0.000000f, 1.f ); }
170  inline static agxRender::Color DarkSeaGreen() { return agxRender::Color( 0.560784f, 0.737255f, 0.560784f, 1.f ); }
171  inline static agxRender::Color MediumOrchid() { return agxRender::Color( 0.729412f, 0.333333f, 0.827451f, 1.f ); }
172  inline static agxRender::Color Bisque() { return agxRender::Color( 1.000000f, 0.894118f, 0.768627f, 1.f ); }
173  inline static agxRender::Color Cyan() { return agxRender::Color( 0.000000f, 1.000000f, 1.000000f, 1.f ); }
174  inline static agxRender::Color Thistle() { return agxRender::Color( 0.847059f, 0.749020f, 0.847059f, 1.f ); }
175  inline static agxRender::Color LightPink() { return agxRender::Color( 1.000000f, 0.713726f, 0.756863f, 1.f ); }
176  inline static agxRender::Color CornflowerBlue() { return agxRender::Color( 0.392157f, 0.584314f, 0.929412f, 1.f ); }
177  inline static agxRender::Color LightSkyBlue() { return agxRender::Color( 0.529412f, 0.807843f, 0.980392f, 1.f ); }
178  inline static agxRender::Color Beige() { return agxRender::Color( 0.960784f, 0.960784f, 0.862745f, 1.f ); }
179  inline static agxRender::Color Aqua() { return agxRender::Color( 0.000000f, 1.000000f, 1.000000f, 1.f ); }
180  inline static agxRender::Color DarkGray() { return agxRender::Color( 0.662745f, 0.662745f, 0.662745f, 1.f ); }
181  inline static agxRender::Color PowderBlue() { return agxRender::Color( 0.690196f, 0.878431f, 0.901961f, 1.f ); }
182  inline static agxRender::Color GreenYellow() { return agxRender::Color( 0.678431f, 1.000000f, 0.184314f, 1.f ); }
183  inline static agxRender::Color Lime() { return agxRender::Color( 0.000000f, 1.000000f, 0.000000f, 1.f ); }
184  inline static agxRender::Color MediumVioletRed() { return agxRender::Color( 0.780392f, 0.082353f, 0.521569f, 1.f ); }
185  inline static agxRender::Color Salmon() { return agxRender::Color( 0.980392f, 0.501961f, 0.447059f, 1.f ); }
186  inline static agxRender::Color Firebrick() { return agxRender::Color( 0.698039f, 0.133333f, 0.133333f, 1.f ); }
187  inline static agxRender::Color RosyBrown() { return agxRender::Color( 0.737255f, 0.560784f, 0.560784f, 1.f ); }
188  inline static agxRender::Color Lavender() { return agxRender::Color( 0.901961f, 0.901961f, 0.980392f, 1.f ); }
189  inline static agxRender::Color Navy() { return agxRender::Color( 0.000000f, 0.000000f, 0.501961f, 1.f ); }
190  inline static agxRender::Color DarkSlateBlue() { return agxRender::Color( 0.282353f, 0.239216f, 0.545098f, 1.f ); }
191  inline static agxRender::Color MediumAquamarine() { return agxRender::Color( 0.400000f, 0.803922f, 0.666667f, 1.f ); }
192  inline static agxRender::Color DarkViolet() { return agxRender::Color( 0.580392f, 0.000000f, 0.827451f, 1.f ); }
193  inline static agxRender::Color Yellow() { return agxRender::Color( 1.000000f, 1.000000f, 0.000000f, 1.f ); }
194  inline static agxRender::Color Chartreuse() { return agxRender::Color( 0.498039f, 1.000000f, 0.000000f, 1.f ); }
195  inline static agxRender::Color Gold() { return agxRender::Color( 1.000000f, 0.843137f, 0.000000f, 1.f ); }
196  inline static agxRender::Color WhiteSmoke() { return agxRender::Color( 0.960784f, 0.960784f, 0.960784f, 1.f ); }
197  inline static agxRender::Color SkyBlue() { return agxRender::Color( 0.529412f, 0.807843f, 0.921569f, 1.f ); }
198  inline static agxRender::Color VioletRed() { return agxRender::Color( 0.815686f, 0.125490f, 0.564706f, 1.f ); }
199  inline static agxRender::Color LavenderBlush() { return agxRender::Color( 1.000000f, 0.941176f, 0.960784f, 1.f ); }
200  inline static agxRender::Color Turquoise() { return agxRender::Color( 0.250980f, 0.878431f, 0.815686f, 1.f ); }
201  inline static agxRender::Color Magenta() { return agxRender::Color( 1.000000f, 0.000000f, 1.000000f, 1.f ); }
202  inline static agxRender::Color Blue() { return agxRender::Color( 0.000000f, 0.000000f, 1.000000f, 1.f ); }
203  inline static agxRender::Color Tomato() { return agxRender::Color( 1.000000f, 0.388235f, 0.278431f, 1.f ); }
204  inline static agxRender::Color Tan() { return agxRender::Color( 0.823529f, 0.705882f, 0.549020f, 1.f ); }
205  inline static agxRender::Color SeaGreen() { return agxRender::Color( 0.180392f, 0.545098f, 0.341176f, 1.f ); }
206  inline static agxRender::Color SandyBrown() { return agxRender::Color( 0.956863f, 0.643137f, 0.376471f, 1.f ); }
207  inline static agxRender::Color Pink() { return agxRender::Color( 1.000000f, 0.752941f, 0.796078f, 1.f ); }
208  inline static agxRender::Color Goldenrod() { return agxRender::Color( 0.854902f, 0.647059f, 0.125490f, 1.f ); }
209  inline static agxRender::Color MediumTurquoise() { return agxRender::Color( 0.282353f, 0.819608f, 0.800000f, 1.f ); }
210  inline static agxRender::Color DarkSalmon() { return agxRender::Color( 0.913725f, 0.588235f, 0.478431f, 1.f ); }
211  inline static agxRender::Color Gainsboro() { return agxRender::Color( 0.862745f, 0.862745f, 0.862745f, 1.f ); }
212  inline static agxRender::Color Peru() { return agxRender::Color( 0.803922f, 0.521569f, 0.247059f, 1.f ); }
213  inline static agxRender::Color SlateGray() { return agxRender::Color( 0.439216f, 0.501961f, 0.564706f, 1.f ); }
214  inline static agxRender::Color Olive() { return agxRender::Color( 0.501961f, 0.501961f, 0.000000f, 1.f ); }
215  inline static agxRender::Color LightBlue() { return agxRender::Color( 0.678431f, 0.847059f, 0.901961f, 1.f ); }
216  inline static agxRender::Color Seashell() { return agxRender::Color( 1.000000f, 0.960784f, 0.933333f, 1.f ); }
217  inline static agxRender::Color SteelBlue() { return agxRender::Color( 0.274510f, 0.509804f, 0.705882f, 1.f ); }
218  inline static agxRender::Color DeepPink() { return agxRender::Color( 1.000000f, 0.078431f, 0.576471f, 1.f ); }
219  inline static agxRender::Color SaddleBrown() { return agxRender::Color( 0.545098f, 0.270588f, 0.074510f, 1.f ); }
220  inline static agxRender::Color RoyalBlue() { return agxRender::Color( 0.254902f, 0.411765f, 0.882353f, 1.f ); }
221  inline static agxRender::Color PaleTurquoise() { return agxRender::Color( 0.686275f, 0.933333f, 0.933333f, 1.f ); }
222  inline static agxRender::Color DarkOliveGreen() { return agxRender::Color( 0.333333f, 0.419608f, 0.184314f, 1.f ); }
223  inline static agxRender::Color LightGreen() { return agxRender::Color( 0.564706f, 0.933333f, 0.564706f, 1.f ); }
224  inline static agxRender::Color Gray() { return agxRender::Color( 0.501961f, 0.501961f, 0.501961f, 1.f ); }
225  inline static agxRender::Color DarkRed() { return agxRender::Color( 0.545098f, 0.000000f, 0.000000f, 1.f ); }
226  inline static agxRender::Color DarkTurquoise() { return agxRender::Color( 0.000000f, 0.807843f, 0.819608f, 1.f ); }
227  inline static agxRender::Color Plum() { return agxRender::Color( 0.866667f, 0.627451f, 0.866667f, 1.f ); }
228  inline static agxRender::Color MediumSeaGreen() { return agxRender::Color( 0.235294f, 0.701961f, 0.443137f, 1.f ); }
229  inline static agxRender::Color GhostWhite() { return agxRender::Color( 1.000000f, 0.980392f, 0.980392f, 1.f ); }
230  inline static agxRender::Color DarkGreen() { return agxRender::Color( 0.000000f, 0.392157f, 0.000000f, 1.f ); }
231  inline static agxRender::Color Snow() { return agxRender::Color( 1.000000f, 0.980392f, 0.980392f, 1.f ); }
232  inline static agxRender::Color LawnGreen() { return agxRender::Color( 0.486275f, 0.988235f, 0.000000f, 1.f ); }
233  inline static agxRender::Color LightYellow() { return agxRender::Color( 1.000000f, 1.000000f, 0.878431f, 1.f ); }
234  inline static agxRender::Color Azure() { return agxRender::Color( 0.941176f, 1.000000f, 1.000000f, 1.f ); }
235  inline static agxRender::Color MidnightBlue() { return agxRender::Color( 0.098039f, 0.098039f, 0.439216f, 1.f ); }
236  inline static agxRender::Color Black() { return agxRender::Color( 0.000000f, 0.000000f, 0.000000f, 1.f ); }
237  inline static agxRender::Color MistyRose() { return agxRender::Color( 1.000000f, 0.894118f, 0.882353f, 1.f ); }
238  inline static agxRender::Color LightGray() { return agxRender::Color( 0.827451f, 0.827451f, 0.827451f, 1.f ); }
239  inline static agxRender::Color PaleGoldenrod() { return agxRender::Color( 0.933333f, 0.909804f, 0.666667f, 1.f ); }
240  inline static agxRender::Color LightCoral() { return agxRender::Color( 0.941176f, 0.501961f, 0.501961f, 1.f ); }
241  inline static agxRender::Color Orange() { return agxRender::Color( 1.000000f, 0.647059f, 0.000000f, 1.f ); }
242  inline static agxRender::Color Honeydew() { return agxRender::Color( 0.941176f, 1.000000f, 0.941176f, 1.f ); }
243  inline static agxRender::Color BlueViolet() { return agxRender::Color( 0.541176f, 0.168627f, 0.886275f, 1.f ); }
244  inline static agxRender::Color LightGoldenrodYellow() { return agxRender::Color( 0.980392f, 0.980392f, 0.823529f, 1.f ); }
245  inline static agxRender::Color Chocolate() { return agxRender::Color( 0.823529f, 0.411765f, 0.117647f, 1.f ); }
246  inline static agxRender::Color Fuschia() { return agxRender::Color( 1.000000f, 0.000000f, 1.000000f, 1.f ); }
247  inline static agxRender::Color Coral() { return agxRender::Color( 1.000000f, 0.498039f, 0.313726f, 1.f ); }
248  };
249 
251 }
252 
253 #endif
agxPhysics_export.h
agxRender::Color::LightGray
static agxRender::Color LightGray()
Definition: Color.h:238
agxRender::Color::LightSlateBlue
static agxRender::Color LightSlateBlue()
Definition: Color.h:125
agxRender::Color::GhostWhite
static agxRender::Color GhostWhite()
Definition: Color.h:229
agxRender::Color::r
float & r()
Definition: Color.h:58
agxRender::Color::LightSlateGray
static agxRender::Color LightSlateGray()
Definition: Color.h:142
agxRender::Color::Green
static agxRender::Color Green()
Definition: Color.h:169
agx::Vec4T::w
T & w()
Definition: Vec4Template.h:508
agxRender::Color::DarkGray
static agxRender::Color DarkGray()
Definition: Color.h:180
agxRender::Color::Firebrick
static agxRender::Color Firebrick()
Definition: Color.h:186
agxRender::Color::FloralWhite
static agxRender::Color FloralWhite()
Definition: Color.h:122
agxRender::Color::Aqua
static agxRender::Color Aqua()
Definition: Color.h:179
agxRender::Color::CornflowerBlue
static agxRender::Color CornflowerBlue()
Definition: Color.h:176
agx::Vec4T::y
T & y()
Definition: Vec4Template.h:496
agxRender::Color::PowderBlue
static agxRender::Color PowderBlue()
Definition: Color.h:181
agxRender::Color::Aquamarine
static agxRender::Color Aquamarine()
Definition: Color.h:117
agxRender::Color::MediumBlue
static agxRender::Color MediumBlue()
Definition: Color.h:152
agxRender::Color::PaleGreen
static agxRender::Color PaleGreen()
Definition: Color.h:111
agxRender::Color::Black
static agxRender::Color Black()
Definition: Color.h:236
agxRender::Color::Wheat
static agxRender::Color Wheat()
Definition: Color.h:107
agxRender::Color::SpringGreen
static agxRender::Color SpringGreen()
Definition: Color.h:112
agxRender::Color::Fuschia
static agxRender::Color Fuschia()
Definition: Color.h:246
agx::Real
double Real
Definition: Real.h:42
agxRender::Color::Lime
static agxRender::Color Lime()
Definition: Color.h:183
Vector.h
agxRender::Color::NavajoWhite
static agxRender::Color NavajoWhite()
Definition: Color.h:128
agxRender::Color::MediumSeaGreen
static agxRender::Color MediumSeaGreen()
Definition: Color.h:228
agxRender
Namespace containing classes for handling debug rendering of collision geometries,...
Definition: Constraint.h:35
agxRender::Color::OldLace
static agxRender::Color OldLace()
Definition: Color.h:121
agxRender::Color::LightYellow
static agxRender::Color LightYellow()
Definition: Color.h:233
agxRender::Color::Honeydew
static agxRender::Color Honeydew()
Definition: Color.h:242
agxRender::Color::Khaki
static agxRender::Color Khaki()
Definition: Color.h:157
agx::Vec4f
Vec4T< Real32 > Vec4f
Definition: Vec4.h:26
agxRender::Color::OrangeRed
static agxRender::Color OrangeRed()
Definition: Color.h:114
agx::Vector
Templated vector class.
Definition: Vector.h:52
agxRender::Color::PaleVioletRed
static agxRender::Color PaleVioletRed()
Definition: Color.h:130
agxRender::Color::Lavender
static agxRender::Color Lavender()
Definition: Color.h:188
agxRender::Color::Orchid
static agxRender::Color Orchid()
Definition: Color.h:162
agx::Vec3d
Vec3T< Real64 > Vec3d
Definition: Vec3.h:40
agx::Vec4d
Vec4T< Real64 > Vec4d
Definition: Vec4.h:27
agxRender::Color::Color
Color(float c)
Constructor which set all elements of color to c.
Definition: Color.h:53
agxRender::Color::CadetBlue
static agxRender::Color CadetBlue()
Definition: Color.h:127
agxRender::Color::Moccasin
static agxRender::Color Moccasin()
Definition: Color.h:144
agxRender::Color::getColor
static AGXPHYSICS_EXPORT agxRender::Color getColor(size_t)
agx::Vec4T::z
T & z()
Definition: Vec4Template.h:502
agxRender::Color::Thistle
static agxRender::Color Thistle()
Definition: Color.h:174
agxRender::Color::DarkKhaki
static agxRender::Color DarkKhaki()
Definition: Color.h:108
agxRender::Color::WhiteSmoke
static agxRender::Color WhiteSmoke()
Definition: Color.h:196
agxRender::Color::DarkMagenta
static agxRender::Color DarkMagenta()
Definition: Color.h:164
agxRender::Color::Gainsboro
static agxRender::Color Gainsboro()
Definition: Color.h:211
agxRender::Color::Color
Color(const agx::Vec3f &color, float a=1.f)
Constructor.
Definition: Color.h:46
agxRender::Color::DarkSlateBlue
static agxRender::Color DarkSlateBlue()
Definition: Color.h:190
agxRender::Color::SeaGreen
static agxRender::Color SeaGreen()
Definition: Color.h:205
agxRender::Color::SlateBlue
static agxRender::Color SlateBlue()
Definition: Color.h:116
agxRender::Color::Purple
static agxRender::Color Purple()
Definition: Color.h:149
agxRender::Color::asHSV
AGXPHYSICS_EXPORT Color asHSV() const
agxRender::Color::HotPink
static agxRender::Color HotPink()
Definition: Color.h:146
agxRender::Color::DarkGreen
static agxRender::Color DarkGreen()
Definition: Color.h:230
agxRender::Color::Seashell
static agxRender::Color Seashell()
Definition: Color.h:216
agxRender::Color::LightCyan
static agxRender::Color LightCyan()
Definition: Color.h:165
agxRender::Color::SlateGray
static agxRender::Color SlateGray()
Definition: Color.h:213
agx::Vec4
Vec4T< Real > Vec4
Definition: Vec4.h:25
agxRender::Color::SteelBlue
static agxRender::Color SteelBlue()
Definition: Color.h:217
agxRender::Color::LawnGreen
static agxRender::Color LawnGreen()
Definition: Color.h:232
agxRender::Color::LightGreen
static agxRender::Color LightGreen()
Definition: Color.h:223
agxRender::Color::BlueViolet
static agxRender::Color BlueViolet()
Definition: Color.h:243
agxRender::Color::Gray
static agxRender::Color Gray()
Definition: Color.h:224
agxRender::Color::LightGoldenrodYellow
static agxRender::Color LightGoldenrodYellow()
Definition: Color.h:244
agx::Vec4T
A class holding 4 dimensional vectors and providing basic arithmetic.
Definition: Vec4Template.h:34
agxRender::Color::GreenYellow
static agxRender::Color GreenYellow()
Definition: Color.h:182
agxRender::Color::DarkSeaGreen
static agxRender::Color DarkSeaGreen()
Definition: Color.h:170
agxRender::Color::SandyBrown
static agxRender::Color SandyBrown()
Definition: Color.h:206
agxRender::Color::Teal
static agxRender::Color Teal()
Definition: Color.h:154
agxRender::Color::Blue
static agxRender::Color Blue()
Definition: Color.h:202
agxRender::Color::Red
static agxRender::Color Red()
Definition: Color.h:153
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
agxRender::Color::Ivory
static agxRender::Color Ivory()
Definition: Color.h:163
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxRender::Color::AntiqueWhite
static agxRender::Color AntiqueWhite()
Definition: Color.h:136
Vec4.h
agxRender::Color::DarkGoldenrod
static agxRender::Color DarkGoldenrod()
Definition: Color.h:109
agxRender::Color::Brown
static agxRender::Color Brown()
Definition: Color.h:151
agxRender::Color::g
float & g()
Definition: Color.h:60
agxRender::Color::Coral
static agxRender::Color Coral()
Definition: Color.h:247
agxRender::Color::DarkOrange
static agxRender::Color DarkOrange()
Definition: Color.h:159
agxRender::Color::Salmon
static agxRender::Color Salmon()
Definition: Color.h:185
agxRender::Color::Sienna
static agxRender::Color Sienna()
Definition: Color.h:140
agxRender::Color::LightCoral
static agxRender::Color LightCoral()
Definition: Color.h:240
agxRender::Color::Snow
static agxRender::Color Snow()
Definition: Color.h:231
agxRender::Color::Peru
static agxRender::Color Peru()
Definition: Color.h:212
agxRender::Color::g
float g() const
Definition: Color.h:59
agxRender::Color::LightSteelBlue
static agxRender::Color LightSteelBlue()
Definition: Color.h:168
agxRender::Color::DimGray
static agxRender::Color DimGray()
Definition: Color.h:148
agxRender::Color::Gold
static agxRender::Color Gold()
Definition: Color.h:195
agxRender::Color
Utility color class with "common colors".
Definition: Color.h:33
agxRender::Color::PapayaWhip
static agxRender::Color PapayaWhip()
Definition: Color.h:119
agxRender::Color::Azure
static agxRender::Color Azure()
Definition: Color.h:234
agxRender::Color::DarkOliveGreen
static agxRender::Color DarkOliveGreen()
Definition: Color.h:222
agxRender::Color::LavenderBlush
static agxRender::Color LavenderBlush()
Definition: Color.h:199
agxRender::ColorVector
agx::Vector< Color > ColorVector
Definition: Color.h:250
agxRender::Color::Burlywood
static agxRender::Color Burlywood()
Definition: Color.h:155
agxRender::Color::DodgerBlue
static agxRender::Color DodgerBlue()
Definition: Color.h:158
agxRender::Color::asVec4
agx::Vec4 asVec4() const
Definition: Color.h:81
agxRender::Color::MediumSpringGreen
static agxRender::Color MediumSpringGreen()
Definition: Color.h:137
agxRender::Color::DeepPink
static agxRender::Color DeepPink()
Definition: Color.h:218
agxRender::Color::MintCream
static agxRender::Color MintCream()
Definition: Color.h:156
agxRender::Color::DarkOrchid
static agxRender::Color DarkOrchid()
Definition: Color.h:135
agxRender::Color::MediumVioletRed
static agxRender::Color MediumVioletRed()
Definition: Color.h:184
agxRender::Color::a
float & a()
Definition: Color.h:64
agxRender::Color::LemonChiffon
static agxRender::Color LemonChiffon()
Definition: Color.h:120
agxRender::Color::DarkTurquoise
static agxRender::Color DarkTurquoise()
Definition: Color.h:226
agxRender::Color::fromHSV
AGXPHYSICS_EXPORT void fromHSV(float h, float s, float v)
Set the color as HSV (Hue, Saturation, Value)
agxRender::Color::Tomato
static agxRender::Color Tomato()
Definition: Color.h:203
agxRender::Color::Pink
static agxRender::Color Pink()
Definition: Color.h:207
agxRender::Color::Orange
static agxRender::Color Orange()
Definition: Color.h:241
agxRender::Color::Navy
static agxRender::Color Navy()
Definition: Color.h:189
agxRender::Color::YellowGreen
static agxRender::Color YellowGreen()
Definition: Color.h:110
agxRender::Color::MediumAquamarine
static agxRender::Color MediumAquamarine()
Definition: Color.h:191
agxRender::Color::MidnightBlue
static agxRender::Color MidnightBlue()
Definition: Color.h:235
agxRender::Color::PaleGoldenrod
static agxRender::Color PaleGoldenrod()
Definition: Color.h:239
agxRender::Color::LightSeaGreen
static agxRender::Color LightSeaGreen()
Definition: Color.h:166
agxRender::Color::Color
Color(float r, float g, float b, float a=1.f)
Constructor.
Definition: Color.h:42
agxRender::Color::RoyalBlue
static agxRender::Color RoyalBlue()
Definition: Color.h:220
agxRender::Color::PaleTurquoise
static agxRender::Color PaleTurquoise()
Definition: Color.h:221
agxRender::Color::DarkBlue
static agxRender::Color DarkBlue()
Definition: Color.h:139
agxRender::Color::a
float a() const
Definition: Color.h:63
agxRender::Color::SkyBlue
static agxRender::Color SkyBlue()
Definition: Color.h:197
agxRender::Color::MistyRose
static agxRender::Color MistyRose()
Definition: Color.h:237
agxRender::Color::HSVToRGB
static AGXPHYSICS_EXPORT Color HSVToRGB(const Color &rgb)
Convert a HSV color to RGB.
agxRender::Color::Cornsilk
static agxRender::Color Cornsilk()
Definition: Color.h:132
agxRender::Color::MediumTurquoise
static agxRender::Color MediumTurquoise()
Definition: Color.h:209
agxRender::Color::Goldenrod
static agxRender::Color Goldenrod()
Definition: Color.h:208
agxRender::Color::DarkSalmon
static agxRender::Color DarkSalmon()
Definition: Color.h:210
agxRender::Color::AliceBlue
static agxRender::Color AliceBlue()
Definition: Color.h:113
agxRender::Color::Linen
static agxRender::Color Linen()
Definition: Color.h:124
agxRender::Color::DarkSlateGray
static agxRender::Color DarkSlateGray()
Definition: Color.h:126
agxRender::Color::DarkViolet
static agxRender::Color DarkViolet()
Definition: Color.h:192
agxRender::Color::VioletRed
static agxRender::Color VioletRed()
Definition: Color.h:198
agxRender::Color::MediumOrchid
static agxRender::Color MediumOrchid()
Definition: Color.h:171
agxRender::Color::RGBToHSV
static AGXPHYSICS_EXPORT Color RGBToHSV(const Color &rgb)
Convert a rgb color to HSV.
agxRender::Color::Silver
static agxRender::Color Silver()
Definition: Color.h:133
agxRender::Color::OliveDrab
static agxRender::Color OliveDrab()
Definition: Color.h:118
agxRender::Color::b
float b() const
Definition: Color.h:61
agxRender::Color::Beige
static agxRender::Color Beige()
Definition: Color.h:178
agxRender::Color::LimeGreen
static agxRender::Color LimeGreen()
Definition: Color.h:145
agxRender::Color::PeachPuff
static agxRender::Color PeachPuff()
Definition: Color.h:147
agxRender::Color::MediumPurple
static agxRender::Color MediumPurple()
Definition: Color.h:167
agxRender::Color::getNumColors
static AGXPHYSICS_EXPORT size_t getNumColors()
agxRender::Color::RosyBrown
static agxRender::Color RosyBrown()
Definition: Color.h:187
agxRender::Color::Bisque
static agxRender::Color Bisque()
Definition: Color.h:172
agxRender::Color::DeepSkyBlue
static agxRender::Color DeepSkyBlue()
Definition: Color.h:161
agxRender::Color::b
float & b()
Definition: Color.h:62
agxRender::Color::Cyan
static agxRender::Color Cyan()
Definition: Color.h:173
agxRender::Color::BlanchedAlmond
static agxRender::Color BlanchedAlmond()
Definition: Color.h:143
agxRender::Color::White
static agxRender::Color White()
Definition: Color.h:160
agxRender::Color::Maroon
static agxRender::Color Maroon()
Definition: Color.h:123
agxRender::Color::IndianRed
static agxRender::Color IndianRed()
Definition: Color.h:138
agxRender::Color::ForestGreen
static agxRender::Color ForestGreen()
Definition: Color.h:141
agxRender::Color::LightBlue
static agxRender::Color LightBlue()
Definition: Color.h:215
agx::Vec3T< Real32 >
agxRender::Color::DarkCyan
static agxRender::Color DarkCyan()
Definition: Color.h:134
agxRender::Color::LightSalmon
static agxRender::Color LightSalmon()
Definition: Color.h:115
agxRender::Color::Violet
static agxRender::Color Violet()
Definition: Color.h:129
agxRender::Color::DarkRed
static agxRender::Color DarkRed()
Definition: Color.h:225
agxRender::Color::MediumSlateBlue
static agxRender::Color MediumSlateBlue()
Definition: Color.h:150
agxRender::Color::r
float r() const
Definition: Color.h:57
agxRender::Color::Yellow
static agxRender::Color Yellow()
Definition: Color.h:193
agx::Vec3f
Vec3T< Real32 > Vec3f
Definition: Vec3.h:39
agxRender::Color::Turquoise
static agxRender::Color Turquoise()
Definition: Color.h:200
agxRender::Color::Tan
static agxRender::Color Tan()
Definition: Color.h:204
agxRender::Color::LightPink
static agxRender::Color LightPink()
Definition: Color.h:175
agxRender::Color::Chocolate
static agxRender::Color Chocolate()
Definition: Color.h:245
agxRender::Color::Olive
static agxRender::Color Olive()
Definition: Color.h:214
agxRender::Color::SaddleBrown
static agxRender::Color SaddleBrown()
Definition: Color.h:219
agxRender::Color::LightSkyBlue
static agxRender::Color LightSkyBlue()
Definition: Color.h:177
agxRender::Color::Color
Color()
Default constructor. Set color to 0,0,0,1.
Definition: Color.h:38
AGX_FORCE_INLINE
#define AGX_FORCE_INLINE
Definition: macros.h:58
agx::Vec4T::x
T & x()
Definition: Vec4Template.h:490
agxRender::Color::Plum
static agxRender::Color Plum()
Definition: Color.h:227
agxRender::Color::Magenta
static agxRender::Color Magenta()
Definition: Color.h:201
agxRender::Color::Chartreuse
static agxRender::Color Chartreuse()
Definition: Color.h:194
agxRender::Color::LightGoldenrod
static agxRender::Color LightGoldenrod()
Definition: Color.h:131