CRobotControlDialogBar Class Reference

#include <RobotControlDialogBar.h>

Inheritance diagram for CRobotControlDialogBar:

CDynamicBarDlg MessageHandler CDynamicChildDlg CDynamicDialog CDynamicWndEx CDynamicWnd CColorSpaceDlgBar CColorTable64DlgBar CDebugMessageGeneratorDlgBar CGT2004BallLocatorSetDlgBar CGT2004WalkingEngineParamSetDlgBar CHeadMotionTesterDlgBar CHistogramDlgBar CHSIColorTableToolDlgBar CImageViewerDlgBar CInvKinParametersDlgBar CJointViewerDlgBar CJoystickMotionTesterDlgBar CKickEditorDlgBar CLargeImageViewerDlgBar CMessageViewerDlgBar CMofTesterDlgBar CMotionTesterDlgBar COptionRatingDlgBar CPotentialFieldViewerDlgBar CRadarViewer3DDlgBar CRadarViewerDlgBar CSettingsDlgBar CSimulatorObjectViewerDlgBar CStatisticsDlgBar CTacticDesignerDlgBar CTestDataGeneratorDlgBar CTimeDiagramDlgBar CTSLColorTableToolDlgBar CValueHistoryDlgBar CXabsl2DlgBar CXABSL2ProfilerDlgBar List of all members.

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 ()

Detailed Description

The base class of all dialog bars in RobotControl.

Author:
Martin Lötzsch.

Definition at line 26 of file RobotControlDialogBar.h.


Constructor & Destructor Documentation

CRobotControlDialogBar::CRobotControlDialogBar ( UINT  dialogID  )  [inline]

Constructor.

Parameters:
dialogID The id of the dialog (from resource.h)

Definition at line 33 of file RobotControlDialogBar.h.


Member Function Documentation

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

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

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.

Parameters:
message The message to handle.
Returns:
If the message was handled.

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.

Parameters:
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.

Parameters:
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

Parameters:
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

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.


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