Click or drag to resize
SbColorRGBA Structure
ColorRGBA vector class.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.0.Release.b1c2f41e1719ac8d4c3f00435c0b4b040d8bfcc0
Syntax
public struct SbColorRGBA

The SbColorRGBA type exposes the following members.

Constructors
  NameDescription
Public methodSbColorRGBA(Single)
Constructor that takes an array of 4 floats.
Public methodSbColorRGBA(SbVec4f)
Constructor that takes a vector value.
Public methodSbColorRGBA(Single, Single, Single)
Contruct an SbColorRGBA from 3 float components.
Public methodSbColorRGBA(Single, Single, Single, Single)
Constructor that takes 4 floats.
Top
Methods
  NameDescription
Public methodEquals
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for the value of this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetHSVAValue(Single)
Fill the array with the 4 HSVA color components.
Public methodGetHSVAValue(Single, Single, Single, Single)
Returns 4 individuals HSVA color components.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue(Single)
Fill the array with the 4 RGBA color components.
Public methodGetValue(Single, Single, Single, Single)
Gets 4 individuals RGBA color components.
Public methodSetHSVAValue(Single)
Sets value of color vector from array of 4 HSVA components.
Public methodSetHSVAValue(Single, Single, Single, Single)
Sets value of color vector from an HSV (Hue, Saturation, and Value) plus Alpha color value.
Public methodSetValue(Single)
Sets value of color vector from array of 4 RGBA components.
Public methodSetValue(Single, Single, Single, Single)
Sets value of color vector from 4 RGBA (Red, Green, Blue and Alphe) components.
Public methodToString
Converts this SbColorRGBA structure to a human readable string.
(Overrides ValueTypeToString.)
Top
Operators
Properties
  NameDescription
Public propertyA
Gets or sets the alpha component of color.
Public propertyB
Gets or sets the blue component of color.
Public propertyG
Gets or sets the green component of color.
Public propertyItem
Gets or sets the element at the specified index.
Public propertyPackedValue
Sets/gets value of color in an RGBA packed color value.
Public propertyR
Gets or sets the red component of color.
Top
Remarks
This class is used to represent an RGBA color. Each component of the vector is a floating-point number between 0.0 and 1.0.
See Also