CMofTesterDlgBar Class Reference

#include <MofTesterDlgBar.h>

Inheritance diagram for CMofTesterDlgBar:

CRobotControlDialogBar CDynamicBarDlg MessageHandler CDynamicChildDlg CDynamicDialog CDynamicWndEx CDynamicWnd List of all members.

Public Types

 IDD = IDD_DIALOG_BAR_MOFTESTER
enum  { IDD = IDD_DIALOG_BAR_MOFTESTER }

Public Member Functions

 CMofTesterDlgBar ()
virtual bool handleMessage (InMessage &message)
virtual bool handleCommand (UINT command)

Public Attributes

CStatic m_lines
CStatic m_static1
CButton m_stopButton
CEdit m_mofEdit
CButton m_readButton
CButton m_loopCheck
CButton m_executeButton
CButton m_mirrorButton
CButton m_rawdataButton
CButton m_slowMoButton
CEdit m_slowMoEdit

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual void updateUI (CCmdUI *pCmdUI)
virtual BOOL OnInitDialog ()
afx_msg void OnExecuteButton ()
afx_msg void OnReadButton ()
afx_msg void OnStopButton ()
afx_msg void OnMirrorButton ()
afx_msg void OnRawDataButton ()
afx_msg void OnSlowMoButton ()
 DECLARE_MESSAGE_MAP ()
void generateJointDataSequence (int slowFactor=1)
void sendSequence ()

Protected Attributes

JointDataSequence jointDataSequence
bool waitForSensorData

Detailed Description

A dialog bar used to send mof data (sequences of joint values) to the DebugWalkingEngine

Definition at line 20 of file MofTesterDlgBar.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IDD 

Definition at line 27 of file MofTesterDlgBar.h.


Constructor & Destructor Documentation

CMofTesterDlgBar::CMofTesterDlgBar (  ) 

Default constructor.

Definition at line 17 of file MofTesterDlgBar.cpp.

References waitForSensorData.


Member Function Documentation

CMofTesterDlgBar::DECLARE_MESSAGE_MAP (  )  [protected]

Reimplemented from CDynamicBarDlg.

void CMofTesterDlgBar::DoDataExchange ( CDataExchange *  pDX  )  [protected, virtual]

Definition at line 26 of file MofTesterDlgBar.cpp.

References IDC_MOFTESTER_EXECUTE_BUTTON, IDC_MOFTESTER_LINES, IDC_MOFTESTER_LOOP, IDC_MOFTESTER_MIRROR_BUTTON, IDC_MOFTESTER_MOF_EDIT, IDC_MOFTESTER_RAWDATA_BUTTON, IDC_MOFTESTER_READ_BUTTON, IDC_MOFTESTER_SLOWMO_BUTTON, IDC_MOFTESTER_SLOWMO_EDIT, IDC_MOFTESTER_STATIC1, IDC_MOFTESTER_STOP_BUTTON, m_executeButton, m_lines, m_loopCheck, m_mirrorButton, m_mofEdit, m_rawdataButton, m_readButton, m_slowMoButton, m_slowMoEdit, m_static1, and m_stopButton.

void CMofTesterDlgBar::generateJointDataSequence ( int  slowFactor = 1  )  [protected]

Definition at line 303 of file MofTesterDlgBar.cpp.

References d, JointDataSequence::entry, JointData::headPan, JointData::headTilt, JointDataSequence::interpolate, jointDataInvalidValue, jointDataSequence, jointDataSequenceMaxNumOfEntries, JointData::legFL1, JointData::legFL2, JointData::legFL3, JointData::legFR1, JointData::legFR2, JointData::legFR3, JointData::legHL1, JointData::legHL2, JointData::legHL3, JointData::legHR1, JointData::legHR2, JointData::legHR3, JointDataSequence::loop, m_lines, m_loopCheck, m_mofEdit, JointData::mouth, JointData::neckTilt, JointDataSequence::numOfEntries, JointDataSequence::repeats, JointData::tailPan, and JointData::tailTilt.

Referenced by OnExecuteButton(), OnMirrorButton(), OnRawDataButton(), and OnSlowMoButton().

bool CMofTesterDlgBar::handleCommand ( UINT  command  )  [virtual]

Handles control notifications which arrived in the main frame

Parameters:
command The id of the control, menu, accelerator etc.
Returns:
If the command was handled.

Reimplemented from CRobotControlDialogBar.

Definition at line 394 of file MofTesterDlgBar.cpp.

References OutMessage::bin, InFile::exists(), OutMessage::finishMessage(), getQueues(), IDC_SEND_MOTION_NET, idMotionNet, idText, MessageQueue::out, InStream< S, R >::read(), CRobotControlQueuesToRobots::selectedRobot, OutMessage::text, CRobotControlQueues::toGUI, CRobotControlQueues::toPhysical, CRobotControlQueues::toSimulated, and OutStream< S, W >::write().

bool CMofTesterDlgBar::handleMessage ( InMessage message  )  [virtual]

Called from a MessageQueue to distribute messages

Parameters:
message The message that can be read.
Returns:
true if the message was read (handled).

Reimplemented from CRobotControlDialogBar.

Definition at line 265 of file MofTesterDlgBar.cpp.

References InMessage::bin, InMessage::getMessageID(), SensorData::headPan, SensorData::headTilt, idSensorData, SensorData::legFL1, SensorData::legFL2, SensorData::legFL3, SensorData::legFR1, SensorData::legFR2, SensorData::legFR3, SensorData::legHL1, SensorData::legHL2, SensorData::legHL3, SensorData::legHR1, SensorData::legHR2, SensorData::legHR3, m_mofEdit, SensorData::neckTilt, and waitForSensorData.

void CMofTesterDlgBar::OnExecuteButton (  )  [protected]

Definition at line 78 of file MofTesterDlgBar.cpp.

References generateJointDataSequence(), and sendSequence().

BOOL CMofTesterDlgBar::OnInitDialog (  )  [protected, virtual]

Reimplemented from CDynamicDialog.

Definition at line 56 of file MofTesterDlgBar.cpp.

References CDynamicDialog::OnInitDialog(), and TRUE.

void CMofTesterDlgBar::OnMirrorButton (  )  [protected]

Definition at line 107 of file MofTesterDlgBar.cpp.

References JointData::data, JointDataSequence::entry, generateJointDataSequence(), JointData::headPan, JointData::headTilt, JointDataSequence::interpolate, jointDataInvalidValue, jointDataSequence, JointData::legFL1, JointData::legFL2, JointData::legFL3, JointData::legFR1, JointData::legFR2, JointData::legFR3, JointData::legHL1, JointData::legHL2, JointData::legHL3, JointData::legHR1, JointData::legHR2, JointData::legHR3, m_mofEdit, JointData::mouth, JointData::neckTilt, JointDataSequence::numOfEntries, JointDataSequence::repeats, JointData::tailPan, and JointData::tailTilt.

void CMofTesterDlgBar::OnRawDataButton (  )  [protected]

Definition at line 158 of file MofTesterDlgBar.cpp.

References JointData::data, JointDataSequence::entry, generateJointDataSequence(), JointData::headPan, JointData::headTilt, JointDataSequence::interpolate, jointDataInvalidValue, jointDataSequence, JointData::legFL1, JointData::legFL2, JointData::legFL3, JointData::legFR1, JointData::legFR2, JointData::legFR3, JointData::legHL1, JointData::legHL2, JointData::legHL3, JointData::legHR1, JointData::legHR2, JointData::legHR3, JointDataSequence::loop, m_mofEdit, JointData::neckTilt, JointDataSequence::numOfEntries, and JointDataSequence::repeats.

void CMofTesterDlgBar::OnReadButton (  )  [protected]

Definition at line 93 of file MofTesterDlgBar.cpp.

References CRobotControlDebugKeyTables::forPhysicalRobots, getDebugKeyTables(), DebugKey::n_times, CRobotControlDebugKeyTables::sendForPhysicalRobots(), DebugKeyTable::sendSensorData, DebugKeyTable::set(), and waitForSensorData.

void CMofTesterDlgBar::OnSlowMoButton (  )  [protected]

Definition at line 84 of file MofTesterDlgBar.cpp.

References generateJointDataSequence(), m_slowMoEdit, and sendSequence().

void CMofTesterDlgBar::OnStopButton (  )  [protected]

Definition at line 101 of file MofTesterDlgBar.cpp.

References jointDataSequence, JointDataSequence::numOfEntries, and sendSequence().

void CMofTesterDlgBar::sendSequence (  )  [protected]

Definition at line 367 of file MofTesterDlgBar.cpp.

References OutMessage::bin, OutMessage::finishMessage(), getQueues(), idJointDataSequence, jointDataSequence, MessageQueue::out, CRobotControlQueuesToRobots::selectedRobot, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.

Referenced by OnExecuteButton(), OnSlowMoButton(), and OnStopButton().

void CMofTesterDlgBar::updateUI ( CCmdUI *  pCmdUI  )  [protected, virtual]

Enables the controls in the dialog bar. This function is called from the main window for all controls.

Parameters:
pCmdUI An interface to the control that allows enabling/disabling, checking etc.

Reimplemented from CRobotControlDialogBar.

Definition at line 376 of file MofTesterDlgBar.cpp.

References IDC_MOFTESTER_EXECUTE_BUTTON, IDC_MOFTESTER_LOOP, and m_mofEdit.


Member Data Documentation

JointDataSequence CMofTesterDlgBar::jointDataSequence [protected]

Definition at line 87 of file MofTesterDlgBar.h.

Referenced by generateJointDataSequence(), OnMirrorButton(), OnRawDataButton(), OnStopButton(), and sendSequence().

CButton CMofTesterDlgBar::m_executeButton

Definition at line 34 of file MofTesterDlgBar.h.

Referenced by DoDataExchange().

CStatic CMofTesterDlgBar::m_lines

Definition at line 28 of file MofTesterDlgBar.h.

Referenced by DoDataExchange(), and generateJointDataSequence().

CButton CMofTesterDlgBar::m_loopCheck

Definition at line 33 of file MofTesterDlgBar.h.

Referenced by DoDataExchange(), and generateJointDataSequence().

CButton CMofTesterDlgBar::m_mirrorButton

Definition at line 35 of file MofTesterDlgBar.h.

Referenced by DoDataExchange().

CEdit CMofTesterDlgBar::m_mofEdit

Definition at line 31 of file MofTesterDlgBar.h.

Referenced by DoDataExchange(), generateJointDataSequence(), handleMessage(), OnMirrorButton(), OnRawDataButton(), and updateUI().

CButton CMofTesterDlgBar::m_rawdataButton

Definition at line 36 of file MofTesterDlgBar.h.

Referenced by DoDataExchange().

CButton CMofTesterDlgBar::m_readButton

Definition at line 32 of file MofTesterDlgBar.h.

Referenced by DoDataExchange().

CButton CMofTesterDlgBar::m_slowMoButton

Definition at line 37 of file MofTesterDlgBar.h.

Referenced by DoDataExchange().

CEdit CMofTesterDlgBar::m_slowMoEdit

Definition at line 38 of file MofTesterDlgBar.h.

Referenced by DoDataExchange(), and OnSlowMoButton().

CStatic CMofTesterDlgBar::m_static1

Definition at line 29 of file MofTesterDlgBar.h.

Referenced by DoDataExchange().

CButton CMofTesterDlgBar::m_stopButton

Definition at line 30 of file MofTesterDlgBar.h.

Referenced by DoDataExchange().

bool CMofTesterDlgBar::waitForSensorData [protected]

Definition at line 89 of file MofTesterDlgBar.h.

Referenced by CMofTesterDlgBar(), handleMessage(), and OnReadButton().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:22:35 2006 for DT2005.panorama by  doxygen 1.4.7