C# Class Mirror.VioletMirror

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
GetApplicationVersion ( ) : string
GetBootloaderVersion ( ) : string

Method Details

CreateInputReport() protected méthode

protected CreateInputReport ( ) : InputReport
Résultat Mirror.UsbLibrary.InputReport

CreateOutputReport() protected méthode

protected CreateOutputReport ( EventType eventType, byte data ) : OutputEvent
eventType EventType
data byte
Résultat OutputEvent

Dispose() protected méthode

protected Dispose ( bool bDisposing ) : void
bDisposing bool
Résultat void

EnsureIsInitialized() public méthode

Initializes mirror.
public EnsureIsInitialized ( ) : void
Résultat void

GetChoreoInfo() public méthode

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
Résultat ChoreoInfo

GetMirrorId() protected méthode

protected GetMirrorId ( ) : string
Résultat string

GetNewMessageId() protected méthode

Gets new message identifier.
protected GetNewMessageId ( ) : ushort
Résultat ushort

GetOrientation() public méthode

Gets the orientation of mirror.
public GetOrientation ( ) : Orientation
Résultat Orientation

HandleDataReceived() protected méthode

protected HandleDataReceived ( InputReport inputReport ) : void
inputReport Mirror.UsbLibrary.InputReport
Résultat void

PlayChoreo() public méthode

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

SendData() protected méthode

protected SendData ( EventType eventType, byte data ) : void
eventType EventType
data byte
Résultat void

SendDataAndWaitResponse() protected méthode

protected SendDataAndWaitResponse ( EventType eventType, byte data ) : InputEvent
eventType EventType
data byte
Résultat InputEvent

SetChoreoOff() public méthode

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
Résultat bool

SetChoreoPowerOnly() public méthode

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

UnknownChoreoCommand02() public méthode

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

UnknownChoreoCommand05() public méthode

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

UnknownChoreoCommand06() public méthode

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

VioletMirror() public méthode

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