Photomechanics API
Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftSerialMessagesTransport Class Reference

Messages transport for serial port. When connected via USB, turntables appear as COM ports. More...

Inheritance diagram for Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftSerialMessagesTransport:
[legend]

Public Member Functions

 LegacyMftSerialMessagesTransport (SerialPort serialPort)
 Construct messages transport using provided serial port. More...
 
override String ToString ()
 
override void StartListening ()
 Start listening for messages. More...
 
override void SendCommand (String command)
 Send given command string. Command begin and end inserted automatically; More...
 
- Public Member Functions inherited from Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.MessagesTransport
void Dispose ()
 

Protected Member Functions

override void Dispose (Boolean disposing)
 Standard Dispose pattern.
 
- Protected Member Functions inherited from Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.MessagesTransport
void RaiseMessageReceived (String message)
 Raise MessageReceived. More...
 
void ThrowIfDisposed ()
 Throws exception if transport is disposed. More...
 

Additional Inherited Members

- Public Attributes inherited from Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.MessagesTransport
const Char CommandBegin = '#'
 PC-to-turntable command begin character. More...
 
const Char CommandEnd = '.'
 PC-to-turntable command end character. More...
 
- Properties inherited from Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.MessagesTransport
Boolean IsDisposed [get]
 
- Properties inherited from Photomechanics.Photo3DStudio.Common.Interfaces.IDisposableExtended
Boolean IsDisposed [get]
 Determines whether the object is being disposed or already disposed and no longer functional. More...
 
- Events inherited from Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.MessagesTransport
TypedEventHandler< MessagesTransport, String > MessageReceived
 Occurs when message is received. More...
 
TypedEventHandler< IDisposableExtendedDisposed
 Messages transport is disposing or disposed and no longer functional. More...
 
- Events inherited from Photomechanics.Photo3DStudio.Common.Interfaces.IDisposableExtended
TypedEventHandler< IDisposableExtendedDisposed
 Occurs when object is disposed. More...
 

Detailed Description

Messages transport for serial port. When connected via USB, turntables appear as COM ports.

Constructor & Destructor Documentation

◆ LegacyMftSerialMessagesTransport()

Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftSerialMessagesTransport.LegacyMftSerialMessagesTransport ( SerialPort  serialPort)

Construct messages transport using provided serial port.

Member Function Documentation

◆ StartListening()

override void Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftSerialMessagesTransport.StartListening ( )
virtual

◆ SendCommand()

override void Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.LegacyMftSerialMessagesTransport.SendCommand ( String  command)
virtual

Send given command string. Command begin and end inserted automatically;

Implements Photomechanics.Photo3DStudio.TurntableControl.Legacy.Mft.MessagesTransport.