|
virtual ito::RetVal | calib (const int axis, ItomSharedSemaphore *waitCond=NULL)=0 |
| method to calibrate a single axis
|
|
virtual ito::RetVal | calib (const QVector< int > axis, ItomSharedSemaphore *waitCond=NULL)=0 |
| method to calibrate a number of axis. The axis' numbers are given in the axis vector
|
|
virtual ito::RetVal | setOrigin (const int axis, ItomSharedSemaphore *waitCond=NULL)=0 |
| method to set the origin of one axis to the current position
|
|
virtual ito::RetVal | setOrigin (const QVector< int > axis, ItomSharedSemaphore *waitCond=NULL)=0 |
| method to set the origin of a number of axis to their current positions. The axis' numbers are given in the axis vector
|
|
virtual ito::RetVal | getStatus (QSharedPointer< QVector< int > > status, ItomSharedSemaphore *waitCond)=0 |
| retrieve the status of the actuator
|
|
virtual ito::RetVal | getStatus (const int axis, QSharedPointer< int > status, ItomSharedSemaphore *waitCond) |
| retrieve the status of one axis of the actuator. By default, this method uses the general implementation of getStatus and returns the requested axis only.
|
|
virtual ito::RetVal | getPos (const int axis, QSharedPointer< double > pos, ItomSharedSemaphore *waitCond)=0 |
| read the position of one axis
|
|
virtual ito::RetVal | getPos (const QVector< int > axis, QSharedPointer< QVector< double > > pos, ItomSharedSemaphore *waitCond)=0 |
| read the position of a number of axis. The axis' numbers are given in the axis vector
|
|
virtual ito::RetVal | setPosAbs (const int axis, const double pos, ItomSharedSemaphore *waitCond=NULL)=0 |
| move a single axis to a new absolute position
|
|
virtual ito::RetVal | setPosAbs (const QVector< int > axis, QVector< double > pos, ItomSharedSemaphore *waitCond=NULL)=0 |
| move a number of axis to a new absolute position. The axis' numbers are given in the axis vector
|
|
virtual ito::RetVal | setPosRel (const int axis, const double pos, ItomSharedSemaphore *waitCond=NULL)=0 |
| increment/decrement a single axis by position value
|
|
virtual ito::RetVal | setPosRel (const QVector< int > axis, QVector< double > pos, ItomSharedSemaphore *waitCond=NULL)=0 |
| increment/decrement a number of axis by position values. The axis' numbers are given in the axis vector
|
|
virtual ito::RetVal | requestStatusAndPosition (bool sendCurrentPos, bool sendTargetPos) |
| overload this function to update the current status and position values, followed by calling sendStatusUpdate and/or sendTargetUpdate
|
|
virtual ito::RetVal | init (QVector< ito::ParamBase > *paramsMand, QVector< ito::ParamBase > *paramsOpt, ItomSharedSemaphore *waitCond=NULL)=0 |
| method for the initialisation of a new instance of the class (must be overwritten)
|
|
virtual ito::RetVal | close (ItomSharedSemaphore *waitCond)=0 |
| method for closing an instance (must be overwritten)
|
|
virtual ito::RetVal | getParam (QSharedPointer< ito::Param > val, ItomSharedSemaphore *waitCond=NULL)=0 |
| method for the retrieval of a parameter. The actual value is always passed as ito::Param (must be overwritten). See also setParam
|
|
virtual ito::RetVal | setParam (QSharedPointer< ito::ParamBase > val, ItomSharedSemaphore *waitCond=NULL)=0 |
| method to set a parameter. The actual value is always passed as ito::ParamBase (must be overwritten). See also getParam
|
|
ito::RetVal | setParamVector (const QVector< QSharedPointer< ito::ParamBase > > values, ItomSharedSemaphore *waitCond=NULL) |
| method for setting various parameters (can be used instead of multiple calls to setParam, this can safe multiple invocations)
|
|
ito::RetVal | getParamVector (const QVector< QSharedPointer< ito::Param > > values, ItomSharedSemaphore *waitCond=NULL) |
| method for getting various parameters (can be used instead of multiple calls to getParam, this can safe multiple invocations)
|
|
virtual ito::RetVal | execFunc (const QString funcName, QSharedPointer< QVector< ito::ParamBase > > paramsMand, QSharedPointer< QVector< ito::ParamBase > > paramsOpt, QSharedPointer< QVector< ito::ParamBase > > paramsOut, ItomSharedSemaphore *waitCond=NULL) |
| overwrite this function if you registered exec funcs. Once the exec function is called, this method is executed.
|
|
ito::RetVal | moveBackToApplicationThread (ItomSharedSemaphore *waitCond=NULL) |
| method invoked by AddInManager if the plugin should be pulled back to the main thread of itom. (not for direct use in plugins)
|
|
void | sendParameterRequest () |
| immediately emits the signal parametersChanged
|
|
|
void | setInterrupt () |
| set interrupt flag (thread-safe)
|
|
void | resetInterrupt () |
| resets the interrupt flag (thread-safe)
|
|
ito::RetVal | getLastSignalledStates (QVector< int > &status, QVector< double > ¤tPos, QVector< double > &targetPos) |
| put the latest signalled states (current status, position and target position) to the given arguments.
|
|
const Param | getParamRec (const QString name, bool *nameCheckOk=NULL) const |
| method to retrieve a parameter from the parameter map (m_params)
|
|
AddInInterfaceBase * | getBasePlugin (void) const |
| returns the interface of this instance.
|
|
ito::RetVal | MoveToThread (void) |
| creates new thread for the class instance and moves this instance to the new thread
|
|
const ito::RetVal | getParamList (QMap< QString, Param > **paramNames) |
| returns a map with the parameters of this plugin.
|
|
const ito::RetVal | getExecFuncList (QMap< QString, ExecFuncParams > **funcs) |
| returns list of registered additional functions
|
|
int | getID () const |
| retrieve the uniqueID of this instance
|
|
QString | getIdentifier () const |
| retrieve the unique identifier of this instance
|
|
virtual int | hasConfDialog (void) |
| determine if a configuration dialog is available
|
|
virtual const ito::RetVal | showConfDialog (void) |
| open configuration dialog
|
|
int | createdByGUI () const |
| returns true if this instance has firstly been created by the GUI
|
|
void | setCreatedByGUI (int value) |
| method to set whether this instance has been firstly created by the GUI (true) or by any other component (Python, C++, other plugin,..) (false)
|
|
int | getRefCount (void) const |
| Returns the reference counter of this instance.
|
|
bool | hasDockWidget (void) const |
| Returns true if this plugin provides a dock widget, that can be shown in the main window.
|
|
QDockWidget * | getDockWidget (void) const |
| Returns the reference to the dock widget of this plugin or NULL, if no dock widget is provided or if it is already deleted.
|
|
virtual void | dockWidgetDefaultStyle (bool &floating, bool &visible, Qt::DockWidgetArea &defaultArea) const |
| returns default style properties for dock-widget of plugin
|
|
int | isAlive (void) |
| returns the alive-flag of this plugin
|
|
void | setAlive (void) |
| sets the alive-flag to 1 ("still alive")
|
|
bool | isInitialized (void) const |
| returns in a thread-safe way the status of the m_initialized-member variable. This variable should be set to true at the end of the init-method.
|
|
void | setInitialized (bool initialized) |
| sets in a thread-safe way the status of the m_initialized-member
|
|
QVector< ito::AddInBase::AddInRef * > * | getArgAddIns (void) |
| returns vector of AddInRef instances.
|
|
QMutex & | getUserMutex () |
| returns the user mutex of this plugin, that can be used for user-defined purposes.
|
|
|
bool | isMotorMoving () const |
| checks whether any axis is still moving (moving flag is set)
|
|
void | sendStatusUpdate (const bool statusOnly=false) |
| method emits the actuatorStatusChanged signal if any slot is connected to this signal.
|
|
void | sendTargetUpdate () |
| method emits the targetChanged signal if any slot is connected to this signal.
|
|
virtual ito::RetVal | waitForDone (const int timeoutMS=-1, const QVector< int > axis=QVector< int >(), const int flags=0)=0 |
| this method must be overwritten.
|
|
void | setStatus (int &status, const int newFlags, const int keepMask=0) |
| sets status flags of given status variable
|
|
void | setStatus (const QVector< int > &axis, const int newFlags, const int keepMask=0) |
| sets status flags of the status of the given axes
|
|
void | replaceStatus (int &status, const int existingFlag, const int replaceFlag) |
| changes the status bit of the given status value from one existing to a new value.
|
|
void | replaceStatus (const QVector< int > &axis, const int existingFlag, const int replaceFlag) |
| changes the status flags of the status of the given axes from one existing to a new value
|
|
void | initStatusAndPositions (int numAxes, int status, double currentPosition=0.0, double targetPosition=0.0, bool sendUpdateSignals=true) |
| initializes the current status, current position and target position vectors to the same size and the given start values
|
|
bool | isInterrupted () |
| returns interrupt flag (thread-safe)
|
|
| AddInBase () |
| Constructor.
|
|
virtual | ~AddInBase () |
| Destructor.
|
|
void | setIdentifier (const QString &identifier) |
| sets the identifier of the plugin. The slot AbstractAddInDockWidget::identifierChanged is invoked if a corresponding dock widget is available.
|
|
void | createDockWidget (QString title, QDockWidget::DockWidgetFeatures features, Qt::DockWidgetAreas allowedAreas=Qt::AllDockWidgetAreas, QWidget *content=NULL) |
| Creates the dock-widget for this plugin.
|
|
ito::RetVal | registerExecFunc (const QString funcName, const QVector< ito::Param > ¶msMand, const QVector< ito::Param > ¶msOpt, const QVector< ito::Param > ¶msOut, const QString infoString) |
| Registers an additional function with specific name and default parameters.
|
|
void | setBasePlugin (AddInInterfaceBase *base) |
| sets the interface of this instance to base.
|
|
bool | hasGuiSupport () |
| check if we have gui support
|
|
base class for all actuator plugin classes
This class is one step further down the line from AddInBase. Actuator plugins must be derived from this class which is derived from AddInBase. In this class only the methods specific to actuator plugins are declared.
void ito::AddInActuator::actuatorStatusChanged |
( |
QVector< int > | status, |
|
|
QVector< double > | actPosition ) |
|
signal |
signal emitted if status or actual position of any axis has been changed.
Usually this signal can be sent using the method sendStatusUpdate(...). This method firstly checks if any slot has been connected to this signal and only fires the signal of at least one slot is connected (e.g. any docking-widget).
Usually the status and positions are taken from the member variables m_currentStatus and m_currentPos.
\params status is a vector with the length of the number of axis and each value contains a OR-combination of ito::tActuatorStatus \params actPosition is a vector with the length of the number of axis containing the actual axis positions, or length 0, if no actual positions are sended.
ito::RetVal ito::AddInActuator::requestStatusAndPosition |
( |
bool | sendActPosition, |
|
|
bool | sendTargetPos ) |
|
virtualslot |
overload this function to update the current status and position values, followed by calling sendStatusUpdate and/or sendTargetUpdate
method invoked in order to force a re-emitation of the current status, the current positions (if desired) and the target positions (if desired)
This method is mainly invoked by a dock widget of the actuator such that the plugin re-emits the current values, that are then received by the dock widget.
Overload this method if you want to update the values before emitting them.