RobotHeadForm.ui.h

00001 /****************************************************************************
00002 ** ui.h extension file, included from the uic-generated form implementation.
00003 **
00004 ** If you want to add, delete, or rename functions or slots, use
00005 ** Qt Designer to update this file, preserving your code.
00006 **
00007 ** You should not define a constructor or destructor in this file.
00008 ** Instead, write your code in functions called init() and destroy().
00009 ** These will automatically be called by the form's constructor and
00010 ** destructor.
00011 *****************************************************************************/
00012 
00013 #include "GUI/DebugWin.H"
00014 
00015 void RobotHeadForm::fileNew()
00016 {
00017 
00018 }
00019 
00020 
00021 void RobotHeadForm::fileOpen()
00022 {
00023 
00024 }
00025 
00026 
00027 void RobotHeadForm::fileSave()
00028 {
00029 
00030 }
00031 
00032 
00033 void RobotHeadForm::fileSaveAs()
00034 {
00035 
00036 }
00037 
00038 
00039 void RobotHeadForm::filePrint()
00040 {
00041 
00042 }
00043 
00044 
00045 void RobotHeadForm::fileExit()
00046 {
00047 
00048 }
00049 
00050 
00051 void RobotHeadForm::editUndo()
00052 {
00053 
00054 }
00055 
00056 
00057 void RobotHeadForm::editRedo()
00058 {
00059 
00060 }
00061 
00062 
00063 void RobotHeadForm::editCut()
00064 {
00065 
00066 }
00067 
00068 
00069 void RobotHeadForm::editPaste()
00070 {
00071 
00072 }
00073 
00074 
00075 void RobotHeadForm::editFind()
00076 {
00077 
00078 }
00079 
00080 
00081 void RobotHeadForm::helpIndex()
00082 {
00083 
00084 }
00085 
00086 
00087 void RobotHeadForm::helpContents()
00088 {
00089 
00090 }
00091 
00092 
00093 void RobotHeadForm::helpAbout()
00094 {
00095 
00096 }
00097 
00098 
00099 void RobotHeadForm::init( ModelManager &mgr, nub::soft_ref<BeoHead> beoHead )
00100 {
00101 
00102     itsMgr = &mgr;
00103     itsBeoHead = beoHead;
00104   //  itsDispThread = new DispThread;
00105   //  itsDispThread->init(gb, itsRightEyeDisp, itsLeftEyeDisp);
00106 }
00107 
00108 
00109 void RobotHeadForm::grab()
00110 {
00111  // itsDispThread->start();
00112 }
00113 
00114 void RobotHeadForm::moveLeftEyePan( int pos )
00115 {
00116   float moveVal = (float)pos/100.0;
00117   leftEyePanDisp->setText(QString("%1").arg(moveVal));
00118   itsBeoHead->setLeftEyePan(moveVal);
00119 
00120 }
00121 
00122 
00123 void RobotHeadForm::moveLeftEyeTilt( int pos )
00124 {
00125   float moveVal = (float)pos/100.0;
00126   leftEyeTiltDisp->setText(QString("%1").arg(moveVal));
00127   itsBeoHead->setLeftEyeTilt(moveVal);
00128 
00129 }
00130 
00131 void RobotHeadForm::moveRightEyePan( int pos )
00132 {
00133   float moveVal = (float)pos/100.0;
00134   leftEyePanDisp->setText(QString("%1").arg(moveVal));
00135   itsBeoHead->setRightEyePan(moveVal);
00136 
00137 }
00138 
00139 
00140 void RobotHeadForm::moveRightEyeTilt( int pos )
00141 {
00142   float moveVal = (float)pos/100.0;
00143   leftEyeTiltDisp->setText(QString("%1").arg(moveVal));
00144   itsBeoHead->setRightEyeTilt(moveVal);
00145 
00146 }
00147 
00148 void RobotHeadForm::moveHeadPan( int pos )
00149 {
00150   float moveVal = (float)pos/100.0;
00151   headPanDisp->setText(QString("%1").arg(moveVal));
00152   itsBeoHead->setHeadPan(moveVal);
00153 
00154 }
00155 
00156 void RobotHeadForm::moveHeadTilt( int pos )
00157 {
00158   float moveVal = (float)pos/100.0;
00159   headTiltDisp->setText(QString("%1").arg(moveVal));
00160   itsBeoHead->setHeadTilt(moveVal);
00161 
00162 }
00163 
00164 
00165 void RobotHeadForm::moveHeadYaw( int pos )
00166 {
00167   float moveVal = (float)pos/100.0;
00168   headYawDisp->setText(QString("%1").arg(moveVal));
00169   itsBeoHead->setHeadYaw(moveVal);
00170 
00171 }
00172 
00173 
00174 
00175 void RobotHeadForm::relaxNeck()
00176 {
00177 
00178   itsBeoHead->relaxNeck();
00179 }
00180 
00181 
00182 void RobotHeadForm::restPos()
00183 {
00184   itsBeoHead->moveRestPos();
00185 
00186 }
Generated on Sun May 8 08:05:33 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3