1SoSFColor(3IV)()                                              SoSFColor(3IV)()
2
3
4

NAME

6       SoSFColor — field containing an RGB color
7

INHERITS FROM

9       SoField > SoSField > SoSFColor
10

SYNOPSIS

12          Methods from class SoSFColor:
13
14     void                setValue(const SbVec3f &vec)
15     void                setValue(float red, float green, float blue)
16     void                setValue(const float rgb[3])
17     void                setHSVValue(float hue, float saturation, float value)
18     void                setHSVValue(const float hsv[3])
19     static SoType       getClassTypeId()
20     virtual void        getTypeId() const
21     const SbColor &     getValue() const
22     const SbColor &     operator =(const SbColor & newValue)
23     void                setValue(const SbColor & newValue)
24     int                 operator ==(const SoSFColor &f) const
25     int                 operator !=(const SoSFColor &f) const
26
27          Methods from class SoField:
28
29     void                setIgnored(SbBool ignore)
30     SbBool              isIgnored() const
31     SbBool              isDefault() const
32     virtual SbBool      isOfType(SoType type) const
33     SbBool              set(const char *valueString)
34     void                get(SbString &valueString)
35     void                touch()
36     SbBool              connectFrom(SoField *fromField)
37     SbBool              connectFrom(SoEngineOutput *fromEngine)
38     void                disconnect()
39     SbBool              isConnected() const
40     SbBool              isConnectedFromField() const
41     SbBool              getConnectedField(SoField *&writingField) const
42     SbBool              isConnectedFromEngine() const
43     SbBool              getConnectedEngine(SoEngineOutput     *&engineOutput)
44                              const
45     void                enableConnection(SbBool flag)
46     SbBool              isConnectionEnabled() const
47     int                 getForwardConnections(SoFieldList &list) const
48     SoFieldContainer *  getContainer() const
49
50

DESCRIPTION

52       A single-value field containing an SbColor. Values may be set in either
53       RGB (red, green, blue) or HSV (hue, saturation, value) color spaces.
54
55       SoSFColors  are written to file as an RGB triple of floating point num‐
56       bers in standard scientific notation, in the range 0.0 to 1.0.
57

METHODS

59     void                setValue(const SbVec3f &vec)
60     void                setValue(float red, float green, float blue)
61     void                setValue(const float rgb[3])
62     void                setHSVValue(float hue, float saturation, float value)
63     void                setHSVValue(const float hsv[3])
64          Convenience methods for setting the value.
65
66     static SoType       getClassTypeId()
67     virtual void        getTypeId() const
68          Returns the type for this class  or  a  particular  object  of  this
69          class.
70
71     const SbColor &     getValue() const
72          Returns this field's value.
73
74     const SbColor &     operator =(const SbColor & newValue)
75     void                setValue(const SbColor & newValue)
76          Sets this field to newValue.
77
78     int                 operator ==(const SoSFColor &f) const
79     int                 operator !=(const SoSFColor &f) const
80          Returns TRUE if f is of the same type and has the same value as this
81          field.
82
83

SEE ALSO

85       SoField, SoSField, SoMFColor, SbColor
86
87
88
89
90                                                              SoSFColor(3IV)()
Impressum