ViewController Class Reference

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

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

+ Inheritance diagram for ViewController:

Public Slots

void retranslateGui ()
 Retranslates the guiPerspectives.
 
void setViewPerspective (int index)
 Sets the perspective on the displayed robot model.
 

Signals

void addView ()
 Notifies RobotVisualizationController to add a view.
 
void changedPerspective (int perspective)
 Notifies other controllers about changes of the perspective.
 
void removeView ()
 Notifies RobotVisualizationController to delete a view.
 

Public Member Functions

PerspectivesPtr getGuiPerspectives ()
 Getter for the Perspectives pointer to guiPerspectives.
 
void onConnectComponent () override
 
void onDisconnectComponent () override
 
void onExitComponent () override
 
void onInitComponent () override
 
void setGuiPerspectives (PerspectivesPtr guiPerspectives)
 Setter for the Perspectives pointer to guiPerspectives.
 
 ViewController (PerspectivesPtr guiPerspectives)
 Creates a new ViewController and assigns a Perspectives widget to handle.
 

Detailed Description

Subcontroller which handles all user interaction with the view selection area in the GUI, communicates with other controllers via signals and slots.

Constructor & Destructor Documentation

◆ ViewController()

ViewController ( PerspectivesPtr guiPerspectives)

Creates a new ViewController and assigns a Perspectives widget to handle.

Parameters
guiPerspectivesPointer to the Perspectives whose user interaction is handled by the ViewController

Member Function Documentation

◆ addView

void addView ( )
signal

Notifies RobotVisualizationController to add a view.

◆ changedPerspective

void changedPerspective ( int perspective)
signal

Notifies other controllers about changes of the perspective.

Parameters
perspectiveIndex of the current perspective

◆ getGuiPerspectives()

PerspectivesPtr getGuiPerspectives ( )

Getter for the Perspectives pointer to guiPerspectives.

Returns
A Pointer to the guiPerspectives

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual

◆ onExitComponent()

void onExitComponent ( )
overridevirtual

◆ onInitComponent()

void onInitComponent ( )
overridevirtual

◆ removeView

void removeView ( )
signal

Notifies RobotVisualizationController to delete a view.

◆ retranslateGui

void retranslateGui ( )
slot

Retranslates the guiPerspectives.

◆ setGuiPerspectives()

void setGuiPerspectives ( PerspectivesPtr guiPerspectives)

Setter for the Perspectives pointer to guiPerspectives.

Parameters
guiPerspectivesPointer to the Perspectives whose user interaction is handled by the ViewController

◆ setViewPerspective

void setViewPerspective ( int index)
slot

Sets the perspective on the displayed robot model.

Parameters
indexIndex of the perspective

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