Home | Hierarchy | Members | Alphabetical | Related Pages |
#include <mfcolor.h>
Inherits deque.
Static Public Member Functions | |
static const char * | typeName () |
static FieldTypeId | typeId () |
Friends | |
std::ostream & | operator<< (std::ostream &s, const MFColor &f) |
MFColor mf; mf.push_back(SFColor(1.0f,0.0f,0.0f)); // Red mf.push_front(SFColor(0.0f,1.0f,0.0f)); // Green mf[0].setRGB(0.0f,0.0f,1.0f); // Blue
Below is included the documentation for this field type from the ISO standard.
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 [ ].
const char * typeName | ( | ) | [inline, static] |
FieldTypeId typeId | ( | ) | [inline, static] |
std::ostream& operator<< | ( | std::ostream & | s, | |
const MFColor & | f | |||
) | [friend] |
Generated on 5 Jan 2007 with
![]() |
|