Click or drag to resize
SbColor Structure
Color vector class.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax
public struct SbColor

The SbColor type exposes the following members.

Constructors
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 methodStatic memberGetHSVColor
Gets a color vector from 3 HSV (hue, saturation, and value) components.
Public methodGetHSVValue(Single)
Fill an array of 3 HSV components.
Public methodGetHSVValue(Single, Single, Single)
Returns 3 individual HSV components.
Public methodGetPackedValue
Returns an RGBA packed color value, derived from the color vector with a transparency value to 0 (means no transparency).
Public methodGetPackedValue(Single)
Returns an RGBA packed color value, derived from the color vector and the passed transparency value.
Public methodGetRGBValue(Single)
Fill an array of 3 RGB components.
Public methodGetRGBValue(Single, Single, Single)
Returns 3 individual RGB components.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetHSVValue(Single)
Sets value of color vector from array of 3 HSV components.
Public methodSetHSVValue(Single, Single, Single)
Sets value of color vector from 3 HSV (hue, saturation, and value) components.
Public methodSetPackedValue
Sets value of color vector from an RGBA packed color value.
Public methodSetRGBValue(Single)
Sets value of color vector from array of 3 RGB components.
Public methodSetRGBValue(Single, Single, Single)
Sets value of color vector from 3 RGB (Red, Green, and Blue) components.
Public methodToString
Converts this SbColor structure to a human readable string.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Additive (+) operator. Performs the addition between the vectors c1 and c2.
Public operatorStatic memberDivision(SbColor, SbColor)
The division operator (/) divides each components of vector c1 by components of vector c2.
Public operatorStatic memberDivision(SbColor, Single)
The division operator (/) divides each components of vector c1 by d.
Public operatorStatic memberEquality
The equality operator.
Public operatorStatic member(SbColor to SbColorRGBA)
Explicit cast operator to SbColorRGBA.
Public operatorStatic member(SbColor to SbVec3f)
Implicit cast operator to SbVec3f.
Public operatorStatic memberInequality
The inequality operator.
Public operatorStatic memberMultiply(Single, SbColor)
The multiplication operator (*), which applies on each component of c1 the d multiplicative factor.
Public operatorStatic memberMultiply(SbColor, SbColor)
The multiplication operator (*), which multiply each component of c1 by each component of vector c2.
Public operatorStatic memberMultiply(SbColor, Single)
The multiplication operator (*), which applies on each component of c1 the d multiplicative factor.
Public operatorStatic memberSubtraction
Subtraction (–) operator. Performs the difference between the vectors c1 and c2.
Public operatorStatic memberUnaryNegation
The unary negation operator (-). Negates each vector component.
Top
Properties
  NameDescription
Public propertyB
Gets or sets the blue component of the color.
Public propertyG
Gets or sets the green component of the color.
Public propertyItem
Gets or sets the element at the specified index.
Public propertyR
Gets or sets the red component of the color.
Top
Remarks
This class is used to represent an RGB color. Each component of the vector is a floating-point number between 0.0 and 1.0. There are routines to convert back and forth between RGB and HSV.
See Also