delphyne_gui
PlaybackPlugin Class Reference

Detailed Description

Implements a playback plugin.

See PlaybackPlugin.qml to complete understand how the view is connected to each QProperty.

#include <visualizer/playback_plugin/playback_plugin.hh>

Inheritance diagram for PlaybackPlugin:
[legend]

Signals

void SimTimeChanged ()
 Signals to notify that properties changed. More...
 
void CurrentTimeChanged ()
 
void SliderValueChanged ()
 
void IsSliderPressedChanged ()
 

Public Member Functions

 PlaybackPlugin ()
 Constructor. More...
 
virtual ~PlaybackPlugin ()=default
 Destructor. More...
 
virtual void LoadConfig (const tinyxml2::XMLElement *_pluginElem) override
 Called by Ignition GUI when plugin is instantiated. More...
 
Q_INVOKABLE QString SimTime () const
 
Q_INVOKABLE QString CurrentTime () const
 
Q_INVOKABLE QString SliderValue () const
 
Q_INVOKABLE bool IsSliderPressed () const
 
Q_INVOKABLE void SetSimTime (const QString &_simTime)
 
Q_INVOKABLE void SetCurrentTime (const QString &_currentTime)
 
Q_INVOKABLE void SetSliderValue (const QString &_sliderValue)
 
Q_INVOKABLE void SetIsSliderPressed (bool _isSliderPressed)
 

Protected Slots

void OnRewindButtonPush ()
 
void OnPauseButtonPush ()
 
void OnPlayButtonPush ()
 
void OnStepButtonPush (const QString &_stepValue)
 
QString OnSliderDrop (const QString &_sliderValue)
 

Properties

QString simTime
 Holds sim time. More...
 
QString currentTime
 Holds current time. More...
 
QString sliderValue
 Holds slider value. More...
 
bool isSliderPressed {false}
 Holds the status of the slider. More...
 

Constructor & Destructor Documentation

◆ PlaybackPlugin()

Constructor.

◆ ~PlaybackPlugin()

virtual ~PlaybackPlugin ( )
virtualdefault

Destructor.

Member Function Documentation

◆ CurrentTime()

QString CurrentTime ( ) const

◆ CurrentTimeChanged

void CurrentTimeChanged ( )
signal

◆ IsSliderPressed()

Q_INVOKABLE bool IsSliderPressed ( ) const

◆ IsSliderPressedChanged

void IsSliderPressedChanged ( )
signal

◆ LoadConfig()

void LoadConfig ( const tinyxml2::XMLElement *  _pluginElem)
overridevirtual

Called by Ignition GUI when plugin is instantiated.

Parameters
[in]_pluginElemXML configuration for this plugin.

◆ OnPauseButtonPush

void OnPauseButtonPush ( )
protectedslot

◆ OnPlayButtonPush

void OnPlayButtonPush ( )
protectedslot

◆ OnRewindButtonPush

void OnRewindButtonPush ( )
protectedslot

◆ OnSliderDrop

QString OnSliderDrop ( const QString &  _sliderValue)
protectedslot

◆ OnStepButtonPush

void OnStepButtonPush ( const QString &  _stepValue)
protectedslot

◆ SetCurrentTime()

void SetCurrentTime ( const QString &  _currentTime)

◆ SetIsSliderPressed()

Q_INVOKABLE void SetIsSliderPressed ( bool  _isSliderPressed)

◆ SetSimTime()

void SetSimTime ( const QString &  _simTime)

◆ SetSliderValue()

void SetSliderValue ( const QString &  _sliderValue)

◆ SimTime()

QString SimTime ( ) const

◆ SimTimeChanged

void SimTimeChanged ( )
signal

Signals to notify that properties changed.

◆ SliderValue()

QString SliderValue ( ) const

◆ SliderValueChanged

void SliderValueChanged ( )
signal

Property Documentation

◆ currentTime

QString currentTime
readwrite

Holds current time.

◆ isSliderPressed

bool isSliderPressed {false}
readwrite

Holds the status of the slider.

◆ simTime

QString simTime
readwrite

Holds sim time.

◆ sliderValue

QString sliderValue
readwrite

Holds slider value.


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