.TH "SoSFColorRGBA" 3 "Thu May 29 2014" "Version 4.0.0a" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoSFColorRGBA \- .PP The \fBSoSFColorRGBA\fP class is a container for an \fBSbColor4f\fP value\&. .PP This field is used where nodes, engines or other field containers needs to store a single color value (i\&.e\&. Red + Green + Blue + Alpha)\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoSField\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fBSoType\fP \fBgetTypeId\fP (void) const " .br .ti -1c .RI "virtual void \fBcopyFrom\fP (const \fBSoField\fP &field)" .br .ti -1c .RI "const \fBSoSFColorRGBA\fP & \fBoperator=\fP (const \fBSoSFColorRGBA\fP &field)" .br .ti -1c .RI "virtual SbBool \fBisSame\fP (const \fBSoField\fP &field) const " .br .ti -1c .RI "const \fBSbColor4f\fP & \fBgetValue\fP (void) const " .br .ti -1c .RI "void \fBsetValue\fP (const \fBSbColor4f\fP &newvalue)" .br .ti -1c .RI "const \fBSbColor4f\fP & \fBoperator=\fP (const \fBSbColor4f\fP &newvalue)" .br .ti -1c .RI "int \fBoperator==\fP (const \fBSoSFColorRGBA\fP &field) const " .br .ti -1c .RI "int \fBoperator!=\fP (const \fBSoSFColorRGBA\fP &field) const " .br .ti -1c .RI "void \fBsetValue\fP (const \fBSbVec4f\fP &vec)" .br .ti -1c .RI "void \fBsetValue\fP (float red, float green, float blue, float alpha)" .br .ti -1c .RI "void \fBsetValue\fP (const float rgba[4])" .br .ti -1c .RI "void \fBsetHSVValue\fP (float h, float s, float v, float a)" .br .ti -1c .RI "void \fBsetHSVValue\fP (const float hsva[4])" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static void * \fBcreateInstance\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "\fBSbColor4f\fP \fBvalue\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP The \fBSoSFColorRGBA\fP class is a container for an \fBSbColor4f\fP value\&. .PP This field is used where nodes, engines or other field containers needs to store a single color value (i\&.e\&. Red + Green + Blue + Alpha)\&. Fields of this type stores their value to file as a 'R G B A' quadruple component, where each color component value is between 0\&.0 and 1\&.0\&. .PP \fBSee also:\fP .RS 4 \fBSbColor4f\fP, \fBSoMFColorRGBA\fP .RE .PP .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoSFColorRGBA::getTypeId (void) const\fC [virtual]\fP" Returns the type identification instance which uniquely identifies the Coin field class the object belongs to\&. .PP \fBSee also:\fP .RS 4 getClassTypeId(), \fBSoType\fP .RE .PP .PP Implements \fBSoField\fP\&. .SS "void SoSFColorRGBA::copyFrom (const \fBSoField\fP &f)\fC [virtual]\fP" Copy value(s) from \fIf\fP into this field\&. \fIf\fP must be of the same type as this field\&. .PP Implements \fBSoField\fP\&. .SS "SbBool SoSFColorRGBA::isSame (const \fBSoField\fP &f) const\fC [virtual]\fP" Check for equal type and value(s)\&. .PP Implements \fBSoField\fP\&. .SS "void SoSFColorRGBA::setValue (const \fBSbVec4f\fP &vec)" Set color value from a vector with three elements\&. The three elements will be interpreted as red, green and blue, respectively\&. .SS "void SoSFColorRGBA::setValue (floatred, floatgreen, floatblue, floatalpha)" Set color value from \fIred\fP, \fIgreen\fP and \fIblue\fP\&. Value range for each component is between 0\&.0 and 1\&.0\&. .SS "void SoSFColorRGBA::setValue (const floatrgba[4])" Set color value from a floating point number array with three elements\&. The three elements will be interpreted as red, green and blue, respectively\&. .SS "void SoSFColorRGBA::setHSVValue (floath, floats, floatv, floata)" Set color value from \fIh\fP, \fIs\fP and \fIv\fP, where \fIis\fP 'hue', \fIs\fP is 'saturation' and \fIv\fP is 'value'\&. .SS "void SoSFColorRGBA::setHSVValue (const floathsva[4])" Set color value from a floating point number array with three elements\&. The three elements will be interpreted as hue, saturation and value, respectively\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.