logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoSFColor — field containing an RGB color

Description

       A  single-value  field  containing  an SbColor. Values may be set in either RGB (red, green, blue) or HSV
       (hue, saturation, value) color spaces.

       SoSFColors are written to file as an  RGB  triple  of  floating  point  numbers  in  standard  scientific
       notation, in the range 0.0 to 1.0.

Inherits From

       SoField > SoSField > SoSFColor

Methods

voidsetValue(constSbVec3f&vec)voidsetValue(floatred,floatgreen,floatblue)voidsetValue(constfloatrgb[3])voidsetHSVValue(floathue,floatsaturation,floatvalue)voidsetHSVValue(constfloathsv[3])
          Convenience methods for setting the value.

     staticSoTypegetClassTypeId()virtualvoidgetTypeId()const
          Returns the type for this class or a particular object of this class.

     constSbColor&getValue()const
          Returns this field's value.

     constSbColor&operator=(constSbColor&newValue)voidsetValue(constSbColor&newValue)
          Sets this field to newValue.

     intoperator==(constSoSFColor&f)constintoperator!=(constSoSFColor&f)const
          Returns TRUE if f is of the same type and has the same value as this field.

Name

       SoSFColor — field containing an RGB color

See Also

SoField,SoSField,SoMFColor,SbColorSoSFColor(3IV)()

Synopsis

          Methods from class SoSFColor:

     voidsetValue(constSbVec3f&vec)voidsetValue(floatred,floatgreen,floatblue)voidsetValue(constfloatrgb[3])voidsetHSVValue(floathue,floatsaturation,floatvalue)voidsetHSVValue(constfloathsv[3])staticSoTypegetClassTypeId()virtualvoidgetTypeId()constconstSbColor&getValue()constconstSbColor&operator=(constSbColor&newValue)voidsetValue(constSbColor&newValue)intoperator==(constSoSFColor&f)constintoperator!=(constSoSFColor&f)const

          Methods from class SoField:

     voidsetIgnored(SbBoolignore)SbBoolisIgnored()constSbBoolisDefault()constvirtualSbBoolisOfType(SoTypetype)constSbBoolset(constchar*valueString)voidget(SbString&valueString)voidtouch()SbBoolconnectFrom(SoField*fromField)SbBoolconnectFrom(SoEngineOutput*fromEngine)voiddisconnect()SbBoolisConnected()constSbBoolisConnectedFromField()constSbBoolgetConnectedField(SoField*&writingField)constSbBoolisConnectedFromEngine()constSbBoolgetConnectedEngine(SoEngineOutput*&engineOutput)constvoidenableConnection(SbBoolflag)SbBoolisConnectionEnabled()constintgetForwardConnections(SoFieldList&list)constSoFieldContainer*getContainer()const

See Also