CPotentialFieldViewerDlgBar Class Reference

#include <PotentialFieldViewerDlgBar.h>

Inheritance diagram for CPotentialFieldViewerDlgBar:

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

Public Types

 IDD = IDD_DIALOG_BAR_POTENTIAL_FIELD_VIEWER
enum  { IDD = IDD_DIALOG_BAR_POTENTIAL_FIELD_VIEWER }

Public Member Functions

 CPotentialFieldViewerDlgBar (CWnd *pParent=NULL)
bool handleMessage (InMessage &message)

Public Attributes

CStatic m_fieldDisplay
CComboBox m_fieldChooser
CButton m_viewSelector
CButton m_openButton

Protected Types

 POTENTIAL
 VECTORS
enum  FieldViewType { POTENTIAL, VECTORS }

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
afx_msg void OnPaint ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnPotentialfieldViewerOpenButton ()
afx_msg void OnPotentialfieldViewerSwitchButton ()
afx_msg void OnSelchangePotentialfieldViewerFieldChooser ()
void drawField ()
void getValues ()
void initView ()

Protected Attributes

enum CPotentialFieldViewerDlgBar::FieldViewType fieldViewType
HGLRC m_hGLContext
HDC m_openGLDC
int stepsX
int stepsY
double minX
double minY
double maxX
double maxY
double maximum
double stepWidthX
double stepWidthY
double viewDistance
double value [3200]
double dirX [3200]
double dirY [3200]
bool somethingLoaded
RobotPose robotPose
BallModel ballPosition
PlayerPoseCollection playerPoseCollection
ObstaclesModel obstaclesModel
GTStandardConverterpotentialfields
TeamMessageCollection teamMessageCollection

Detailed Description

Definition at line 23 of file PotentialFieldViewerDlgBar.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IDD 

Definition at line 31 of file PotentialFieldViewerDlgBar.h.

enum CPotentialFieldViewerDlgBar::FieldViewType [protected]

Enumerator:
POTENTIAL 
VECTORS 

Definition at line 57 of file PotentialFieldViewerDlgBar.h.


Constructor & Destructor Documentation

CPotentialFieldViewerDlgBar::CPotentialFieldViewerDlgBar ( CWnd *  pParent = NULL  ) 

Definition at line 22 of file PotentialFieldViewerDlgBar.cpp.

References fieldViewType, m_hGLContext, maxX, maxY, minX, minY, TeamMessageCollection::numberOfTeamMessages, POTENTIAL, potentialfields, somethingLoaded, stepsX, stepsY, stepWidthX, stepWidthY, and teamMessageCollection.


Member Function Documentation

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

Definition at line 65 of file PotentialFieldViewerDlgBar.cpp.

References IDC_POTENTIALFIELD_OPEN, IDC_POTENTIALFIELD_SELECTOR, IDC_POTENTIALFIELD_SWITCH, m_fieldChooser, m_openButton, and m_viewSelector.

void CPotentialFieldViewerDlgBar::drawField (  )  [protected]

Definition at line 214 of file PotentialFieldViewerDlgBar.cpp.

References ballPosition, dirX, dirY, fieldViewType, PlayerPoseCollection::getOpponentPlayerPose(), PlayerPoseCollection::getOwnPlayerPose(), getPlayer(), PlayerPose::getPose(), maximum, maxX, maxY, minX, minY, PlayerPoseCollection::numberOfOpponentPlayers, playerPoseCollection, POTENTIAL, Player::red, robotPose, PfVec::rotate(), Pose2D::rotation, BallModel::seen, stepsX, stepsY, stepWidthX, stepWidthY, Pose2D::translation, value, VECTORS, Vector2< V >::x, PfVec::x, Vector2< V >::y, and PfVec::y.

Referenced by OnPaint().

void CPotentialFieldViewerDlgBar::getValues (  )  [protected]

Definition at line 362 of file PotentialFieldViewerDlgBar.cpp.

References ballPosition, dirX, dirY, GTStandardConverter::getDirectionArray(), GTStandardConverter::getValueArray(), m_fieldChooser, maximum, maxX, maxY, minX, minY, obstaclesModel, playerPoseCollection, potentialfields, robotPose, stepsX, stepsY, teamMessageCollection, value, and PfVec::y.

Referenced by OnPotentialfieldViewerOpenButton(), and OnSelchangePotentialfieldViewerFieldChooser().

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

Is called for incoming debug messages.

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

Reimplemented from CRobotControlDialogBar.

Definition at line 89 of file PotentialFieldViewerDlgBar.cpp.

References FALSE, idWorldState, and RECEIVE_WORLDSTATE.

void CPotentialFieldViewerDlgBar::initView (  )  [protected]

Definition at line 382 of file PotentialFieldViewerDlgBar.cpp.

References fromDegrees(), maxX, minX, and viewDistance.

Referenced by OnInitDialog(), and OnPaint().

int CPotentialFieldViewerDlgBar::OnCreate ( LPCREATESTRUCT  lpCreateStruct  )  [protected]

Definition at line 126 of file PotentialFieldViewerDlgBar.cpp.

void CPotentialFieldViewerDlgBar::OnDestroy (  )  [protected]

Reimplemented from CDynamicDialog.

Definition at line 136 of file PotentialFieldViewerDlgBar.cpp.

References m_fieldChooser, m_hGLContext, CDynamicDialog::OnDestroy(), potentialfields, and somethingLoaded.

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

Reimplemented from CDynamicDialog.

Definition at line 43 of file PotentialFieldViewerDlgBar.cpp.

References CDynamicWnd::AddSzControl(), OpenGLMethods::createViewGLContext(), initView(), m_fieldChooser, m_hGLContext, m_openButton, m_openGLDC, m_viewSelector, CDynamicWnd::mdRepos, CDynamicDialog::OnInitDialog(), OpenGLMethods::setWindowPixelFormat(), and TRUE.

void CPotentialFieldViewerDlgBar::OnPaint (  )  [protected]

Definition at line 110 of file PotentialFieldViewerDlgBar.cpp.

References drawField(), initView(), m_hGLContext, m_openGLDC, and somethingLoaded.

void CPotentialFieldViewerDlgBar::OnPotentialfieldViewerOpenButton (  )  [protected]

Definition at line 154 of file PotentialFieldViewerDlgBar.cpp.

References FALSE, GTStandardConverter::getFieldNames(), getValues(), GTStandardConverter::load(), m_fieldChooser, potentialfields, and somethingLoaded.

void CPotentialFieldViewerDlgBar::OnPotentialfieldViewerSwitchButton (  )  [protected]

Definition at line 193 of file PotentialFieldViewerDlgBar.cpp.

References FALSE, fieldViewType, POTENTIAL, and VECTORS.

void CPotentialFieldViewerDlgBar::OnSelchangePotentialfieldViewerFieldChooser (  )  [protected]

Definition at line 207 of file PotentialFieldViewerDlgBar.cpp.

References FALSE, and getValues().


Member Data Documentation

BallModel CPotentialFieldViewerDlgBar::ballPosition [protected]

Definition at line 72 of file PotentialFieldViewerDlgBar.h.

Referenced by drawField(), and getValues().

double CPotentialFieldViewerDlgBar::dirX[3200] [protected]

Definition at line 67 of file PotentialFieldViewerDlgBar.h.

Referenced by drawField(), and getValues().

double CPotentialFieldViewerDlgBar::dirY[3200] [protected]

Definition at line 68 of file PotentialFieldViewerDlgBar.h.

Referenced by drawField(), and getValues().

enum CPotentialFieldViewerDlgBar::FieldViewType CPotentialFieldViewerDlgBar::fieldViewType [protected]

Referenced by CPotentialFieldViewerDlgBar(), drawField(), and OnPotentialfieldViewerSwitchButton().

CComboBox CPotentialFieldViewerDlgBar::m_fieldChooser

Definition at line 33 of file PotentialFieldViewerDlgBar.h.

Referenced by DoDataExchange(), getValues(), OnDestroy(), OnInitDialog(), and OnPotentialfieldViewerOpenButton().

CStatic CPotentialFieldViewerDlgBar::m_fieldDisplay

Definition at line 32 of file PotentialFieldViewerDlgBar.h.

HGLRC CPotentialFieldViewerDlgBar::m_hGLContext [protected]

Definition at line 59 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), OnDestroy(), OnInitDialog(), and OnPaint().

CButton CPotentialFieldViewerDlgBar::m_openButton

Definition at line 35 of file PotentialFieldViewerDlgBar.h.

Referenced by DoDataExchange(), and OnInitDialog().

HDC CPotentialFieldViewerDlgBar::m_openGLDC [protected]

Definition at line 60 of file PotentialFieldViewerDlgBar.h.

Referenced by OnInitDialog(), and OnPaint().

CButton CPotentialFieldViewerDlgBar::m_viewSelector

Definition at line 34 of file PotentialFieldViewerDlgBar.h.

Referenced by DoDataExchange(), and OnInitDialog().

double CPotentialFieldViewerDlgBar::maximum [protected]

Definition at line 64 of file PotentialFieldViewerDlgBar.h.

Referenced by drawField(), and getValues().

double CPotentialFieldViewerDlgBar::maxX [protected]

Definition at line 63 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), drawField(), getValues(), and initView().

double CPotentialFieldViewerDlgBar::maxY [protected]

Definition at line 63 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), drawField(), and getValues().

double CPotentialFieldViewerDlgBar::minX [protected]

Definition at line 63 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), drawField(), getValues(), and initView().

double CPotentialFieldViewerDlgBar::minY [protected]

Definition at line 63 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), drawField(), and getValues().

ObstaclesModel CPotentialFieldViewerDlgBar::obstaclesModel [protected]

Definition at line 74 of file PotentialFieldViewerDlgBar.h.

Referenced by getValues().

PlayerPoseCollection CPotentialFieldViewerDlgBar::playerPoseCollection [protected]

Definition at line 73 of file PotentialFieldViewerDlgBar.h.

Referenced by drawField(), and getValues().

GTStandardConverter* CPotentialFieldViewerDlgBar::potentialfields [protected]

Definition at line 75 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), getValues(), OnDestroy(), and OnPotentialfieldViewerOpenButton().

RobotPose CPotentialFieldViewerDlgBar::robotPose [protected]

Definition at line 71 of file PotentialFieldViewerDlgBar.h.

Referenced by drawField(), and getValues().

bool CPotentialFieldViewerDlgBar::somethingLoaded [protected]

Definition at line 69 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), OnDestroy(), OnPaint(), and OnPotentialfieldViewerOpenButton().

int CPotentialFieldViewerDlgBar::stepsX [protected]

Definition at line 62 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), drawField(), and getValues().

int CPotentialFieldViewerDlgBar::stepsY [protected]

Definition at line 62 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), drawField(), and getValues().

double CPotentialFieldViewerDlgBar::stepWidthX [protected]

Definition at line 64 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), and drawField().

double CPotentialFieldViewerDlgBar::stepWidthY [protected]

Definition at line 64 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), and drawField().

TeamMessageCollection CPotentialFieldViewerDlgBar::teamMessageCollection [protected]

Definition at line 76 of file PotentialFieldViewerDlgBar.h.

Referenced by CPotentialFieldViewerDlgBar(), and getValues().

double CPotentialFieldViewerDlgBar::value[3200] [protected]

Definition at line 66 of file PotentialFieldViewerDlgBar.h.

Referenced by drawField(), and getValues().

double CPotentialFieldViewerDlgBar::viewDistance [protected]

Definition at line 65 of file PotentialFieldViewerDlgBar.h.

Referenced by initView().


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