CRadarViewerDlgBar Class Reference

#include <RadarViewerDlgBar.h>

Inheritance diagram for CRadarViewerDlgBar:

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

Public Types

 IDD = IDD_DIALOG_BAR_RADAR_VIEWER
enum  { IDD = IDD_DIALOG_BAR_RADAR_VIEWER }

Public Member Functions

 CRadarViewerDlgBar ()
virtual bool handleMessage (InMessage &message)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnEnChangeRadarBufferEdit ()

Public Attributes

CEdit m_bufferEdit

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
afx_msg void OnPaint ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
 DECLARE_MESSAGE_MAP ()

Private Types

 bufferSize = 100
enum  { bufferSize = 100 }

Private Member Functions

virtual void OnConfigurationLoad (CString sectionName)
virtual void OnConfigurationSave (CString sectionName)
void paintCurrentSelectionToCDC (CDC &dc, bool paintFrame=false)
void copyToClipBoard ()

Private Attributes

double scale
CPoint m_LeftDownPos
bool m_LeftButtonDown
CRect rect
RingBuffer< BallPercept, bufferSize > ballPerceptBuffer
RingBuffer< BallModel, bufferSize > ballModelBuffer
RingBuffer< LandmarksPercept,
bufferSize > 
landmarksPerceptBuffer
RingBuffer< LinesPercept,
bufferSize > 
linesPerceptBuffer
RingBuffer< ObstaclesPercept,
bufferSize > 
obstaclesPerceptBuffer
RingBuffer< RobotPose, bufferSize > robotPoseBuffer
RingBuffer< ObstaclesModel,
bufferSize > 
obstaclesModelBuffer
RingBuffer< PSDPercept, bufferSize > psdPerceptBuffer
RingBuffer< CameraMatrix,
bufferSize > 
cameraMatrixBuffer
RingBuffer< CameraInfo, bufferSize > cameraInfoBuffer
RingBuffer< Image, bufferSize > imageBuffer
int numberOfShownEntries
bool showCoordinateSystem
bool showRobot
bool showBallPerceptSizeBased
bool showBallPerceptBearingBased
bool showBallModel
bool showLandmarksPercept
bool showPlayersPercept
bool showLinesPercept
bool showObstaclesPercept
bool showObstaclesModel
bool showSensorData
bool showJointData
bool showAngleOfView
bool showImage
bool showImageOnGround
bool showPSDPercept
bool ballAsCross
bool lineToBall

Detailed Description

A dialog bar to view percept collections

Definition at line 36 of file RadarViewerDlgBar.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IDD 

Definition at line 49 of file RadarViewerDlgBar.h.

anonymous enum [private]

Enumerator:
bufferSize 

Definition at line 96 of file RadarViewerDlgBar.h.


Constructor & Destructor Documentation

CRadarViewerDlgBar::CRadarViewerDlgBar (  ) 

Definition at line 21 of file RadarViewerDlgBar.cpp.

References m_LeftButtonDown, and numberOfShownEntries.


Member Function Documentation

void CRadarViewerDlgBar::copyToClipBoard (  )  [private]

Definition at line 136 of file RadarViewerDlgBar.cpp.

References paintCurrentSelectionToCDC().

Referenced by OnContextMenu().

CRadarViewerDlgBar::DECLARE_MESSAGE_MAP (  )  [protected]

Reimplemented from CDynamicBarDlg.

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

Definition at line 31 of file RadarViewerDlgBar.cpp.

References IDC_RADAR_BUFFER_EDIT, and m_bufferEdit.

bool CRadarViewerDlgBar::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 315 of file RadarViewerDlgBar.cpp.

References RingBuffer< V, n >::add(), ballModelBuffer, ballPerceptBuffer, InMessage::bin, cameraInfoBuffer, cameraMatrixBuffer, FALSE, BallPercept::frameNumber, CameraMatrix::frameNumber, InMessage::getMessageID(), RingBuffer< V, n >::getNumberOfEntries(), idImage, idPercepts, idWorldState, image, imageBuffer, landmarksPerceptBuffer, linesPerceptBuffer, obstaclesModelBuffer, obstaclesPerceptBuffer, psdPerceptBuffer, RECEIVE_IMAGE, RECEIVE_PERCEPTS, RECEIVE_WORLDSTATE, and robotPoseBuffer.

void CRadarViewerDlgBar::OnConfigurationLoad ( CString  sectionName  )  [private, 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 from CRobotControlDialogBar.

Definition at line 424 of file RadarViewerDlgBar.cpp.

References ballAsCross, bufferSize, lineToBall, m_bufferEdit, numberOfShownEntries, scale, showAngleOfView, showBallModel, showBallPerceptBearingBased, showBallPerceptSizeBased, showCoordinateSystem, showImage, showImageOnGround, showJointData, showLandmarksPercept, showLinesPercept, showObstaclesModel, showObstaclesPercept, showPlayersPercept, showPSDPercept, showRobot, and showSensorData.

void CRadarViewerDlgBar::OnConfigurationSave ( CString  sectionName  )  [private, 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 from CRobotControlDialogBar.

Definition at line 458 of file RadarViewerDlgBar.cpp.

References ballAsCross, lineToBall, numberOfShownEntries, scale, showAngleOfView, showBallModel, showBallPerceptBearingBased, showBallPerceptSizeBased, showCoordinateSystem, showImage, showImageOnGround, showJointData, showLandmarksPercept, showLinesPercept, showObstaclesModel, showObstaclesPercept, showPlayersPercept, showPSDPercept, showRobot, and showSensorData.

void CRadarViewerDlgBar::OnContextMenu ( CWnd *  pWnd,
CPoint  point 
) [protected]

Definition at line 177 of file RadarViewerDlgBar.cpp.

References ballAsCross, copyToClipBoard(), lineToBall, showAngleOfView, showBallModel, showBallPerceptBearingBased, showBallPerceptSizeBased, showCoordinateSystem, showImage, showImageOnGround, showJointData, showLandmarksPercept, showLinesPercept, showObstaclesModel, showObstaclesPercept, showPlayersPercept, showPSDPercept, showRobot, showSensorData, and VERIFY.

void CRadarViewerDlgBar::OnEnChangeRadarBufferEdit (  ) 

Definition at line 402 of file RadarViewerDlgBar.cpp.

References bufferSize, FALSE, m_bufferEdit, and numberOfShownEntries.

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

Reimplemented from CDynamicDialog.

Definition at line 53 of file RadarViewerDlgBar.cpp.

References CDynamicDialog::OnInitDialog(), and TRUE.

void CRadarViewerDlgBar::OnLButtonDown ( UINT  nFlags,
CPoint  point 
)

Definition at line 411 of file RadarViewerDlgBar.cpp.

References m_LeftButtonDown, and m_LeftDownPos.

void CRadarViewerDlgBar::OnLButtonUp ( UINT  nFlags,
CPoint  point 
)

Definition at line 418 of file RadarViewerDlgBar.cpp.

References m_LeftButtonDown.

void CRadarViewerDlgBar::OnMouseMove ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 384 of file RadarViewerDlgBar.cpp.

References abs(), FALSE, m_LeftButtonDown, m_LeftDownPos, and scale.

void CRadarViewerDlgBar::OnPaint (  )  [protected]

Definition at line 59 of file RadarViewerDlgBar.cpp.

References paintCurrentSelectionToCDC(), rect, and scale.

void CRadarViewerDlgBar::OnSize ( UINT  nType,
int  cx,
int  cy 
) [protected]

Reimplemented from CDynamicDialog.

Definition at line 168 of file RadarViewerDlgBar.cpp.

References rect.

void CRadarViewerDlgBar::paintCurrentSelectionToCDC ( CDC &  dc,
bool  paintFrame = false 
) [private]

Definition at line 109 of file RadarViewerDlgBar.cpp.

References ballAsCross, ballModelBuffer, ballPerceptBuffer, cameraInfoBuffer, cameraMatrixBuffer, RingBuffer< V, n >::getNumberOfEntries(), imageBuffer, landmarksPerceptBuffer, linesPerceptBuffer, lineToBall, numberOfShownEntries, obstaclesModelBuffer, obstaclesPerceptBuffer, PaintMethodsWin32::paintBallModelToCDC(), PaintMethodsWin32::paintBallPerceptToCDC(), PaintMethodsWin32::paintCameraMatrixToCDC(), PaintMethodsWin32::paintCoordinateSystemToCDC(), PaintMethodsWin32::paintFrameForScalingToCDC(), PaintMethodsWin32::paintImageProjectionOnGroundToCDC(), PaintMethodsWin32::paintLandmarksPerceptToCDC(), PaintMethodsWin32::paintLinesPerceptToCDC(), PaintMethodsWin32::paintObstaclesModelToCDC(), PaintMethodsWin32::paintObstaclesPerceptToCDC(), PaintMethodsWin32::paintPSDPerceptToCDC(), PaintMethodsWin32::paintRobotToCDC(), psdPerceptBuffer, robotPoseBuffer, showAngleOfView, showBallModel, showBallPerceptBearingBased, showBallPerceptSizeBased, showCoordinateSystem, showImageOnGround, showLandmarksPercept, showLinesPercept, showObstaclesModel, showObstaclesPercept, showPSDPercept, and showRobot.

Referenced by copyToClipBoard(), and OnPaint().


Member Data Documentation

bool CRadarViewerDlgBar::ballAsCross [private]

Definition at line 130 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

RingBuffer<BallModel, bufferSize> CRadarViewerDlgBar::ballModelBuffer [private]

Definition at line 99 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

RingBuffer<BallPercept, bufferSize> CRadarViewerDlgBar::ballPerceptBuffer [private]

Definition at line 98 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

RingBuffer<CameraInfo, bufferSize> CRadarViewerDlgBar::cameraInfoBuffer [private]

Definition at line 107 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

RingBuffer<CameraMatrix, bufferSize> CRadarViewerDlgBar::cameraMatrixBuffer [private]

Definition at line 106 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

RingBuffer<Image, bufferSize> CRadarViewerDlgBar::imageBuffer [private]

Definition at line 108 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

RingBuffer<LandmarksPercept, bufferSize> CRadarViewerDlgBar::landmarksPerceptBuffer [private]

Definition at line 100 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

RingBuffer<LinesPercept, bufferSize> CRadarViewerDlgBar::linesPerceptBuffer [private]

Definition at line 101 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::lineToBall [private]

Definition at line 131 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

CEdit CRadarViewerDlgBar::m_bufferEdit

Definition at line 50 of file RadarViewerDlgBar.h.

Referenced by DoDataExchange(), OnConfigurationLoad(), and OnEnChangeRadarBufferEdit().

bool CRadarViewerDlgBar::m_LeftButtonDown [private]

Definition at line 91 of file RadarViewerDlgBar.h.

Referenced by CRadarViewerDlgBar(), OnLButtonDown(), OnLButtonUp(), and OnMouseMove().

CPoint CRadarViewerDlgBar::m_LeftDownPos [private]

Definition at line 90 of file RadarViewerDlgBar.h.

Referenced by OnLButtonDown(), and OnMouseMove().

int CRadarViewerDlgBar::numberOfShownEntries [private]

Definition at line 110 of file RadarViewerDlgBar.h.

Referenced by CRadarViewerDlgBar(), OnConfigurationLoad(), OnConfigurationSave(), OnEnChangeRadarBufferEdit(), and paintCurrentSelectionToCDC().

RingBuffer<ObstaclesModel, bufferSize> CRadarViewerDlgBar::obstaclesModelBuffer [private]

Definition at line 104 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

RingBuffer<ObstaclesPercept, bufferSize> CRadarViewerDlgBar::obstaclesPerceptBuffer [private]

Definition at line 102 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

RingBuffer<PSDPercept, bufferSize> CRadarViewerDlgBar::psdPerceptBuffer [private]

Definition at line 105 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

CRect CRadarViewerDlgBar::rect [private]

The rect where the image is painted

Definition at line 94 of file RadarViewerDlgBar.h.

Referenced by OnPaint(), and OnSize().

RingBuffer<RobotPose, bufferSize> CRadarViewerDlgBar::robotPoseBuffer [private]

Definition at line 103 of file RadarViewerDlgBar.h.

Referenced by handleMessage(), and paintCurrentSelectionToCDC().

double CRadarViewerDlgBar::scale [private]

Definition at line 87 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnMouseMove(), and OnPaint().

bool CRadarViewerDlgBar::showAngleOfView [private]

Definition at line 125 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showBallModel [private]

Definition at line 117 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showBallPerceptBearingBased [private]

Definition at line 116 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showBallPerceptSizeBased [private]

Definition at line 115 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showCoordinateSystem [private]

Definition at line 113 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showImage [private]

Definition at line 126 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), and OnContextMenu().

bool CRadarViewerDlgBar::showImageOnGround [private]

Definition at line 127 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showJointData [private]

Definition at line 124 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), and OnContextMenu().

bool CRadarViewerDlgBar::showLandmarksPercept [private]

Definition at line 118 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showLinesPercept [private]

Definition at line 120 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showObstaclesModel [private]

Definition at line 122 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showObstaclesPercept [private]

Definition at line 121 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showPlayersPercept [private]

Definition at line 119 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), and OnContextMenu().

bool CRadarViewerDlgBar::showPSDPercept [private]

Definition at line 128 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showRobot [private]

Definition at line 114 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintCurrentSelectionToCDC().

bool CRadarViewerDlgBar::showSensorData [private]

Definition at line 123 of file RadarViewerDlgBar.h.

Referenced by OnConfigurationLoad(), OnConfigurationSave(), and OnContextMenu().


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