#include <ColorSpaceDlgBar.h>
Inheritance diagram for CColorSpaceDlgBar:
Public Types | |
IDD = IDD_DIALOG_BAR_COLOR_SPACE | |
enum | { IDD = IDD_DIALOG_BAR_COLOR_SPACE } |
Public Member Functions | |
CColorSpaceDlgBar () | |
virtual bool | handleMessage (InMessage &message) |
void | renderScene () |
Public Attributes | |
HDC | m_hDC |
CStatic | m_static4 |
CStatic | m_static3 |
CStatic | m_static2 |
CStatic | m_static1 |
CSliderCtrl | m_slider4 |
CSliderCtrl | m_slider3 |
CSliderCtrl | m_slider2 |
CSliderCtrl | m_slider1 |
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 | OnSize (UINT nType, int cx, int cy) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg void | OnContextMenu (CWnd *pWnd, CPoint point) |
afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
DECLARE_MESSAGE_MAP () | |
Private Types | |
yuv | |
rgb | |
tsl | |
hsi | |
yuvUsage | |
yUsage | |
uUsage | |
vUsage | |
pixels | |
polygons | |
nothing | |
gray | |
white | |
enum | ColorModel { yuv, rgb, tsl, hsi } |
enum | Selection { yuvUsage, yUsage, uUsage, vUsage } |
enum | DisplayMode { pixels, polygons, nothing } |
enum | BackGroundColor { gray, white } |
Private Member Functions | |
void | setSliders () |
void | paintColorTable () |
void | paintBoundingCube () |
virtual void | OnConfigurationLoad (CString sectionName) |
virtual void | OnConfigurationSave (CString sectionName) |
Private Attributes | |
Image | image |
CPoint | m_LeftDownPos |
BOOL | m_LeftButtonDown |
double | m_xRotate |
double | m_yRotate |
double | m_zRotate |
HGLRC | m_hGLContext |
enum CColorSpaceDlgBar::ColorModel | colorModel |
enum CColorSpaceDlgBar::Selection | selection |
enum CColorSpaceDlgBar::DisplayMode | displayMode |
enum CColorSpaceDlgBar::BackGroundColor | backGroundColor |
bool | paintFullCube |
bool | showColorTable |
bool | showColorTableCuboids |
bool | showColorTableReferenceColor |
bool | initialized |
int | y1 |
int | width_y |
int | x1 |
int | width_x |
ColorTable64 | colorTable64 |
ColorTableCuboids | colorTableCuboids |
ColorTableReferenceColor | colorTableReferenceColor |
Definition at line 24 of file ColorSpaceDlgBar.h.
anonymous enum |
enum CColorSpaceDlgBar::BackGroundColor [private] |
enum CColorSpaceDlgBar::ColorModel [private] |
stores the current display mode
Definition at line 112 of file ColorSpaceDlgBar.h.
enum CColorSpaceDlgBar::DisplayMode [private] |
enum CColorSpaceDlgBar::Selection [private] |
CColorSpaceDlgBar::CColorSpaceDlgBar | ( | ) |
Definition at line 21 of file ColorSpaceDlgBar.cpp.
CColorSpaceDlgBar::DECLARE_MESSAGE_MAP | ( | ) | [protected] |
Reimplemented from CDynamicBarDlg.
void CColorSpaceDlgBar::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 45 of file ColorSpaceDlgBar.cpp.
References IDC_CSPACE_SLIDER1, IDC_CSPACE_SLIDER2, IDC_CSPACE_SLIDER3, IDC_CSPACE_SLIDER4, IDC_CSPACE_STATIC1, IDC_CSPACE_STATIC2, IDC_CSPACE_STATIC3, IDC_CSPACE_STATIC4, m_slider1, m_slider2, m_slider3, m_slider4, m_static1, m_static2, m_static3, and m_static4.
bool CColorSpaceDlgBar::handleMessage | ( | InMessage & | message | ) | [virtual] |
Called from a MessageQueue to distribute messages
message | The message that can be read. |
Reimplemented from CRobotControlDialogBar.
Definition at line 261 of file ColorSpaceDlgBar.cpp.
References InMessage::bin, Image::cameraInfo, cameraResolutionHeight_ERS210, cameraResolutionHeight_ERS7, cameraResolutionWidth_ERS210, cameraResolutionWidth_ERS7, colorModel, OpenGLMethods::colorSpacePixelList, colorTable64, colorTableCuboids, colorTableReferenceColor, displayMode, FALSE, InMessage::getMessageID(), idColorTable64, idColorTableCuboids, idColorTableReferenceColor, idImage, idJPEGImage, image, m_hDC, m_hGLContext, m_slider1, m_slider2, m_slider3, m_slider4, paintBoundingCube(), paintColorTable(), OpenGLMethods::paintImagePixelsToOpenGLList(), polygons, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, selection, setSliders(), width_x, width_y, x1, and y1.
void CColorSpaceDlgBar::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.
sectionName | The registry section for the current configuration |
Reimplemented from CRobotControlDialogBar.
Definition at line 615 of file ColorSpaceDlgBar.cpp.
References backGroundColor, colorModel, displayMode, m_hDC, m_hGLContext, m_xRotate, m_yRotate, m_zRotate, paintBoundingCube(), paintFullCube, selection, setSliders(), showColorTable, showColorTableCuboids, and showColorTableReferenceColor.
void CColorSpaceDlgBar::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.
sectionName | The registry section for the current configuration |
Reimplemented from CRobotControlDialogBar.
Definition at line 643 of file ColorSpaceDlgBar.cpp.
References backGroundColor, colorModel, displayMode, m_xRotate, m_yRotate, m_zRotate, paintFullCube, selection, showColorTable, showColorTableCuboids, showColorTableReferenceColor, width_x, width_y, x1, and y1.
void CColorSpaceDlgBar::OnContextMenu | ( | CWnd * | pWnd, | |
CPoint | point | |||
) | [protected] |
Definition at line 368 of file ColorSpaceDlgBar.cpp.
References DebugKey::always, backGroundColor, colorModel, OpenGLMethods::colorSpacePixelList, DebugKey::disabled, displayMode, CRobotControlDebugKeyTables::forPhysicalRobots, CRobotControlDebugKeyTables::forSimulatedRobots, getDebugKeyTables(), gray, hsi, image, m_hDC, m_hGLContext, nothing, paintBoundingCube(), paintColorTable(), paintFullCube, OpenGLMethods::paintImagePixelsToOpenGLList(), pixels, polygons, rgb, selection, DebugKeyTable::sendColorTable64, DebugKeyTable::sendColorTableCuboids, DebugKeyTable::sendColorTableReferenceColor, CRobotControlDebugKeyTables::sendForPhysicalRobots(), CRobotControlDebugKeyTables::sendForSimulatedRobots(), DebugKeyTable::set(), showColorTable, showColorTableCuboids, showColorTableReferenceColor, tsl, uUsage, VERIFY, vUsage, white, width_x, width_y, x1, y1, yUsage, yuv, and yuvUsage.
int CColorSpaceDlgBar::OnCreate | ( | LPCREATESTRUCT | lpCreateStruct | ) | [protected] |
Definition at line 114 of file ColorSpaceDlgBar.cpp.
References OpenGLMethods::createViewGLContext(), displayMode, m_hDC, m_hGLContext, paintBoundingCube(), pixels, selection, OpenGLMethods::setWindowPixelFormat(), and yuvUsage.
void CColorSpaceDlgBar::OnDestroy | ( | ) | [protected] |
Reimplemented from CDynamicDialog.
Definition at line 144 of file ColorSpaceDlgBar.cpp.
References m_hGLContext, and CDynamicDialog::OnDestroy().
void CColorSpaceDlgBar::OnHScroll | ( | UINT | nSBCode, | |
UINT | nPos, | |||
CScrollBar * | pScrollBar | |||
) | [protected] |
Definition at line 550 of file ColorSpaceDlgBar.cpp.
References Image::cameraInfo, colorModel, OpenGLMethods::colorSpacePixelList, displayMode, FALSE, image, m_hDC, m_hGLContext, m_slider1, m_slider2, m_slider3, m_slider4, OpenGLMethods::paintImagePixelsToOpenGLList(), polygons, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, selection, setSliders(), width_x, width_y, x1, and y1.
BOOL CColorSpaceDlgBar::OnInitDialog | ( | ) | [protected, virtual] |
Reimplemented from CDynamicDialog.
Definition at line 78 of file ColorSpaceDlgBar.cpp.
References image, CDynamicDialog::OnInitDialog(), and TRUE.
void CColorSpaceDlgBar::OnLButtonDown | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 231 of file ColorSpaceDlgBar.cpp.
References m_LeftButtonDown, m_LeftDownPos, and TRUE.
void CColorSpaceDlgBar::OnLButtonUp | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
void CColorSpaceDlgBar::OnMouseMove | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 246 of file ColorSpaceDlgBar.cpp.
References FALSE, m_LeftButtonDown, m_LeftDownPos, m_xRotate, and m_zRotate.
void CColorSpaceDlgBar::OnPaint | ( | ) | [protected] |
Definition at line 91 of file ColorSpaceDlgBar.cpp.
References colorModel, OpenGLMethods::colorSpacePixelList, displayMode, image, initialized, m_hDC, m_hGLContext, paintColorTable(), OpenGLMethods::paintImagePixelsToOpenGLList(), polygons, renderScene(), selection, width_x, width_y, x1, and y1.
void CColorSpaceDlgBar::OnSize | ( | UINT | nType, | |
int | cx, | |||
int | cy | |||
) | [protected] |
Reimplemented from CDynamicDialog.
Definition at line 159 of file ColorSpaceDlgBar.cpp.
References FALSE, m_hDC, m_hGLContext, and CDynamicDialog::OnSize().
void CColorSpaceDlgBar::paintBoundingCube | ( | ) | [private] |
Definition at line 590 of file ColorSpaceDlgBar.cpp.
References Image::cameraInfo, OpenGLMethods::colorSpaceCubeList, image, OpenGLMethods::paintCubeToOpenGLList(), paintFullCube, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, selection, and yuvUsage.
Referenced by handleMessage(), OnConfigurationLoad(), OnContextMenu(), and OnCreate().
void CColorSpaceDlgBar::paintColorTable | ( | ) | [private] |
Definition at line 345 of file ColorSpaceDlgBar.cpp.
References OpenGLMethods::colorSpaceColorTableCuboidsList, OpenGLMethods::colorSpaceColorTableList, OpenGLMethods::colorSpaceColorTableReferenceColorList, colorTable64, colorTableCuboids, colorTableReferenceColor, OpenGLMethods::paintColorTable(), OpenGLMethods::paintColorTableCuboids(), OpenGLMethods::paintColorTableReferenceColor(), selection, showColorTable, showColorTableCuboids, showColorTableReferenceColor, and yuvUsage.
Referenced by handleMessage(), OnContextMenu(), and OnPaint().
void CColorSpaceDlgBar::renderScene | ( | ) |
renders the scene with the current rotation parameters
Definition at line 192 of file ColorSpaceDlgBar.cpp.
References backGroundColor, colorModel, OpenGLMethods::colorSpaceColorTableCuboidsList, OpenGLMethods::colorSpaceColorTableList, OpenGLMethods::colorSpaceColorTableReferenceColorList, OpenGLMethods::colorSpaceCubeList, OpenGLMethods::colorSpacePixelList, displayMode, gray, m_xRotate, m_yRotate, m_zRotate, nothing, selection, showColorTable, showColorTableCuboids, showColorTableReferenceColor, white, yuv, and yuvUsage.
Referenced by OnPaint().
void CColorSpaceDlgBar::setSliders | ( | ) | [private] |
Definition at line 571 of file ColorSpaceDlgBar.cpp.
References m_slider1, m_slider2, m_slider3, m_slider4, m_static1, m_static2, m_static3, m_static4, width_x, width_y, x1, and y1.
Referenced by handleMessage(), OnConfigurationLoad(), and OnHScroll().
Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and renderScene().
enum CColorSpaceDlgBar::ColorModel CColorSpaceDlgBar::colorModel [private] |
stores the current display mode
Referenced by handleMessage(), OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), OnHScroll(), OnPaint(), and renderScene().
ColorTable64 CColorSpaceDlgBar::colorTable64 [private] |
Definition at line 129 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), and paintColorTable().
Definition at line 130 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), and paintColorTable().
Definition at line 131 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), and paintColorTable().
enum CColorSpaceDlgBar::DisplayMode CColorSpaceDlgBar::displayMode [private] |
Referenced by handleMessage(), OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), OnCreate(), OnHScroll(), OnPaint(), and renderScene().
Image CColorSpaceDlgBar::image [private] |
the image
Definition at line 98 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), OnContextMenu(), OnHScroll(), OnPaint(), and paintBoundingCube().
bool CColorSpaceDlgBar::initialized [private] |
Definition at line 39 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), OnConfigurationLoad(), OnContextMenu(), OnCreate(), OnHScroll(), OnPaint(), and OnSize().
HGLRC CColorSpaceDlgBar::m_hGLContext [private] |
Definition at line 109 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), OnConfigurationLoad(), OnContextMenu(), OnCreate(), OnDestroy(), OnHScroll(), OnPaint(), and OnSize().
BOOL CColorSpaceDlgBar::m_LeftButtonDown [private] |
Definition at line 102 of file ColorSpaceDlgBar.h.
Referenced by OnLButtonDown(), OnLButtonUp(), and OnMouseMove().
CPoint CColorSpaceDlgBar::m_LeftDownPos [private] |
Definition at line 101 of file ColorSpaceDlgBar.h.
Referenced by OnLButtonDown(), and OnMouseMove().
CSliderCtrl CColorSpaceDlgBar::m_slider1 |
Definition at line 51 of file ColorSpaceDlgBar.h.
Referenced by DoDataExchange(), handleMessage(), OnHScroll(), and setSliders().
CSliderCtrl CColorSpaceDlgBar::m_slider2 |
Definition at line 50 of file ColorSpaceDlgBar.h.
Referenced by DoDataExchange(), handleMessage(), OnHScroll(), and setSliders().
CSliderCtrl CColorSpaceDlgBar::m_slider3 |
Definition at line 49 of file ColorSpaceDlgBar.h.
Referenced by DoDataExchange(), handleMessage(), OnHScroll(), and setSliders().
CSliderCtrl CColorSpaceDlgBar::m_slider4 |
Definition at line 48 of file ColorSpaceDlgBar.h.
Referenced by DoDataExchange(), handleMessage(), OnHScroll(), and setSliders().
CStatic CColorSpaceDlgBar::m_static1 |
CStatic CColorSpaceDlgBar::m_static2 |
CStatic CColorSpaceDlgBar::m_static3 |
CStatic CColorSpaceDlgBar::m_static4 |
double CColorSpaceDlgBar::m_xRotate [private] |
Definition at line 105 of file ColorSpaceDlgBar.h.
Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnMouseMove(), and renderScene().
double CColorSpaceDlgBar::m_yRotate [private] |
Definition at line 106 of file ColorSpaceDlgBar.h.
Referenced by OnConfigurationLoad(), OnConfigurationSave(), and renderScene().
double CColorSpaceDlgBar::m_zRotate [private] |
Definition at line 107 of file ColorSpaceDlgBar.h.
Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnMouseMove(), and renderScene().
bool CColorSpaceDlgBar::paintFullCube [private] |
Definition at line 117 of file ColorSpaceDlgBar.h.
Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), and paintBoundingCube().
enum CColorSpaceDlgBar::Selection CColorSpaceDlgBar::selection [private] |
bool CColorSpaceDlgBar::showColorTable [private] |
Definition at line 118 of file ColorSpaceDlgBar.h.
Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), paintColorTable(), and renderScene().
bool CColorSpaceDlgBar::showColorTableCuboids [private] |
Definition at line 119 of file ColorSpaceDlgBar.h.
Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), paintColorTable(), and renderScene().
bool CColorSpaceDlgBar::showColorTableReferenceColor [private] |
Definition at line 120 of file ColorSpaceDlgBar.h.
Referenced by OnConfigurationLoad(), OnConfigurationSave(), OnContextMenu(), paintColorTable(), and renderScene().
int CColorSpaceDlgBar::width_x [private] |
Definition at line 127 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), OnConfigurationSave(), OnContextMenu(), OnHScroll(), OnPaint(), and setSliders().
int CColorSpaceDlgBar::width_y [private] |
Definition at line 125 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), OnConfigurationSave(), OnContextMenu(), OnHScroll(), OnPaint(), and setSliders().
int CColorSpaceDlgBar::x1 [private] |
Definition at line 126 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), OnConfigurationSave(), OnContextMenu(), OnHScroll(), OnPaint(), and setSliders().
int CColorSpaceDlgBar::y1 [private] |
Definition at line 124 of file ColorSpaceDlgBar.h.
Referenced by handleMessage(), OnConfigurationSave(), OnContextMenu(), OnHScroll(), OnPaint(), and setSliders().