Class PrimitiveGradient
A simple gradient of points associated with values.
Namespace: IVLab.ABREngine
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class PrimitiveGradient : IPrimitiveGradient, IABRInput
Remarks
At present, this class is expressly used to describe the opacitymap. In the future this may change, and when that happens this class will likely change as well.
Constructors
| Improve this Doc View SourcePrimitiveGradient(Guid, float[], string[])
A simple gradient of points associated with values.
Declaration
public PrimitiveGradient(Guid inputValue, float[] points, string[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | inputValue | |
| float[] | points | |
| string[] | values |
Remarks
At present, this class is expressly used to describe the opacitymap. In the future this may change, and when that happens this class will likely change as well.
Properties
| Improve this Doc View SourceGenre
"Genre" of the input - is it Data, a visual element, or something else?
Declaration
public ABRInputGenre Genre { get; }
Property Value
| Type | Description |
|---|---|
| ABRInputGenre |
Remarks
At present, this class is expressly used to describe the opacitymap. In the future this may change, and when that happens this class will likely change as well.
InputValue
A simple gradient of points associated with values.
Declaration
public Guid InputValue { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
Remarks
At present, this class is expressly used to describe the opacitymap. In the future this may change, and when that happens this class will likely change as well.
Points
A simple gradient of points associated with values.
Declaration
public float[] Points { get; }
Property Value
| Type | Description |
|---|---|
| float[] |
Remarks
At present, this class is expressly used to describe the opacitymap. In the future this may change, and when that happens this class will likely change as well.
Values
A simple gradient of points associated with values.
Declaration
public string[] Values { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
Remarks
At present, this class is expressly used to describe the opacitymap. In the future this may change, and when that happens this class will likely change as well.
Methods
| Improve this Doc View SourceDefault()
Return a default 0%-100% gradient at 0.0 and 1.0
Declaration
public static PrimitiveGradient Default()
Returns
| Type | Description |
|---|---|
| PrimitiveGradient |
Remarks
At present, this class is expressly used to describe the opacitymap. In the future this may change, and when that happens this class will likely change as well.
GetRawABRInput()
Get the "raw" ABR input - the one that is represented in the state JSON
Declaration
public RawABRInput GetRawABRInput()
Returns
| Type | Description |
|---|---|
| RawABRInput |
Remarks
At present, this class is expressly used to describe the opacitymap. In the future this may change, and when that happens this class will likely change as well.