WIP
DirectOutput framework for virtual pinball cabinets WIP
|
Go to: Overview |
This toy handles analog values (0-255) in a layer structure including alpha value (0=completely transparent, 255=fully opaque) and outputs the belended result of the layers on a single output. More...
Public Member Functions | |
override void | Init (Cabinet Cabinet) |
Initializes the toy. More... | |
override void | UpdateOutputs () |
Updates the output of the toy. More... | |
override void | Finish () |
Resets the toy and releases all references More... | |
override void | Reset () |
Resets the toy. Clears the Layers object and turn off the output (if available). Method must be overwritten. More... | |
AnalogAlphaToy () | |
Initializes a new instance of the AnalogAlphaToy class. More... | |
Protected Member Functions | |
int | GetResultingValue () |
Gets the analog value which results from the analog values and alpha values in the dirctionary. More... | |
Protected Member Functions inherited from DirectOutput.General.Generic.NamedItemBase | |
virtual void | AfterNameChange (string OldName, string NewName) |
virtual void | BeforeNameChange (string OldName, string NewName) |
virtual void | OnPropertyChanged (string propertyName) |
virtual void | OnPropertyChanging (string propertyName) |
Protected Attributes | |
IOutput | Output |
Curve | FadingCurve = null |
Cabinet | Cabinet |
Properties | |
LayerDictionary< AnalogAlpha > | Layers [get] |
Gets the layers dictionary. More... | |
string | OutputName [get, set] |
Gets or sets the name of the IOutput object of the toy. More... | |
string | FadingCurveName [get, set] |
Gets or sets the name of the fading curve as defined in the Curves list of the cabinet object. This curve can be used to adjust the output values of the toy to fit the behaviour of the toys hardware and/or human perception. 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... | |
Properties inherited from DirectOutput.Cab.Toys.IToy | |
new string | Name [get, set] |
Gets or sets the Name of the IToy. More... | |
Properties inherited from DirectOutput.Cab.Toys.Layer.ILayerToy< AnalogAlpha > | |
LayerDictionary< LayerElementType > | Layers [get] |
Properties inherited from DirectOutput.Cab.Toys.ISingleOutputToy | |
string | OutputName [get, set] |
Gets or sets the name of the output of the toy. 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 > | BeforeNameChanged |
Event is fired before the value of the property Name is changed. More... | |
PropertyChangedEventHandler | PropertyChanged |
PropertyChangingEventHandler | PropertyChanging |
Events inherited from DirectOutput.General.Generic.INamedItem | |
EventHandler< NameChangeEventArgs > | BeforeNameChanged |
Occurs before the name of the item changes. More... | |
EventHandler< NameChangeEventArgs > | AfterNameChanged |
Occurs when after the name of the item has changed. More... | |
This toy handles analog values (0-255) in a layer structure including alpha value (0=completely transparent, 255=fully opaque) and outputs the belended result of the layers on a single output.
Definition at line 15 of file AnalogAlphaToy.cs.
DirectOutput.Cab.Toys.Layer.AnalogAlphaToy.AnalogAlphaToy | ( | ) |
Initializes a new instance of the AnalogAlphaToy class.
Definition at line 191 of file AnalogAlphaToy.cs.
override void DirectOutput.Cab.Toys.Layer.AnalogAlphaToy.Finish | ( | ) |
Resets the toy and releases all references
Implements DirectOutput.Cab.Toys.IToy.
Definition at line 166 of file AnalogAlphaToy.cs.
|
protected |
Gets the analog value which results from the analog values and alpha values in the dirctionary.
Definition at line 31 of file AnalogAlphaToy.cs.
override void DirectOutput.Cab.Toys.Layer.AnalogAlphaToy.Init | ( | Cabinet | Cabinet | ) |
Initializes the toy.
Implements DirectOutput.Cab.Toys.IToy.
Definition at line 128 of file AnalogAlphaToy.cs.
override void DirectOutput.Cab.Toys.Layer.AnalogAlphaToy.Reset | ( | ) |
Resets the toy.
Clears the Layers object and turn off the output (if available). Method must be overwritten.
Implements DirectOutput.Cab.Toys.IToy.
Definition at line 179 of file AnalogAlphaToy.cs.
|
virtual |
Updates the output of the toy.
Implements DirectOutput.Cab.Toys.ToyBaseUpdatable.
Definition at line 153 of file AnalogAlphaToy.cs.
|
protected |
Definition at line 121 of file AnalogAlphaToy.cs.
|
protected |
Definition at line 75 of file AnalogAlphaToy.cs.
|
protected |
Definition at line 58 of file AnalogAlphaToy.cs.
|
getset |
Gets or sets the name of the fading curve as defined in the Curves list of the cabinet object. This curve can be used to adjust the output values of the toy to fit the behaviour of the toys hardware and/or human perception.
The name of the fading curve.
Definition at line 85 of file AnalogAlphaToy.cs.
|
get |
|
getset |
Gets or sets the name of the IOutput object of the toy.
The name of the output.
Definition at line 67 of file AnalogAlphaToy.cs.