public class SoSFColor extends SoSField
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.
See also:
SoField.FieldTypesInventor.ConstructorCommandVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoSFColor()
Deprecated.
As of Open Inventor 9.3 Use constructor with SoFieldContainer instead.
|
SoSFColor(SoFieldContainer fieldContainer,
java.lang.String fieldName,
SoField.FieldTypes fieldType,
SbColor defaultValue)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
SbColor |
getValue()
Returns this field's value.
|
long |
getValueSize()
Get size of the value.
|
void |
setHSVValue(float[] hsv)
Convenience method for setting the value.
|
void |
setHSVValue(float h,
float s,
float v)
Convenience method for setting the value.
|
void |
setValue(float[] rgb)
Convenience method for setting the value.
|
void |
setValue(float r,
float g,
float b)
Convenience method for setting the value.
|
void |
setValue(SbColor newValue)
Sets this field to
newValue.
|
void |
setValue(SbVec3f vec)
Convenience method for setting the value.
|
appendConnection, appendConnection, appendConnection, connectFrom, connectFrom, connectFrom, disconnect, disconnect, disconnect, disconnect, enableConnection, get, getConnectedEngine, getConnectedField, getConnectedVRMLInterp, getContainer, getNumConnections, isConnected, isConnectedFromEngine, isConnectedFromField, isConnectedFromVRMLInterp, isConnectionEnabled, isDefault, isIgnored, set, setIgnored, touchdispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public SoSFColor()
public SoSFColor(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType, SbColor defaultValue)
public void setValue(float r,
float g,
float b)
public void setHSVValue(float h,
float s,
float v)
public void setValue(SbColor newValue)
public void setValue(SbVec3f vec)
public void setHSVValue(float[] hsv)
public long getValueSize()
public void setValue(float[] rgb)
public SbColor getValue()
Generated on February 24, 2026, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com