WIP
DirectOutput framework for virtual pinball cabinets WIP
|
Go to: Overview |
The PacDrive is a simple output controller with 16 digital/on off outputs. More...
Public Member Functions | |
override void | Update () |
Signals the workerthread that all pending updates for the PacDrive should be sent to the PacDrive. More... | |
override void | Init (Cabinet Cabinet) |
Initializes the PacDrive object. This method does also start the workerthread which does the actual update work when Update() is called. This method should only be called once. Subsequent calls have no effect. More... | |
override void | Finish () |
Finishes the PacDrive object. Finish does also terminate the workerthread. More... | |
PacDrive () | |
Initializes a new instance of the PacDriveInstance class. More... | |
Protected Member Functions | |
override void | OnOutputValueChanged (IOutput Output) |
This method is called whenever the value of a output in the Outputs property changes its value. It updates the internal array holding the states of the PacDrive outputs. 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) |
Additional Inherited Members | |
Properties inherited from DirectOutput.Cab.Out.OutputControllerBase | |
virtual OutputList | Outputs [get, set] |
Contains the OutputList object for the outputs of the output controller. 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.Out.IOutputController | |
new string | Name [get, set] |
Name of the IOutputController. This property is fully implemented in the abstract OutputControllerBase class. More... | |
OutputList | Outputs [get, set] |
OutputList containing the IOutput objects for a IOutputController. More... | |
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... | |
The PacDrive is a simple output controller with 16 digital/on off outputs.
DOF supports a the use of 1 PacDrive unit. This unit can be detected and configured automatically. If auto configuration is used, the generated LedWizEquivalent toy for the PacDrive will have number 19. This means that ini files numbered with 19 are automatically used to configure a PicDrive unit.
The outputs are by default turned on when the PacDrive unit is powered up. This controller class will turn off the PacDrive outputs upon initialisation and when it is finished.
This unit is made and sold by Ultimarc.
Definition at line 24 of file PacDrive.cs.
DirectOutput.Cab.Out.Pac.PacDrive.PacDrive | ( | ) |
Initializes a new instance of the PacDriveInstance class.
Definition at line 187 of file PacDrive.cs.
override void DirectOutput.Cab.Out.Pac.PacDrive.Finish | ( | ) |
Finishes the PacDrive object.
Finish does also terminate the workerthread.
Implements DirectOutput.Cab.Out.IOutputController.
Definition at line 55 of file PacDrive.cs.
override void DirectOutput.Cab.Out.Pac.PacDrive.Init | ( | Cabinet | Cabinet | ) |
Initializes the PacDrive object.
This method does also start the workerthread which does the actual update work when Update() is called.
This method should only be called once. Subsequent calls have no effect.
Cabinet | The cabinet object which is using the output controller instance. |
Implements DirectOutput.Cab.Out.IOutputController.
Definition at line 43 of file PacDrive.cs.
|
protectedvirtual |
This method is called whenever the value of a output in the Outputs property changes its value.
It updates the internal array holding the states of the PacDrive outputs.
Output | The output. |
System.Exception | The OutputValueChanged event handler for the PacDrive uni has been called by a sender which is not a OutputNumbered. or PacDrive output numbers must be in the range of 1-16. The supplied output number {0} is out of range..Build(ON.Number) |
Implements DirectOutput.Cab.Out.OutputControllerBase.
Definition at line 97 of file PacDrive.cs.
override void DirectOutput.Cab.Out.Pac.PacDrive.Update | ( | ) |
Signals the workerthread that all pending updates for the PacDrive should be sent to the PacDrive.
Implements DirectOutput.Cab.Out.IOutputController.
Definition at line 31 of file PacDrive.cs.