#include <RobotControlDialogBar.h>
Inheritance diagram for CRobotControlDialogBar:
Public Member Functions | |
CRobotControlDialogBar (UINT dialogID) | |
virtual bool | handleMessage (InMessage &message) |
virtual bool | handleCommand (UINT command) |
virtual void | updateUI (CCmdUI *pCmdUI) |
virtual void | OnIdle () |
virtual void | OnConfigurationSave (CString sectionName) |
virtual void | OnConfigurationLoad (CString sectionName) |
Protected Member Functions | |
void | registerDrawingPaper (DrawingPapers::FieldDrawingPaper fieldDrawingPaper, CWnd *pWnd) |
void | registerDrawingPaper (DrawingPapers::ImageDrawingPaper imageDrawingPaper, CWnd *pWnd) |
void | paintDrawingPaper (CDC *pDC, CRect *rect, DrawingPapers::FieldDrawingPaper fieldDrawingPaper) |
void | paintDrawingPaper (CRect *rect, DrawingPapers::ImageDrawingPaper imageDrawingPaper) |
CameraInfo | getDebugImageCameraInfo () |
Definition at line 26 of file RobotControlDialogBar.h.
CRobotControlDialogBar::CRobotControlDialogBar | ( | UINT | dialogID | ) | [inline] |
Constructor.
dialogID | The id of the dialog (from resource.h) |
Definition at line 33 of file RobotControlDialogBar.h.
CameraInfo CRobotControlDialogBar::getDebugImageCameraInfo | ( | ) | [protected] |
Returns the cameraInfo of the first image in the debugDrawingManager
Definition at line 33 of file RobotControlDialogBar.cpp.
References Image::cameraInfo, CRobotControlMainFrame::debugDrawingManager, getRobotControlApp(), DebugDrawingManager::imageDrawingManager, ImageDrawingManager::imageYUV, CRobotControlApp::pMainFrame, and Images::rawImage.
Referenced by CImageViewerDlgBar::changeLayout().
virtual bool CRobotControlDialogBar::handleCommand | ( | UINT | command | ) | [inline, virtual] |
Handles control notifications which arrived in the main frame
command | The id of the control, menu, accelerator etc. |
Reimplemented in CMessageViewerDlgBar, CMofTesterDlgBar, CSimulatorObjectViewerDlgBar, and CStatisticsDlgBar.
Definition at line 48 of file RobotControlDialogBar.h.
virtual bool CRobotControlDialogBar::handleMessage | ( | InMessage & | message | ) | [inline, virtual] |
Is called for incoming debug messages.
message | The message to handle. |
Implements MessageHandler.
Reimplemented in CColorSpaceDlgBar, CColorTable64DlgBar, CGT2004BallLocatorSetDlgBar, CGT2004WalkingEngineParamSetDlgBar, CHistogramDlgBar, CHSIColorTableToolDlgBar, CInvKinParametersDlgBar, CJointViewerDlgBar, CKickEditorDlgBar, CMessageViewerDlgBar, CMofTesterDlgBar, COptionRatingDlgBar, CPotentialFieldViewerDlgBar, CRadarViewer3DDlgBar, CRadarViewerDlgBar, CStatisticsDlgBar, CTimeDiagramDlgBar, CTSLColorTableToolDlgBar, CValueHistoryDlgBar, and CXabsl2DlgBar.
Definition at line 40 of file RobotControlDialogBar.h.
virtual void CRobotControlDialogBar::OnConfigurationLoad | ( | CString | sectionName | ) | [inline, virtual] |
Is called when a configuration is loaded. Can be used by the dialogs and bars to load configuration dependand settings.
sectionName | The registry section for the current configuration |
Reimplemented in CColorSpaceDlgBar, CKickEditorDlgBar, CRadarViewer3DDlgBar, CRadarViewerDlgBar, CSimulatorObjectViewerDlgBar, and CStatisticsDlgBar.
Definition at line 72 of file RobotControlDialogBar.h.
virtual void CRobotControlDialogBar::OnConfigurationSave | ( | CString | sectionName | ) | [inline, virtual] |
Is called when a configuration is saved. Can be used by the dialogs and bars to save configuration dependand settings.
sectionName | The registry section for the current configuration |
Reimplemented in CColorSpaceDlgBar, CKickEditorDlgBar, CRadarViewer3DDlgBar, CRadarViewerDlgBar, CSimulatorObjectViewerDlgBar, and CStatisticsDlgBar.
Definition at line 65 of file RobotControlDialogBar.h.
virtual void CRobotControlDialogBar::OnIdle | ( | ) | [inline, virtual] |
Is called when the application is in idle state
Definition at line 58 of file RobotControlDialogBar.h.
void CRobotControlDialogBar::paintDrawingPaper | ( | CRect * | rect, | |
DrawingPapers::ImageDrawingPaper | imageDrawingPaper | |||
) | [protected] |
Calls the paint method of the DebugDrawingManager for a certain drawing paper
rect | Specifies the rect in the device context to paint to. | |
imageDrawingPaper | Specifies the drawing paper to paint. |
Definition at line 28 of file RobotControlDialogBar.cpp.
References CRobotControlMainFrame::debugDrawingManager, getRobotControlApp(), DebugDrawingManager::paint(), and CRobotControlApp::pMainFrame.
void CRobotControlDialogBar::paintDrawingPaper | ( | CDC * | pDC, | |
CRect * | rect, | |||
DrawingPapers::FieldDrawingPaper | fieldDrawingPaper | |||
) | [protected] |
Calls the paint method of the DebugDrawingManager for a certain drawing paper
pDC | The DC to draw to. | |
rect | Specifies the rect in the device context to paint to. | |
fieldDrawingPaper | Specifies the drawing paper to paint. |
Definition at line 23 of file RobotControlDialogBar.cpp.
References CRobotControlMainFrame::debugDrawingManager, getRobotControlApp(), DebugDrawingManager::paint(), and CRobotControlApp::pMainFrame.
Referenced by CLargeImageViewerDlgBar::OnPaint(), and CImageViewerDlgBar::OnPaint().
void CRobotControlDialogBar::registerDrawingPaper | ( | DrawingPapers::ImageDrawingPaper | imageDrawingPaper, | |
CWnd * | pWnd | |||
) | [protected] |
Registers a CWnd that hosts a certain drawing paper at the debug drawing manager.
imageDrawingPaper | The image drawing paper. | |
pWnd | A pointer to the window. |
Definition at line 18 of file RobotControlDialogBar.cpp.
References CRobotControlMainFrame::debugDrawingManager, getRobotControlApp(), CRobotControlApp::pMainFrame, and DebugDrawingManager::setCallBackMethod().
void CRobotControlDialogBar::registerDrawingPaper | ( | DrawingPapers::FieldDrawingPaper | fieldDrawingPaper, | |
CWnd * | pWnd | |||
) | [protected] |
Registers a CWnd that hosts a certain drawing paper at the debug drawing manager.
fieldDrawingPaper | The field drawing paper. | |
pWnd | A pointer to the window. |
Definition at line 13 of file RobotControlDialogBar.cpp.
References CRobotControlMainFrame::debugDrawingManager, getRobotControlApp(), CRobotControlApp::pMainFrame, and DebugDrawingManager::setCallBackMethod().
virtual void CRobotControlDialogBar::updateUI | ( | CCmdUI * | pCmdUI | ) | [inline, virtual] |
Enables the controls in the dialog bar. This function is called from the main window for all controls.
pCmdUI | An interface to the control that allows enabling/disabling, checking etc. |
Reimplemented in CInvKinParametersDlgBar, CJointViewerDlgBar, CMofTesterDlgBar, CSimulatorObjectViewerDlgBar, CStatisticsDlgBar, CTestDataGeneratorDlgBar, and CXabsl2DlgBar.
Definition at line 55 of file RobotControlDialogBar.h.