DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
|
Represents a curve which can be used to map values (e.g. adjust a brighnetss value of a led to the brightness perception of the human eye). More...
Public Types | |
enum | CurveTypeEnum { Linear, Linear0To224, Linear0To192, Linear0To160, Linear0To128, Linear0To96, Linear0To64, Linear0To32, Linear0To16, InvertedLinear, SwissLizardsLedCurve } |
Enumeration of predefined curves. More... | |
Public Member Functions | |
byte | MapValue (byte CurvePosition) |
Returns the value from the specified curve position. More... | |
byte | MapValue (int CurvePosition) |
Returns the value from the specified curve position. More... | |
void | SetCurve (CurveTypeEnum CurveType) |
Sets the the fading curve to one of the predefined curves from the FadingCurveTypeEnum. More... | |
Curve () | |
Initializes a new instance of the Curve class. More... | |
Curve (CurveTypeEnum CurveType) | |
Initializes a new instance of the Curve class. More... | |
System.Xml.Schema.XmlSchema | GetSchema () |
Part of the IXmlSerializable interface. Must always return null. More... | |
void | ReadXml (System.Xml.XmlReader reader) |
Set the data of the object from its XML representation. More... | |
void | WriteXml (System.Xml.XmlWriter writer) |
Converts the object to its xml representation. More... | |
Properties | |
byte[] | Data [get, set] |
Gets or sets the curve data array. The curve array must have 256 elements. More... | |
Properties inherited from DirectOutput.General.Generic.NamedItemBase | |
string | Name [get, set] |
Name of the named item. Triggers BeforeNameChange before a new Name is set. Triggers AfterNameChanged after a new name has been set. More... | |
Properties inherited from DirectOutput.General.Generic.INamedItem | |
string | Name [get, set] |
Gets or sets the name of the item. Must fire the BeforeNameChange and AfterNameChange events when the value of the property is changed. More... | |
Additional Inherited Members | |
Events inherited from DirectOutput.General.Generic.NamedItemBase | |
EventHandler< NameChangeEventArgs > | AfterNameChanged |
Event is fired after the value of the property Name has changed. More... | |
EventHandler< NameChangeEventArgs > | BeforeNameChange |
Event is fired before the value of the property Name is changed. More... | |
Represents a curve which can be used to map values (e.g. adjust a brighnetss value of a led to the brightness perception of the human eye).
Enumeration of predefined curves.
DirectOutput.General.Curve.Curve | ( | ) |
Initializes a new instance of the Curve class.
DirectOutput.General.Curve.Curve | ( | CurveTypeEnum | CurveType | ) |
Initializes a new instance of the Curve class.
CurveType | Type of the curve. |
System.Xml.Schema.XmlSchema DirectOutput.General.Curve.GetSchema | ( | ) |
Part of the IXmlSerializable interface. Must always return null.
byte DirectOutput.General.Curve.MapValue | ( | byte | CurvePosition | ) |
Returns the value from the specified curve position.
CurvePosition | The curve position. |
byte DirectOutput.General.Curve.MapValue | ( | int | CurvePosition | ) |
Returns the value from the specified curve position.
CurvePosition | The curve position. |
void DirectOutput.General.Curve.ReadXml | ( | System.Xml.XmlReader | reader | ) |
Set the data of the object from its XML representation.
reader | The T:System.Xml.XmlReader-stream containing the data for ther object. |
void DirectOutput.General.Curve.SetCurve | ( | CurveTypeEnum | CurveType | ) |
Sets the the fading curve to one of the predefined curves from the FadingCurveTypeEnum.
CurveType | Type of the fading curve. |
void DirectOutput.General.Curve.WriteXml | ( | System.Xml.XmlWriter | writer | ) |
Converts the object to its xml representation.
writer | The T:System.Xml.XmlWriter-stream, to which the object is serialized. |
|
getset |
Gets or sets the curve data array. The curve array must have 256 elements.
The curve array (256 elements).
System.Exception | The curve array must have 256 elements, but a array with {0} elements has been supplied. |