C# Class Mirror.VioletMirror

Represents single VioletMirror.
Might get thrown from any method if mirror is disconnected before this object is disposed.
Inheritance: HIDDevice
Show file Open project: suan/mirlite

Public Methods

Method Description
EnsureIsInitialized ( ) : void

Initializes mirror.

GetChoreoInfo ( ) : ChoreoInfo

Gets choreo info. Actual implementation of this method is still a bit mystery. ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!

GetOrientation ( ) : Orientation

Gets the orientation of mirror.

PlayChoreo ( ) : bool

Sets choreo on. Last choreo is also played. ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!

SetChoreoOff ( ) : bool

Sets choreo off. This also shuts down lights. This works only if mirror is just initialized and no tags are shown to it. ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!

SetChoreoPowerOnly ( ) : bool

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!

UnknownChoreoCommand02 ( ) : void

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!

UnknownChoreoCommand05 ( ) : void

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!

UnknownChoreoCommand06 ( ) : void

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!

VioletMirror ( string devicePath ) : System.Text

Initializes new instance of VioletMirror. User MirrorFactory to get mirror.

Protected Methods

Method Description
CreateInputReport ( ) : InputReport
CreateOutputReport ( EventType eventType, byte data ) : OutputEvent
Dispose ( bool bDisposing ) : void
GetMirrorId ( ) : string
GetNewMessageId ( ) : ushort

Gets new message identifier.

HandleDataReceived ( InputReport inputReport ) : void
SendData ( EventType eventType, byte data ) : void
SendDataAndWaitResponse ( EventType eventType, byte data ) : InputEvent

Private Methods

Method Description
GetApplicationVersion ( ) : string
GetBootloaderVersion ( ) : string

Method Details

CreateInputReport() protected method

protected CreateInputReport ( ) : InputReport
return Mirror.UsbLibrary.InputReport

CreateOutputReport() protected method

protected CreateOutputReport ( EventType eventType, byte data ) : OutputEvent
eventType EventType
data byte
return OutputEvent

Dispose() protected method

protected Dispose ( bool bDisposing ) : void
bDisposing bool
return void

EnsureIsInitialized() public method

Initializes mirror.
public EnsureIsInitialized ( ) : void
return void

GetChoreoInfo() public method

Gets choreo info. Actual implementation of this method is still a bit mystery. ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public GetChoreoInfo ( ) : ChoreoInfo
return ChoreoInfo

GetMirrorId() protected method

protected GetMirrorId ( ) : string
return string

GetNewMessageId() protected method

Gets new message identifier.
protected GetNewMessageId ( ) : ushort
return ushort

GetOrientation() public method

Gets the orientation of mirror.
public GetOrientation ( ) : Orientation
return Orientation

HandleDataReceived() protected method

protected HandleDataReceived ( InputReport inputReport ) : void
inputReport Mirror.UsbLibrary.InputReport
return void

PlayChoreo() public method

Sets choreo on. Last choreo is also played. ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public PlayChoreo ( ) : bool
return bool

SendData() protected method

protected SendData ( EventType eventType, byte data ) : void
eventType EventType
data byte
return void

SendDataAndWaitResponse() protected method

protected SendDataAndWaitResponse ( EventType eventType, byte data ) : InputEvent
eventType EventType
data byte
return InputEvent

SetChoreoOff() public method

Sets choreo off. This also shuts down lights. This works only if mirror is just initialized and no tags are shown to it. ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public SetChoreoOff ( ) : bool
return bool

SetChoreoPowerOnly() public method

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public SetChoreoPowerOnly ( ) : bool
return bool

UnknownChoreoCommand02() public method

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public UnknownChoreoCommand02 ( ) : void
return void

UnknownChoreoCommand05() public method

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public UnknownChoreoCommand05 ( ) : void
return void

UnknownChoreoCommand06() public method

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public UnknownChoreoCommand06 ( ) : void
return void

VioletMirror() public method

Initializes new instance of VioletMirror. User MirrorFactory to get mirror.
public VioletMirror ( string devicePath ) : System.Text
devicePath string
return System.Text