#include <CameraParametersToolBar.h>
Inheritance diagram for CCameraParametersToolBar:
Public Member Functions | |
virtual void | Init () |
virtual bool | handleCommand (UINT command) |
virtual bool | handleSelChange (UINT nID) |
Protected Member Functions | |
void | send () |
virtual bool | HasButtonText (UINT nID) |
Private Member Functions | |
DECLARE_DYNAMIC (CCameraParametersToolBar) | |
Private Attributes | |
CameraParameters | cameraParameters |
CComboBox | m_wndWhiteBalanceCombo |
CComboBox | m_wndShutterSpeedCombo |
CComboBox | m_wndGainCombo |
CStatic | label1 |
CStatic | label2 |
CStatic | label3 |
Definition at line 21 of file CameraParametersToolBar.h.
CCameraParametersToolBar::DECLARE_DYNAMIC | ( | CCameraParametersToolBar | ) | [private] |
bool CCameraParametersToolBar::handleCommand | ( | UINT | command | ) | [virtual] |
Handles control notifications which arrived in the main frame
command | The id of the control, menu, accelerator etc. |
Reimplemented from CRobotControlToolBar.
Definition at line 102 of file CameraParametersToolBar.cpp.
References OutMessage::bin, cameraParameters, OutFile::exists(), OutMessage::finishMessage(), getLocation(), getQueues(), IDC_CAMERA_SAVE, IDC_CAMERA_SEND_TO_ROBOT, idCameraParameters, MessageQueue::out, CRobotControlQueuesToRobots::selectedRobot, and CRobotControlQueues::toPhysical.
bool CCameraParametersToolBar::handleSelChange | ( | UINT | nID | ) | [virtual] |
Handles selection change events for combo boxes. That function must be called from the main frame window for all combo boxes of the toolbar.
nID | the command id of the combo box |
Reimplemented from CRobotControlToolBar.
Definition at line 77 of file CameraParametersToolBar.cpp.
References IDC_CAMERA_GAIN, IDC_CAMERA_SHUTTER_SPEED, IDC_CAMERA_WHITE_BALANCE, and send().
bool CCameraParametersToolBar::HasButtonText | ( | UINT | nID | ) | [protected, virtual] |
Determines if the buttons have a text
Reimplemented from CRobotControlToolBar.
Definition at line 59 of file CameraParametersToolBar.cpp.
References IDC_CAMERA_GAIN, IDC_CAMERA_LABEL_GAIN, IDC_CAMERA_LABEL_MODE, IDC_CAMERA_LABEL_SHUTTER, IDC_CAMERA_SAVE, IDC_CAMERA_SEND_TO_ROBOT, IDC_CAMERA_SHUTTER_SPEED, and IDC_CAMERA_WHITE_BALANCE.
void CCameraParametersToolBar::Init | ( | ) | [virtual] |
Initializes the tool bar
Implements CRobotControlToolBar.
Definition at line 18 of file CameraParametersToolBar.cpp.
References InFile::exists(), getLocation(), CameraParameters::getShortGainName(), CameraParameters::getShortShutterSpeedName(), CameraParameters::getShortWhiteBalanceName(), IDB_CAMERAPARAMETERS, IDB_CAMERAPARAMETERS_COLD, IDC_CAMERA_GAIN, IDC_CAMERA_LABEL_GAIN, IDC_CAMERA_LABEL_MODE, IDC_CAMERA_LABEL_SHUTTER, IDC_CAMERA_SAVE, IDC_CAMERA_SEND_TO_ROBOT, IDC_CAMERA_SHUTTER_SPEED, and IDC_CAMERA_WHITE_BALANCE.
void CCameraParametersToolBar::send | ( | ) | [protected] |
Sends the parameters
Definition at line 92 of file CameraParametersToolBar.cpp.
References OutMessage::bin, cameraParameters, OutMessage::finishMessage(), getQueues(), idCameraParameters, m_wndGainCombo, m_wndShutterSpeedCombo, m_wndWhiteBalanceCombo, MessageQueue::out, CRobotControlQueuesToRobots::selectedRobot, CameraParameters::theGain, CameraParameters::theShutterSpeed, CameraParameters::theWhiteBalance, and CRobotControlQueues::toPhysical.
Referenced by handleSelChange().
The edited CameraParameters
Definition at line 52 of file CameraParametersToolBar.h.
Referenced by handleCommand(), and send().
CStatic CCameraParametersToolBar::label1 [private] |
Definition at line 63 of file CameraParametersToolBar.h.
CStatic CCameraParametersToolBar::label2 [private] |
Definition at line 63 of file CameraParametersToolBar.h.
CStatic CCameraParametersToolBar::label3 [private] |
Definition at line 63 of file CameraParametersToolBar.h.
CComboBox CCameraParametersToolBar::m_wndGainCombo [private] |
CComboBox CCameraParametersToolBar::m_wndShutterSpeedCombo [private] |
A combo for the shutter speed
Definition at line 58 of file CameraParametersToolBar.h.
Referenced by send().
CComboBox CCameraParametersToolBar::m_wndWhiteBalanceCombo [private] |
A combo for the white balance
Definition at line 55 of file CameraParametersToolBar.h.
Referenced by send().