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. More...
 
void clearTransitionList ()
 Removes all items of the transition list. More...
 
void removeTransition (int index)
 Removes the transition at a given index from the list widget. More...
 
void retranslateGui ()
 Retranslates the guiTransitionTab. More...
 
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. More...
 
void updateSelectedTransition (int index)
 Updates the currently selected transition. More...
 

Signals

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

Public Member Functions

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

Detailed Description

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

Definition at line 77 of file TransitionController.h.

Constructor & Destructor Documentation

◆ TransitionController()

TransitionController ( TransitionTabPtr  guiTransitionTab)

Creates a new TransitionController and assigns a TransitionTab to handle.

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

Definition at line 81 of file TransitionController.cpp.

+ Here is the call graph for this function:

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

Definition at line 101 of file TransitionController.cpp.

+ Here is the call graph for this function:

◆ 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.

Definition at line 268 of file TransitionController.cpp.

◆ getGuiTransitionTab()

TransitionTabPtr getGuiTransitionTab ( )

Getter for the TransitionTab pointer to guiTransitionTab.

Returns
A Pointer to the guiTransitionTab

Definition at line 88 of file TransitionController.cpp.

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 51 of file TransitionController.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 71 of file TransitionController.cpp.

◆ onExitComponent()

void onExitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 76 of file TransitionController.cpp.

◆ onInitComponent()

void onInitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 29 of file TransitionController.cpp.

+ Here is the caller graph for this function:

◆ removeTransition

void removeTransition ( int  index)
slot

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

Parameters
indexIndex of the transition

Definition at line 130 of file TransitionController.cpp.

◆ retranslateGui

void retranslateGui ( )
slot

Retranslates the guiTransitionTab.

Definition at line 263 of file TransitionController.cpp.

◆ 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

Definition at line 93 of file TransitionController.cpp.

◆ 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

Definition at line 232 of file TransitionController.cpp.

+ Here is the call graph for this function:

◆ updateSelectedTransition

void updateSelectedTransition ( int  index)
slot

Updates the currently selected transition.

Parameters
indexIndex of the currently selected transition in the list widget

Definition at line 165 of file TransitionController.cpp.

+ Here is the caller graph for this function:

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