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. More...
 
void setViewPerspective (int index)
 Sets the perspective on the displayed robot model. More...
 

Signals

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

Public Member Functions

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

Detailed Description

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

Definition at line 40 of file ViewController.h.

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

Definition at line 61 of file ViewController.cpp.

+ Here is the call graph for this function:

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
+ Here is the caller graph for this function:

◆ getGuiPerspectives()

PerspectivesPtr getGuiPerspectives ( )

Getter for the Perspectives pointer to guiPerspectives.

Returns
A Pointer to the guiPerspectives

Definition at line 68 of file ViewController.cpp.

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 36 of file ViewController.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 51 of file ViewController.cpp.

◆ onExitComponent()

void onExitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 56 of file ViewController.cpp.

◆ onInitComponent()

void onInitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 26 of file ViewController.cpp.

+ Here is the caller graph for this function:

◆ removeView

void removeView ( )
signal

Notifies RobotVisualizationController to delete a view.

◆ retranslateGui

void retranslateGui ( )
slot

Retranslates the guiPerspectives.

Definition at line 83 of file ViewController.cpp.

◆ 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

Definition at line 73 of file ViewController.cpp.

◆ setViewPerspective

void setViewPerspective ( int  index)
slot

Sets the perspective on the displayed robot model.

Parameters
indexIndex of the perspective

Definition at line 78 of file ViewController.cpp.

+ Here is the caller graph for this function:

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