Go to the documentation of this file.
22 #ifndef WAYPOINTCONTROLLER_H
23 #define WAYPOINTCONTROLLER_H
25 #include "../View/WaypointTab.h"
26 #include "../Util/WheelEventFilter.h"
28 #include <QListWidget>
31 #include <QDoubleValidator>
175 void setXCoordinate();
180 void setYCoordinate();
185 void setZCoordinate();
190 void setEulerAngleR();
195 void setEulerAngleP();
200 void setEulerAngleY();
206 void setCartesianSelection(
int cs);
213 void setBreakpoint(
bool isBreakpoint);
223 void removeWaypoint();
288 void initCSComboBox();
296 void initValidator(
double bottom,
double top,
int decimals);
305 void changeTextListWidgetItems();
313 #endif // WAYPOINTCONTROLLER_H
void enableDeleteButton(bool enable)
Enables or disables the delete button.
std::shared_ptr< WaypointController > WaypointControllerPtr
void setCurrentIndexRobotVisualization(int index)
Notifies RobotVisualizationController about changes of the current waypoint.
void retranslateGui()
Retranslates the guiWaypointTab.
void addedWaypoint(int waypoint, bool insertAfter)
Notifies other controllers about the addition of a new waypoint with given constraints.
void onInitComponent() override
void enableWaypointListLineEdit(bool enable)
Enables or disables the waypoint list and line edit.
void changedWaypoint(int waypoint, std::vector< double > values)
Notifies other controllers about changes of the given waypoint.
void enableIKSolutionButton(bool enable)
Notifies other controllers whether to enable or disable the button for a new IK solution.
WaypointController(WaypointTabPtr guiWaypointTab)
Creates a new WaypointController and assigns a WaypointTab to handle.
std::shared_ptr< WaypointTab > WaypointTabPtr
void addWaypoint(int index, std::vector< double > values, int cartesianSelection, bool isBreakpoint)
Adds a new waypoint to the list widget.
std::vector< double > values
void setWaypointData(int index, std::vector< double > values, int cartesianSelection, bool isBreakpoint)
Connected with signals from other controllers, sets all values of the waypoint at a given index.
void setGuiWaypointTab(WaypointTabPtr guiWaypointTab)
Setter for the WaypointTab pointer to guiWaypointTab.
void deletedWaypoint(int waypoint)
Notifies other controllers about the deletion of a given waypoint.
void enableAddButton(bool enable)
Enables or disables the add button.
Subcontroller which handles all user interaction with the waypoint tab in the GUI,...
void onExitComponent() override
void clearWaypointList()
Removes all items of the waypoint list.
void setCurrentIndex(int index)
Notifies other controllers about changes of the current waypoint.
void onDisconnectComponent() override
struct armarx::GuiWaypoint GuiWaypoint
Struct which allows storing relevant data to display within a list widget item as QVariant.
void removeWaypoint(int index)
Removes the waypoint at a given index.
Struct which allows storing relevant data to display within a list widget item as QVariant.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void updateSelectedWaypoint(int index)
Updates the currently selected waypoint.
Abstract controller providing a set of methods which must be implemented by every controller.
WaypointTabPtr getGuiWaypointTab()
Getter for the WaypointTab pointer to guiWaypointTab.
void onConnectComponent() override