itom
Loading...
Searching...
No Matches
MotorAxisController Class Reference
Inheritance diagram for MotorAxisController:

Public Types

enum  AxisUnit {
  UnitNm = 0 , UnitMum , UnitMm , UnitCm ,
  UnitM , UnitDeg , UnitAU
}
 
enum  AxisType { TypeRotational = 0 , TypeLinear = 1 }
 
enum  MovementType { MovementAbsolute = 0 , MovementRelative = 1 , MovementBoth = 2 , MovementNo = 3 }
 

Public Slots

virtual void actuatorStatusChanged (QVector< int > status, QVector< double > actPosition)
 
virtual void targetChanged (QVector< double > targetPositions)
 
ito::RetVal setAxisUnit (int axisIndex, AxisUnit unit)
 
ito::RetVal setAxisEnabled (int axisIndex, bool enabled)
 
ito::RetVal setAxisDecimals (int axisIndex, int decimals)
 
ito::RetVal setAxisType (int axisIndex, AxisType type)
 
ito::RetVal setAxisName (int axisIndex, const QString &name)
 
void setDefaultAxisUnit (AxisUnit unit)
 
void setMovementTypeVisible (bool visible)
 
void setMovementType (MovementType type)
 
void setDefaultDecimals (int decimals)
 
void setAxisNames (const QStringList &names)
 
void setDefaultRelativeStepSize (double defaultRelativeStepSize)
 
void setCancelAvailable (bool available)
 
void setStartAllAvailable (bool available)
 
void setRefreshAvailable (bool available)
 
void setDefaultAxisType (AxisType type)
 
void setNumAxis (int numAxis)
 
void setArbitraryUnit (const QString &unit)
 
ito::AutoInterval stepSizeInterval (int axisIndex) const
 
ito::AutoInterval targetInterval (int axisIndex) const
 
ito::RetVal setStepSizeInterval (int axisIndex, const ito::AutoInterval &interval)
 
ito::RetVal setTargetInterval (int axisIndex, const ito::AutoInterval &interval)
 

Public Member Functions

 Q_ENUM (AxisUnit)
 
 Q_ENUM (AxisType)
 
 Q_ENUM (MovementType)
 
 MotorAxisController (QWidget *parent=NULL)
 
void setActuator (const QPointer< ito::AddInActuator > &actuator)
 
QPointer< ito::AddInActuatoractuator () const
 
int numAxis () const
 
AxisUnit axisUnit (int axisIndex) const
 
AxisUnit defaultAxisUnit () const
 
AxisType axisType (int axisIndex) const
 
AxisType defaultAxisType () const
 
bool refreshAvailable () const
 
bool cancelAvailable () const
 
bool startAllAvailable () const
 
double defaultRelativeStepSize () const
 
QStringList axisNames () const
 
QString axisName (int axisIndex) const
 
int defaultDecimals () const
 
int axisDecimals (int axisIndex) const
 
MovementType movementType () const
 
bool movementTypeVisible () const
 
bool axisEnabled (int axisIndex) const
 
QString arbitraryUnit () const
 
QColor backgroundColorMoving () const
 
void setBackgroundColorMoving (const QColor &color)
 
QColor backgroundColorInterrupted () const
 
void setBackgroundColorInterrupted (const QColor &color)
 
QColor backgroundColorTimeout () const
 
void setBackgroundColorTimeout (const QColor &color)
 

Properties

QPointer< ito::AddInActuatoractuator
 
int numAxis
 
AxisUnit defaultAxisUnit
 
AxisType defaultAxisType
 
bool refreshAvailable
 
bool cancelAvailable
 
bool startAllAvailable
 
double defaultRelativeStepSize
 
QStringList axisNames
 
int defaultDecimals
 
MovementType movementType
 
bool movementTypeVisible
 
QString arbitraryUnit
 
QColor backgroundColorMoving
 
QColor backgroundColorInterrupted
 
QColor backgroundColorTimeout
 

Private Slots

void on_btnCancel_clicked ()
 
void on_btnStart_clicked ()
 
void on_btnRefresh_clicked ()
 
void on_comboType_currentIndexChanged (int index)
 
void stepUpClicked (int index)
 
void stepDownClicked (int index)
 
void runSingleClicked (int index)
 
void customContextMenuRequested (const QPoint &pos)
 

Private Member Functions

void retValToMessageBox (const ito::RetVal &retval, const QString &methodName) const
 
QString suffixFromAxisUnit (const AxisUnit &unit) const
 
double baseUnitToUnit (const double &value, const AxisUnit &unit) const
 
double unitToBaseUnit (const double &value, const AxisUnit &unit) const
 
ito::RetVal observeInvocation (ItomSharedSemaphore *waitCond) const
 
void moveRelOrAbs (int axis, double value, bool relNotAbs)
 

Private Attributes

MotorAxisControllerPrivated
 

Member Function Documentation

◆ actuatorStatusChanged

void MotorAxisController::actuatorStatusChanged ( QVector< int > status,
QVector< double > actPosition )
virtualslot
Parameters
actPositionslot to receive information about status and position changes.

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