Click or drag to resize

ButterflowWrapper Class

A butterflow wrapper. Provides interaction with the butterflow executable.
Inheritance Hierarchy

Namespace:  butterflow_ui
Assembly:  butterflow-ui (in butterflow-ui.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class ButterflowWrapper : PropertyChangedAlerter

The ButterflowWrapper type exposes the following members.

Constructors
  NameDescription
Public methodButterflowWrapper
Initializes a new instance of the ButterflowWrapper class
Top
Properties
  NameDescription
Public propertyConsoleOutput
Gets the console output from butterflow.
Public propertyIsRunning
Gets a value indicating whether butterflow is currently running.
Public propertyProgressPercentage
Gets the progress percentage as reported by butterflow.
Top
Methods
  NameDescription
Public methodAddConstantCallProperty
Adds a property that will always be called when any property is updated..
(Inherited from PropertyChangedAlerter.)
Public methodCancel
Kills the running instance of butterflow, cancelling its current operation.
Protected methodOnAllPropertiesChanged
Executes when all properties are changed and should be updated.
(Inherited from PropertyChangedAlerter.)
Private methodOnParsedConsoleOutputRecieved
Executes the parsed console output recieved action.
Protected methodCode exampleOnPropertyChanged
Executes the property changed action. This alerts subscribers to its change in value.
(Inherited from PropertyChangedAlerter.)
Private methodParseConsoleOutput
Parses console output and attempts to find known values. If a known value is found, the event is triggered.
Public methodProbe
Probes a video file.
Private methodProcess_Exited
Event handler. Called by Process for exited events.
Private methodProcess_OutputDataReceived
Event handler. Called by Process for output data received events.
Private methodRun(String)
Runs butterflow with the given arguments.
Public methodRun(OptionsConfiguration)
Runs butterflow with the given optionsConfiguration.
Top
Events
  NameDescription
Public eventParsedConsoleOutputRecieved
Event queue for all listeners interested in ParsedConsoleOutputRecieved events.
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from PropertyChangedAlerter.)
Top
Fields
  NameDescription
Private fieldalwaysCall
A list of properties to always call as updated. Generally used for composite properties.
(Inherited from PropertyChangedAlerter.)
Private fieldconsoleOutput
The console output from butterflow.
Private fieldexecutablePath
Full pathname of the butterflow executable file.
Private fieldinterpreter
An input interpreter used for converting string values to numeric values.
Private fieldisRunning
True if butterflow is running, false if not.
Private fieldprogressPercentage
The progress percentage as reported by butterflow.
Private fieldStatic memberREGEX_PROGRESS
The RegEx string for detecting progress made when rendering a video.
Private fieldStatic memberREGEX_PROGRESS_ALT
An alternative RegEx string for detecting progress made when rendering a video.
Private fieldStatic memberREGEX_RATE
The RegEx string for matching the probed playback rate.
Private fieldStatic memberREGEX_RESOLUTION
The RegEx string for matching probed resolution.
Private fieldrunningProcess
The running butterflow process.
Top
See Also