Home | Hierarchy | Members | Alphabetical | Related Pages |
#include <sfcolor.h>
Public Member Functions | |
SFColor () | |
SFColor (const float *c) | |
SFColor (const float r, const float g, const float b) | |
SFColor & | operator= (const SFColor &c) |
operator const float * () const | |
float | red () const |
float | green () const |
float | blue () const |
void | setRGB (const float r, const float g, const float b) |
void | setRed (const float) |
void | setGreen (const float) |
void | setBlue (const float) |
bool | operator== (const SFColor &c) const |
Static Public Member Functions | |
const char * | typeName () |
FieldTypeId | typeId () |
Friends | |
std::ostream & | operator<< (std::ostream &s, const SFColor &f) |
The SFColor field or event specifies one RGB (red-green-blue) colour triple. MFColor specifies zero or more RGB triples. Each colour is written to the VRML file as an RGB triple of floating point numbers in ISO C floating point format (see 2.[ISOC]) in the range 0.0 to 1.0. For example:
fooColor [ 1.0 0. 0.0, 0 1 0, 0 0 1 ]
is an MFColor field, fooColor, containing the three primary colours red, green, and blue.
The initial value of an SFColor eventOut is (0 0 0). The initial value of an MFColor eventOut is [ ].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Generated on 24 Feb 2005 with version 1.3.9.1. |