C# Класс Mirror.VioletMirror

Represents single VioletMirror.
Might get thrown from any method if mirror is disconnected before this object is disposed.
Наследование: HIDDevice
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
GetApplicationVersion ( ) : string
GetBootloaderVersion ( ) : string

Описание методов

CreateInputReport() защищенный Метод

protected CreateInputReport ( ) : InputReport
Результат Mirror.UsbLibrary.InputReport

CreateOutputReport() защищенный Метод

protected CreateOutputReport ( EventType eventType, byte data ) : OutputEvent
eventType EventType
data byte
Результат OutputEvent

Dispose() защищенный Метод

protected Dispose ( bool bDisposing ) : void
bDisposing bool
Результат void

EnsureIsInitialized() публичный Метод

Initializes mirror.
public EnsureIsInitialized ( ) : void
Результат void

GetChoreoInfo() публичный Метод

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
Результат ChoreoInfo

GetMirrorId() защищенный Метод

protected GetMirrorId ( ) : string
Результат string

GetNewMessageId() защищенный Метод

Gets new message identifier.
protected GetNewMessageId ( ) : ushort
Результат ushort

GetOrientation() публичный Метод

Gets the orientation of mirror.
public GetOrientation ( ) : Orientation
Результат Orientation

HandleDataReceived() защищенный Метод

protected HandleDataReceived ( InputReport inputReport ) : void
inputReport Mirror.UsbLibrary.InputReport
Результат void

PlayChoreo() публичный Метод

Sets choreo on. Last choreo is also played. ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public PlayChoreo ( ) : bool
Результат bool

SendData() защищенный Метод

protected SendData ( EventType eventType, byte data ) : void
eventType EventType
data byte
Результат void

SendDataAndWaitResponse() защищенный Метод

protected SendDataAndWaitResponse ( EventType eventType, byte data ) : InputEvent
eventType EventType
data byte
Результат InputEvent

SetChoreoOff() публичный Метод

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
Результат bool

SetChoreoPowerOnly() публичный Метод

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public SetChoreoPowerOnly ( ) : bool
Результат bool

UnknownChoreoCommand02() публичный Метод

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public UnknownChoreoCommand02 ( ) : void
Результат void

UnknownChoreoCommand05() публичный Метод

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public UnknownChoreoCommand05 ( ) : void
Результат void

UnknownChoreoCommand06() публичный Метод

ALL CHOREO RELATED STUFF IS HIGHLY EXPERIMENTAL AND PROPABLY WON'T WORK!
public UnknownChoreoCommand06 ( ) : void
Результат void

VioletMirror() публичный Метод

Initializes new instance of VioletMirror. User MirrorFactory to get mirror.
public VioletMirror ( string devicePath ) : System.Text
devicePath string
Результат System.Text