Go to the documentation of this file.
22 #ifndef WAYPOINTCONTROLLER_H
23 #define WAYPOINTCONTROLLER_H
24 #include <QDoubleValidator>
25 #include <QListWidget>
29 #include "../Util/WheelEventFilter.h"
30 #include "../View/WaypointTab.h"
112 std::vector<double>
values,
113 int cartesianSelection,
137 std::vector<double>
values,
138 int cartesianSelection,
179 void setXCoordinate();
184 void setYCoordinate();
189 void setZCoordinate();
194 void setEulerAngleR();
199 void setEulerAngleP();
204 void setEulerAngleY();
210 void setCartesianSelection(
int cs);
217 void setBreakpoint(
bool isBreakpoint);
227 void removeWaypoint();
292 void initCSComboBox();
300 void initValidator(
double bottom,
double top,
int decimals);
309 void changeTextListWidgetItems();
317 #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