TransitionController Class Reference

Subcontroller which handles all user interaction with the transition tab in the GUI, communicates with other controllers via signals and slots. More...

#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Controller/TransitionController.h>

+ Inheritance diagram for TransitionController:

Public Slots

void addTransition (int index, double duration, double start, int interpolation)
 Adds a new transition to the list widget.
 
void clearTransitionList ()
 Removes all items of the transition list.
 
void removeTransition (int index)
 Removes the transition at a given index from the list widget.
 
void retranslateGui ()
 Retranslates the guiTransitionTab.
 
void setTransitionData (int index, double duration, double start, int it)
 Connected with signals from other controllers, sets all values of the transition at a given index.
 
void updateSelectedTransition (int index)
 Updates the currently selected transition.
 

Signals

void changedDuration (int transition, double duration)
 Notifies other controllers about changes of the duration of the given transition.
 
void changedInterpolation (int index, int it)
 Notifies other controllers about changes of the interpolation type of the given transition.
 
void selectedTransitionChanged (int index)
 

Public Member Functions

TransitionTabPtr getGuiTransitionTab ()
 Getter for the TransitionTab pointer to guiTransitionTab.
 
void onConnectComponent () override
 
void onDisconnectComponent () override
 
void onExitComponent () override
 
void onInitComponent () override
 
void setGuiTransitionTab (TransitionTabPtr guiTransitionTab)
 Setter for the TransitionTab pointer to guiTransitionTab.
 
 TransitionController (TransitionTabPtr guiTransitionTab)
 Creates a new TransitionController and assigns a TransitionTab to handle.
 

Detailed Description

Subcontroller which handles all user interaction with the transition tab in the GUI, communicates with other controllers via signals and slots.

Constructor & Destructor Documentation

◆ TransitionController()

Creates a new TransitionController and assigns a TransitionTab to handle.

Parameters
guiTransitionTabPointer to the TransitionTab whose user interaction is handled by the TransitionController

Member Function Documentation

◆ addTransition

void addTransition ( int index,
double duration,
double start,
int interpolation )
slot

Adds a new transition to the list widget.

Parameters
indexIndex of the transition
durationDuration of the transition
startStart time of the transition
interpolationIndex of the interpolation

◆ changedDuration

void changedDuration ( int transition,
double duration )
signal

Notifies other controllers about changes of the duration of the given transition.

Parameters
indexIndex of the transition
durationNew duration value of the transition

◆ changedInterpolation

void changedInterpolation ( int index,
int it )
signal

Notifies other controllers about changes of the interpolation type of the given transition.

Parameters
indexIndex of the transition
itNew interpolation index of the transition

◆ clearTransitionList

void clearTransitionList ( )
slot

Removes all items of the transition list.

◆ getGuiTransitionTab()

TransitionTabPtr getGuiTransitionTab ( )

Getter for the TransitionTab pointer to guiTransitionTab.

Returns
A Pointer to the guiTransitionTab

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual

◆ onExitComponent()

void onExitComponent ( )
overridevirtual

◆ onInitComponent()

void onInitComponent ( )
overridevirtual

◆ removeTransition

void removeTransition ( int index)
slot

Removes the transition at a given index from the list widget.

Parameters
indexIndex of the transition

◆ retranslateGui

void retranslateGui ( )
slot

Retranslates the guiTransitionTab.

◆ selectedTransitionChanged

void selectedTransitionChanged ( int index)
signal

◆ setGuiTransitionTab()

void setGuiTransitionTab ( TransitionTabPtr guiTransitionTab)

Setter for the TransitionTab pointer to guiTransitionTab.

Parameters
guiTransitionTabPointer to the TransitionTab whose user interaction is handled by the TransitionController

◆ setTransitionData

void setTransitionData ( int index,
double duration,
double start,
int it )
slot

Connected with signals from other controllers, sets all values of the transition at a given index.

Parameters
transitionIndex of the transition
durationDuration of the transition
startStart time of the transition
itIndex of the interpolation of the transition

◆ updateSelectedTransition

void updateSelectedTransition ( int index)
slot

Updates the currently selected transition.

Parameters
indexIndex of the currently selected transition in the list widget

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