AtCore 1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
Loading...
Searching...
No Matches
Classes | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MovementWidget Class Reference

The MovementWidget class This widget will provide Basic Movement Controls. More...

#include <movementwidget.h>

Inheritance diagram for MovementWidget:

Classes

class  MovementWidgetPrivate
 

Signals

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.
 

Public Member Functions

 MovementWidget (QWidget *parent=nullptr)
 Create a Movement Widget.
 
 ~MovementWidget ()
 
void setHomeButtonsVisible (bool visible)
 Sets the visibility of Row of home buttons.
 
void setDisableMotorsButtonVisible (bool visible)
 Sets the visibility of button used to disable the motors.
 
void setAxisMax (int xMax, int yMax, int zMax)
 Sets the absolute movement value for x,y,z axis.
 

Private Member Functions

void initialize ()
 

Private Attributes

MovementWidgetPrivated
 

Detailed Description

The MovementWidget class This widget will provide Basic Movement Controls.

Constructor & Destructor Documentation

◆ MovementWidget()

MovementWidget::MovementWidget ( QWidget *  parent = nullptr)
explicit

Create a Movement Widget.

Parameters
parentParent of this widget.

◆ ~MovementWidget()

MovementWidget::~MovementWidget ( )

Member Function Documentation

◆ 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
axisthe axis to move
valuewhere 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

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()

Parameters
axisthe axis to move.
valuethe value to move it by.

◆ setAxisMax()

void MovementWidget::setAxisMax ( int  xMax,
int  yMax,
int  zMax 
)

Sets the absolute movement value for x,y,z axis.

Parameters
xMaxMax distance the X Axis can travel in mm [default = 200]
yMaxMax distance the Y Axis can travel in mm [default = 200]
zMaxMax 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
visibleset False to hide the Home button [default = true]

◆ setHomeButtonsVisible()

void MovementWidget::setHomeButtonsVisible ( bool  visible)

Sets the visibility of Row of home buttons.

Parameters
visibleset False to hide the Home buttons [default = true]

◆ unitsChanged

void MovementWidget::unitsChanged ( int  units)
signal

A Change of units was requested from the AxisControl This should connect to a function that calls AtCore::setUnits.

Parameters
units0=Metric 1=Imperial

Member Data Documentation

◆ d

MovementWidgetPrivate* MovementWidget::d
private

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