The MovementWidget class This widget will provide Basic Movement Controls.
More...
#include <movementwidget.h>
|
void | homeAllPressed () |
| The Home All button was clicked. This should be connected to AtCore::home()
|
|
void | homeXPressed () |
| The Home X button was clicked. This should be connected to AtCore::home(AtCore::X)
|
|
void | homeYPressed () |
| The Home Y button was clicked. This should be connected to AtCore::home(AtCore::Y)
|
|
void | homeZPressed () |
| The Home Z button was clicked. This should be connected to AtCore::home(AtCore::Z)
|
|
void | disableMotorsPressed () |
| The Disable Motors button was clicked. This should be connected to AtCore::disableMotors(0)
|
|
void | absoluteMove (const QLatin1Char &axis, const double value) |
| An absoluteMove was requested This should be connected to AtCore::move(axis,value)
|
|
void | relativeMove (const QLatin1Char &axis, const double value) |
| A relativeMove was requested from the AxisControl This should connect to a function that does the following AtCore::setRelativePosition() AtCore::move(axis, value) AtCore::setAbsolutePosition()
|
|
void | unitsChanged (int units) |
| A Change of units was requested from the AxisControl This should connect to a function that calls AtCore::setUnits.
|
|
The MovementWidget class This widget will provide Basic Movement Controls.
◆ MovementWidget()
MovementWidget::MovementWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Create a Movement Widget.
- Parameters
-
parent | Parent of this widget. |
◆ ~MovementWidget()
MovementWidget::~MovementWidget |
( |
| ) |
|
◆ absoluteMove
void MovementWidget::absoluteMove |
( |
const QLatin1Char & |
axis, |
|
|
const double |
value |
|
) |
| |
|
signal |
An absoluteMove was requested This should be connected to AtCore::move(axis,value)
- Parameters
-
axis | the axis to move |
value | where to move |
◆ disableMotorsPressed
void MovementWidget::disableMotorsPressed |
( |
| ) |
|
|
signal |
The Disable Motors button was clicked. This should be connected to AtCore::disableMotors(0)
◆ homeAllPressed
void MovementWidget::homeAllPressed |
( |
| ) |
|
|
signal |
The Home All button was clicked. This should be connected to AtCore::home()
◆ homeXPressed
void MovementWidget::homeXPressed |
( |
| ) |
|
|
signal |
The Home X button was clicked. This should be connected to AtCore::home(AtCore::X)
◆ homeYPressed
void MovementWidget::homeYPressed |
( |
| ) |
|
|
signal |
The Home Y button was clicked. This should be connected to AtCore::home(AtCore::Y)
◆ homeZPressed
void MovementWidget::homeZPressed |
( |
| ) |
|
|
signal |
The Home Z button was clicked. This should be connected to AtCore::home(AtCore::Z)
◆ initialize()
void MovementWidget::initialize |
( |
| ) |
|
|
private |
◆ relativeMove
void MovementWidget::relativeMove |
( |
const QLatin1Char & |
axis, |
|
|
const double |
value |
|
) |
| |
|
signal |
◆ setAxisMax()
void MovementWidget::setAxisMax |
( |
int |
xMax, |
|
|
int |
yMax, |
|
|
int |
zMax |
|
) |
| |
Sets the absolute movement value for x,y,z axis.
- Parameters
-
xMax | Max distance the X Axis can travel in mm [default = 200] |
yMax | Max distance the Y Axis can travel in mm [default = 200] |
zMax | Max distance the Z Axis can travel in mm [default = 200] |
◆ setDisableMotorsButtonVisible()
void MovementWidget::setDisableMotorsButtonVisible |
( |
bool |
visible | ) |
|
Sets the visibility of button used to disable the motors.
- Parameters
-
visible | set False to hide the Home button [default = true] |
◆ setHomeButtonsVisible()
void MovementWidget::setHomeButtonsVisible |
( |
bool |
visible | ) |
|
Sets the visibility of Row of home buttons.
- Parameters
-
visible | set False to hide the Home buttons [default = true] |
◆ unitsChanged
void MovementWidget::unitsChanged |
( |
int |
units | ) |
|
|
signal |
The documentation for this class was generated from the following files: