Annotation Pro API
Public Member Functions | Protected Member Functions | Properties | Events | List of all members
Synchronizer Class Reference

A synchronizer. More...

Inherits Component.

Public Member Functions

 Synchronizer ()
 Default constructor. More...
 
 Synchronizer (IContainer container)
 Constructor. More...
 
float MilisecondsToSamples (int miliseconds)
 Miliseconds to samples. More...
 
string MilisecondsToString (int miliseconds)
 Miliseconds to string. More...
 
void NotifyVideoChanged (object sender, EventArgs e)
 Notify all listeners interested in VideoModified events. More...
 
void Play ()
 Plays this object. More...
 
void PlayStop ()
 Play stop. More...
 
void RecordStop ()
 Records or stop record. More...
 
void Redo ()
 Redoes this object. More...
 
int SamplesToMiliseconds (float samples)
 Samples to miliseconds. More...
 
double SamplesToSeconds (float samples)
 Samples to seconds. More...
 
string SamplesToTimeString (float samples)
 Samples to time string. More...
 
void SetCursorPosition (object sender, float value)
 Sets cursor position. More...
 
void SetSelection (object sender, float start, float end)
 Sets a selection. More...
 
void SetStartViewPosition (object sender, float value)
 Sets start view position. More...
 
void SetZoomFactorX (object sender, float value)
 Sets zoom factor x coordinate. More...
 
void StartRecording ()
 Starts recording More...
 
void Stop ()
 Stops this object. More...
 
void Undo ()
 Undoes this object. More...
 
void ZoomIn ()
 Zoom in. More...
 
void ZoomOut ()
 Zoom out. More...
 
void ZoomToFullAudio ()
 Zoom to full audio. More...
 
void ZoomToSelection ()
 Zoom to selection. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Properties

AnnotationLayers AnnotationLayers [get, set]
 Gets or sets the annotation layers. More...
 
VScrollBar AnnotationScrollBar [get, set]
 Gets or sets the annotation scroll bar. More...
 
bool AutoEditMode [get, set]
 Gets or sets a value indicating whether the quick edit mode is enabled. More...
 
bool AutoRewind [get, set]
 Gets or sets a value indicating whether the automatic rewind. More...
 
bool AutoSelection [get, set]
 Gets or sets a value indicating whether the auto selection mode is enabled. More...
 
bool BlackAndWhite [get, set]
 Gets or sets a value indicating whether the black and white mode is enabled. More...
 
bool Boundaries [get, set]
 Gets or sets a value indicating whether the boundaries is visible. More...
 
bool CursorFollowEdit [get, set]
 Gets or sets a value indicating whether the cursor follows edit. More...
 
float CursorPosition [get]
 Gets the cursor position. More...
 
DataServer DataServer [get, set]
 Gets or sets the data server. More...
 
float EndViewPosition [get]
 Gets the end view position. More...
 
bool FollowCursor [get, set]
 Gets or sets a value indicating whether the follow cursor. More...
 
bool LoopAudio [get, set]
 Gets or sets a value indicating whether the loop playback. More...
 
bool Magnify [get, set]
 Gets or sets a value indicating whether the magnify. More...
 
float MaximumZoom [get]
 Gets the maximum zoom. More...
 
float MinimumZoom [get]
 Gets the minimum zoom. More...
 
bool RememberOpenAudioFiles [get, set]
 Gets or sets a value indicating whether the auto save audio is enabled. More...
 
int ScreenWidth [get, set]
 Gets or sets the width of the screen. More...
 
HScrollBar ScrollBar [get, set]
 Gets or sets the scroll bar. More...
 
float SelectionEnd [get]
 Gets the selection end. More...
 
float SelectionStart [get]
 Gets the selection start. More...
 
bool ShowEditBorders [get, set]
 Gets or sets a value indicating whether the cursor is changing with border. More...
 
bool SnapToSegments [get, set]
 Gets or sets a value indicating whether the snapping to segments is enabled. More...
 
Spectrogram Spectrogram [get, set]
 Gets or sets the spectrogram. More...
 
float StartViewPosition [get]
 Gets the start view position. More...
 
bool StickToNeighbours [get, set]
 Gets or sets a value indicating whether stick to neighbours mode is enabled. More...
 
UndoRedoServer UndoRedoServer [get, set]
 Gets or sets the undo redo server. More...
 
Waveform Waveform [get, set]
 Gets or sets the waveform. More...
 
Waveform WaveformNavigator [get, set]
 Gets or sets the waveform navigator. More...
 
float ZoomFactorX [get]
 Gets the zoom factor x coordinate. More...
 

Events

AnnotationBordersChangedHandler AnnotationBordersChanged
 Event queue for all listeners interested in VideoModified events. More...
 
ChangedHandler AnnotationChanged
 Event queue for all listeners interested in AnnotationChanged events. More...
 
ChangedHandler AnnotationModified
 Event queue for all listeners interested in AnnotationModified events. More...
 
SelectionChangedHandler AnnotationSelectionChanged
 Event queue for all listeners interested in AnnotationSelectionChanged events. More...
 
AudioChangedHandler AudioChanged
 Event queue for all listeners interested in AudioChanged events. More...
 
ModifiedHandler AudioModified
 Event queue for all listeners interested in AudioChanged events. More...
 
AudioSelectionChangedHandler AudioSelectionChanged
 Event queue for all listeners interested in AudioSelectionChanged events. More...
 
CursorPositionChangedHandler CursorPositionChanged
 Event queue for all listeners interested in CursorPositionChanged events. More...
 
PlaybackStartedHandler PlaybackStarted
 Event queue for all listeners interested in PlaybackStarted events. More...
 
PlaybackStoppedHandler PlaybackStopped
 Event queue for all listeners interested in PlaybackStopped events. More...
 
RecordingStartedHandler RecordingStarted
 Event queue for all listeners interested in PlaybackStarted events. More...
 
StartViewPositionChangedHandler StartViewPositionChanged
 Event queue for all listeners interested in StartViewPositionChanged events. More...
 
StateChangedHandler StateChanged
 Event queue for all listeners interested in StateChanged events. More...
 
VideoChangedHandler VideoChanged
 Event queue for all listeners interested in VideoChanged events. More...
 
ZoomFactorXChangedHandler ZoomFactorXChanged
 Event queue for all listeners interested in ZoomFactorXChanged events. More...
 

Detailed Description

A synchronizer.

Constructor & Destructor Documentation

◆ Synchronizer() [1/2]

Synchronizer ( )
inline

Default constructor.

◆ Synchronizer() [2/2]

Synchronizer ( IContainer  container)
inline

Constructor.

Parameters
containerThe container.

Member Function Documentation

◆ Dispose()

override void Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

◆ MilisecondsToSamples()

float MilisecondsToSamples ( int  miliseconds)
inline

Miliseconds to samples.

Parameters
milisecondsThe miliseconds.
Returns
A float.

◆ MilisecondsToString()

string MilisecondsToString ( int  miliseconds)
inline

Miliseconds to string.

Parameters
milisecondsThe miliseconds.
Returns
A string.

◆ NotifyVideoChanged()

void NotifyVideoChanged ( object  sender,
EventArgs  e 
)
inline

Notify all listeners interested in VideoModified events.

Parameters
senderSender of event
eEvent arguments

◆ Play()

void Play ( )
inline

Plays this object.

◆ PlayStop()

void PlayStop ( )
inline

Play stop.

◆ RecordStop()

void RecordStop ( )
inline

Records or stop record.

◆ Redo()

void Redo ( )
inline

Redoes this object.

◆ SamplesToMiliseconds()

int SamplesToMiliseconds ( float  samples)
inline

Samples to miliseconds.

Parameters
samplesThe samples.
Returns
An int.

◆ SamplesToSeconds()

double SamplesToSeconds ( float  samples)
inline

Samples to seconds.

Parameters
samplesThe samples.
Returns
Value in seconds

◆ SamplesToTimeString()

string SamplesToTimeString ( float  samples)
inline

Samples to time string.

Parameters
samplesThe samples.
Returns
A string.

◆ SetCursorPosition()

void SetCursorPosition ( object  sender,
float  value 
)
inline

Sets cursor position.

Parameters
senderSource of the event.
valueThe value.

◆ SetSelection()

void SetSelection ( object  sender,
float  start,
float  end 
)
inline

Sets a selection.

Parameters
senderSource of the event.
startThe start.
endThe end.

◆ SetStartViewPosition()

void SetStartViewPosition ( object  sender,
float  value 
)
inline

Sets start view position.

Parameters
senderSource of the event.
valueThe value.

◆ SetZoomFactorX()

void SetZoomFactorX ( object  sender,
float  value 
)
inline

Sets zoom factor x coordinate.

Parameters
senderSource of the event.
valueThe value.

◆ StartRecording()

void StartRecording ( )
inline

Starts recording

◆ Stop()

void Stop ( )
inline

Stops this object.

◆ Undo()

void Undo ( )
inline

Undoes this object.

◆ ZoomIn()

void ZoomIn ( )
inline

Zoom in.

◆ ZoomOut()

void ZoomOut ( )
inline

Zoom out.

◆ ZoomToFullAudio()

void ZoomToFullAudio ( )
inline

Zoom to full audio.

◆ ZoomToSelection()

void ZoomToSelection ( )
inline

Zoom to selection.

Property Documentation

◆ AnnotationLayers

Gets or sets the annotation layers.

The annotation layers.

◆ AnnotationScrollBar

VScrollBar AnnotationScrollBar
getset

Gets or sets the annotation scroll bar.

The annotation scroll bar.

◆ AutoEditMode

bool AutoEditMode
getset

Gets or sets a value indicating whether the quick edit mode is enabled.

true if quick edit mode enabled, false if not.

◆ AutoRewind

bool AutoRewind
getset

Gets or sets a value indicating whether the automatic rewind.

true if automatic rewind, false if not.

◆ AutoSelection

bool AutoSelection
getset

Gets or sets a value indicating whether the auto selection mode is enabled.

true if auto selection mode enabled, false if not.

◆ BlackAndWhite

bool BlackAndWhite
getset

Gets or sets a value indicating whether the black and white mode is enabled.

true if black and white, false if not.

◆ Boundaries

bool Boundaries
getset

Gets or sets a value indicating whether the boundaries is visible.

true if boundaries visible, false if not.

◆ CursorFollowEdit

bool CursorFollowEdit
getset

Gets or sets a value indicating whether the cursor follows edit.

true if cursor follows edit, false if not.

◆ CursorPosition

float CursorPosition
get

Gets the cursor position.

The cursor position.

◆ DataServer

Gets or sets the data server.

The data server.

◆ EndViewPosition

float EndViewPosition
get

Gets the end view position.

The end view position.

◆ FollowCursor

bool FollowCursor
getset

Gets or sets a value indicating whether the follow cursor.

true if follow cursor, false if not.

◆ LoopAudio

bool LoopAudio
getset

Gets or sets a value indicating whether the loop playback.

true if loop playback, false if not.

◆ Magnify

bool Magnify
getset

Gets or sets a value indicating whether the magnify.

true if magnify, false if not.

◆ MaximumZoom

float MaximumZoom
get

Gets the maximum zoom.

The maximum zoom.

◆ MinimumZoom

float MinimumZoom
get

Gets the minimum zoom.

The minimum zoom.

◆ RememberOpenAudioFiles

bool RememberOpenAudioFiles
getset

Gets or sets a value indicating whether the auto save audio is enabled.

true if auto save audio is enabled, false if not.

◆ ScreenWidth

int ScreenWidth
getset

Gets or sets the width of the screen.

The width of the screen.

◆ ScrollBar

HScrollBar ScrollBar
getset

Gets or sets the scroll bar.

The scroll bar.

◆ SelectionEnd

float SelectionEnd
get

Gets the selection end.

The selection end.

◆ SelectionStart

float SelectionStart
get

Gets the selection start.

The selection start.

◆ ShowEditBorders

bool ShowEditBorders
getset

Gets or sets a value indicating whether the cursor is changing with border.

true if cursor is change with border, false if not.

◆ SnapToSegments

bool SnapToSegments
getset

Gets or sets a value indicating whether the snapping to segments is enabled.

true if snapping to segments enable, false if not.

◆ Spectrogram

Gets or sets the spectrogram.

The spectrogram.

◆ StartViewPosition

float StartViewPosition
get

Gets the start view position.

The start view position.

◆ StickToNeighbours

bool StickToNeighbours
getset

Gets or sets a value indicating whether stick to neighbours mode is enabled.

true if stick to neighbours enabled, false if not.

◆ UndoRedoServer

Gets or sets the undo redo server.

The undo redo server.

◆ Waveform

Gets or sets the waveform.

The waveform.

◆ WaveformNavigator

Waveform WaveformNavigator
getset

Gets or sets the waveform navigator.

The waveform navigator.

◆ ZoomFactorX

float ZoomFactorX
get

Gets the zoom factor x coordinate.

The zoom factor x coordinate.

Event Documentation

◆ AnnotationBordersChanged

AnnotationBordersChangedHandler AnnotationBordersChanged

Event queue for all listeners interested in VideoModified events.

Event queue for all listeners interested in AnnotationBordersChanged events.

◆ AnnotationChanged

ChangedHandler AnnotationChanged

Event queue for all listeners interested in AnnotationChanged events.

◆ AnnotationModified

ChangedHandler AnnotationModified

Event queue for all listeners interested in AnnotationModified events.

◆ AnnotationSelectionChanged

SelectionChangedHandler AnnotationSelectionChanged

Event queue for all listeners interested in AnnotationSelectionChanged events.

◆ AudioChanged

AudioChangedHandler AudioChanged

Event queue for all listeners interested in AudioChanged events.

◆ AudioModified

ModifiedHandler AudioModified

Event queue for all listeners interested in AudioChanged events.

◆ AudioSelectionChanged

AudioSelectionChangedHandler AudioSelectionChanged

Event queue for all listeners interested in AudioSelectionChanged events.

◆ CursorPositionChanged

CursorPositionChangedHandler CursorPositionChanged

Event queue for all listeners interested in CursorPositionChanged events.

◆ PlaybackStarted

PlaybackStartedHandler PlaybackStarted

Event queue for all listeners interested in PlaybackStarted events.

◆ PlaybackStopped

PlaybackStoppedHandler PlaybackStopped

Event queue for all listeners interested in PlaybackStopped events.

◆ RecordingStarted

RecordingStartedHandler RecordingStarted

Event queue for all listeners interested in PlaybackStarted events.

◆ StartViewPositionChanged

StartViewPositionChangedHandler StartViewPositionChanged

Event queue for all listeners interested in StartViewPositionChanged events.

◆ StateChanged

StateChangedHandler StateChanged

Event queue for all listeners interested in StateChanged events.

◆ VideoChanged

VideoChangedHandler VideoChanged

Event queue for all listeners interested in VideoChanged events.

◆ ZoomFactorXChanged

ZoomFactorXChangedHandler ZoomFactorXChanged

Event queue for all listeners interested in ZoomFactorXChanged events.


The documentation for this class was generated from the following files: