CHSIColorTableToolDlgBar Class Reference

#include <HSIColorTableToolDlgBar.h>

Inheritance diagram for CHSIColorTableToolDlgBar:

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

Public Types

 IDD = IDD_DIALOG_BAR_HSICOLORTABLETOOL
enum  { IDD = IDD_DIALOG_BAR_HSICOLORTABLETOOL }

Public Member Functions

void setSlidersForColorClass (int colorClass)
virtual bool handleMessage (InMessage &message)
void captureImageInPlace (int index)
 CHSIColorTableToolDlgBar ()

Public Attributes

HSIColorTableToolZoomDlg m_hsiToolZoomDialog
int m_imageWidth
int m_imageHeight
Image m_rawYUVImage
HSIColorTableToolCore m_hsiToolCore
int m_choosenColor
CPoint m_segmentedImagePlace [4]
CPoint m_rgbImagePlace [4]
CButton m_captureButton1
CButton m_updateImageFromQueue
CComboBox m_hsiColorChooser
CEdit m_IminValue
CEdit m_ImaxValue
CEdit m_SminValue
CEdit m_SmaxValue
CEdit m_HminValue
CEdit m_HmaxValue
CSliderCtrl m_IminSlider
CSliderCtrl m_ImaxSlider
CSliderCtrl m_SminSlider
CSliderCtrl m_SmaxSlider
CSliderCtrl m_HminSlider
CSliderCtrl m_HmaxSlider
CStatic m_HPaletteBitmapFrame

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
afx_msg void OnPaint ()
afx_msg void OnHsicolortabletoolLoadcolortableButton ()
afx_msg void OnHsicolortabletoolSavecolortableButton ()
afx_msg void OnHsicolortabletoolCaptureButton1 ()
afx_msg void OnHsicolortabletoolCaptureButton2 ()
afx_msg void OnHsicolortabletoolCaptureButton3 ()
afx_msg void OnHsicolortabletoolCaptureButton4 ()
afx_msg void OnSelchangeHsicolortabletoolColorchooser ()
afx_msg void OnHsicolortabletoolUpdateCheck ()
afx_msg void OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
 DECLARE_MESSAGE_MAP ()

Detailed Description

A dialog bar for easy creating HSI colortables.
Author:
Kai Spiess

Definition at line 21 of file HSIColorTableToolDlgBar.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IDD 

Definition at line 60 of file HSIColorTableToolDlgBar.h.


Constructor & Destructor Documentation

CHSIColorTableToolDlgBar::CHSIColorTableToolDlgBar (  ) 

Constructor

Definition at line 13 of file HSIColorTableToolDlgBar.cpp.


Member Function Documentation

void CHSIColorTableToolDlgBar::captureImageInPlace ( int  index  ) 

Stores the actual image from the queue to the specified place in the toolcore.

Parameters:
index The index of the place in the toolcore.

Definition at line 278 of file HSIColorTableToolDlgBar.cpp.

References m_hsiToolCore, and HSIColorTableToolCore::setImageToPlace().

Referenced by OnHsicolortabletoolCaptureButton1(), OnHsicolortabletoolCaptureButton2(), OnHsicolortabletoolCaptureButton3(), and OnHsicolortabletoolCaptureButton4().

CHSIColorTableToolDlgBar::DECLARE_MESSAGE_MAP (  )  [protected]

Reimplemented from CDynamicBarDlg.

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

Definition at line 21 of file HSIColorTableToolDlgBar.cpp.

References IDC_HSICOLORTABLETOOL_CAPTURE_BUTTON1, IDC_HSICOLORTABLETOOL_COLORCHOOSER, IDC_HSICOLORTABLETOOL_HMAX_SLIDER, IDC_HSICOLORTABLETOOL_HMAX_VALUE, IDC_HSICOLORTABLETOOL_HMIN_SLIDER, IDC_HSICOLORTABLETOOL_HMIN_VALUE, IDC_HSICOLORTABLETOOL_HPALETTE_BITMAP_STATIC, IDC_HSICOLORTABLETOOL_IMAX_SLIDER, IDC_HSICOLORTABLETOOL_IMAX_VALUE, IDC_HSICOLORTABLETOOL_IMIN_SLIDER, IDC_HSICOLORTABLETOOL_IMIN_VALUE, IDC_HSICOLORTABLETOOL_SMAX_SLIDER, IDC_HSICOLORTABLETOOL_SMAX_VALUE, IDC_HSICOLORTABLETOOL_SMIN_SLIDER, IDC_HSICOLORTABLETOOL_SMIN_VALUE, IDC_HSICOLORTABLETOOL_UPDATE_CHECK, m_captureButton1, m_HmaxSlider, m_HmaxValue, m_HminSlider, m_HminValue, m_HPaletteBitmapFrame, m_hsiColorChooser, m_ImaxSlider, m_ImaxValue, m_IminSlider, m_IminValue, m_SmaxSlider, m_SmaxValue, m_SminSlider, m_SminValue, and m_updateImageFromQueue.

bool CHSIColorTableToolDlgBar::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 285 of file HSIColorTableToolDlgBar.cpp.

References InMessage::bin, InMessage::getMessageID(), idImage, and m_rawYUVImage.

void CHSIColorTableToolDlgBar::OnHScroll ( UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar 
) [protected]

Definition at line 227 of file HSIColorTableToolDlgBar.cpp.

References HSIColorTable::colorClasses, HSIColorTableToolCore::doImageSegmentation(), HSIColorRange::H_min, HSIColorTableToolCore::hsiColorTable, HSIColorRange::I_max, HSIColorRange::I_min, IDC_HSICOLORTABLETOOL_HMAX_SLIDER, IDC_HSICOLORTABLETOOL_HMIN_SLIDER, IDC_HSICOLORTABLETOOL_IMAX_SLIDER, IDC_HSICOLORTABLETOOL_IMIN_SLIDER, IDC_HSICOLORTABLETOOL_SMAX_SLIDER, IDC_HSICOLORTABLETOOL_SMIN_SLIDER, m_choosenColor, m_HmaxSlider, m_HmaxValue, m_HminSlider, m_HminValue, m_hsiToolCore, m_ImaxSlider, m_ImaxValue, m_IminSlider, m_IminValue, m_SmaxSlider, m_SmaxValue, m_SminSlider, m_SminValue, HSIColorRange::S_max, and HSIColorRange::S_min.

void CHSIColorTableToolDlgBar::OnHsicolortabletoolCaptureButton1 (  )  [protected]

Definition at line 181 of file HSIColorTableToolDlgBar.cpp.

References captureImageInPlace().

void CHSIColorTableToolDlgBar::OnHsicolortabletoolCaptureButton2 (  )  [protected]

Definition at line 186 of file HSIColorTableToolDlgBar.cpp.

References captureImageInPlace().

void CHSIColorTableToolDlgBar::OnHsicolortabletoolCaptureButton3 (  )  [protected]

Definition at line 191 of file HSIColorTableToolDlgBar.cpp.

References captureImageInPlace().

void CHSIColorTableToolDlgBar::OnHsicolortabletoolCaptureButton4 (  )  [protected]

Definition at line 196 of file HSIColorTableToolDlgBar.cpp.

References captureImageInPlace().

void CHSIColorTableToolDlgBar::OnHsicolortabletoolLoadcolortableButton (  )  [protected]

Definition at line 130 of file HSIColorTableToolDlgBar.cpp.

References HSIColorTableToolCore::doImageSegmentation(), File::getGTDir(), HSIColorTableToolCore::loadHSIColorTableFromFile(), m_choosenColor, m_hsiColorChooser, m_hsiToolCore, setSlidersForColorClass(), and TRUE.

void CHSIColorTableToolDlgBar::OnHsicolortabletoolSavecolortableButton (  )  [protected]

Definition at line 159 of file HSIColorTableToolDlgBar.cpp.

References FALSE, File::getGTDir(), m_hsiToolCore, and HSIColorTableToolCore::saveHSIColorTableToFile().

void CHSIColorTableToolDlgBar::OnHsicolortabletoolUpdateCheck (  )  [protected]

Definition at line 211 of file HSIColorTableToolDlgBar.cpp.

References m_captureButton1.

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

Reimplemented from CDynamicDialog.

Definition at line 62 of file HSIColorTableToolDlgBar.cpp.

References IDB_HSICOLORTABLETOOL_HPALETTE_BITMAP, CDynamicDialog::OnInitDialog(), and TRUE.

void CHSIColorTableToolDlgBar::OnLButtonDown ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 323 of file HSIColorTableToolDlgBar.cpp.

References IDD_DIALOG_HSICOLORTABLETOOL_ZOOM, HSIColorTableToolZoomDlg::m_colorChooser, m_hsiToolZoomDialog, HSIColorTableToolZoomDlg::m_indexOfZoomedImage, and HSIColorTableToolZoomDlg::setHSIToolCore().

void CHSIColorTableToolDlgBar::OnPaint (  )  [protected]

Definition at line 106 of file HSIColorTableToolDlgBar.cpp.

References HSIColorTableToolCore::NUMBER_OF_IMAGES, ImageMethods::paintColorClassImage2CDC(), and ImageMethods::paintImage2CDCAsYUV().

void CHSIColorTableToolDlgBar::OnSelchangeHsicolortabletoolColorchooser (  )  [protected]

Definition at line 205 of file HSIColorTableToolDlgBar.cpp.

References m_choosenColor, m_hsiColorChooser, and setSlidersForColorClass().

void CHSIColorTableToolDlgBar::setSlidersForColorClass ( int  colorClass  ) 

This sets the sliders and the value text in the dialog for the specified color class.

Parameters:
colorClass The color class.

Definition at line 298 of file HSIColorTableToolDlgBar.cpp.

References HSIColorTable::colorClasses, HSIColorRange::H_max, HSIColorRange::H_min, HSIColorTableToolCore::hsiColorTable, HSIColorRange::I_max, HSIColorRange::I_min, m_HmaxSlider, m_HmaxValue, m_HminSlider, m_HminValue, m_hsiToolCore, m_ImaxSlider, m_ImaxValue, m_IminSlider, m_IminValue, m_SmaxSlider, m_SmaxValue, m_SminSlider, m_SminValue, HSIColorRange::S_max, and HSIColorRange::S_min.

Referenced by OnHsicolortabletoolLoadcolortableButton(), and OnSelchangeHsicolortabletoolColorchooser().


Member Data Documentation

CButton CHSIColorTableToolDlgBar::m_captureButton1

Definition at line 61 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), and OnHsicolortabletoolUpdateCheck().

int CHSIColorTableToolDlgBar::m_choosenColor

The actual chosen color.

Definition at line 50 of file HSIColorTableToolDlgBar.h.

Referenced by OnHScroll(), OnHsicolortabletoolLoadcolortableButton(), and OnSelchangeHsicolortabletoolColorchooser().

CSliderCtrl CHSIColorTableToolDlgBar::m_HmaxSlider

Definition at line 75 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CEdit CHSIColorTableToolDlgBar::m_HmaxValue

Definition at line 69 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CSliderCtrl CHSIColorTableToolDlgBar::m_HminSlider

Definition at line 74 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CEdit CHSIColorTableToolDlgBar::m_HminValue

Definition at line 68 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CStatic CHSIColorTableToolDlgBar::m_HPaletteBitmapFrame

Definition at line 76 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange().

CComboBox CHSIColorTableToolDlgBar::m_hsiColorChooser

Definition at line 63 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHsicolortabletoolLoadcolortableButton(), and OnSelchangeHsicolortabletoolColorchooser().

HSIColorTableToolCore CHSIColorTableToolDlgBar::m_hsiToolCore

The HSI colortable toolcore for this dialog.

Definition at line 44 of file HSIColorTableToolDlgBar.h.

Referenced by captureImageInPlace(), OnHScroll(), OnHsicolortabletoolLoadcolortableButton(), OnHsicolortabletoolSavecolortableButton(), and setSlidersForColorClass().

HSIColorTableToolZoomDlg CHSIColorTableToolDlgBar::m_hsiToolZoomDialog

The zoom dialog of this tool.

Definition at line 25 of file HSIColorTableToolDlgBar.h.

Referenced by OnLButtonDown().

int CHSIColorTableToolDlgBar::m_imageHeight

The height of the painted rgb images.

Definition at line 29 of file HSIColorTableToolDlgBar.h.

int CHSIColorTableToolDlgBar::m_imageWidth

The width of the painted rgb images.

Definition at line 27 of file HSIColorTableToolDlgBar.h.

CSliderCtrl CHSIColorTableToolDlgBar::m_ImaxSlider

Definition at line 71 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CEdit CHSIColorTableToolDlgBar::m_ImaxValue

Definition at line 65 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CSliderCtrl CHSIColorTableToolDlgBar::m_IminSlider

Definition at line 70 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CEdit CHSIColorTableToolDlgBar::m_IminValue

Definition at line 64 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

Image CHSIColorTableToolDlgBar::m_rawYUVImage

Definition at line 42 of file HSIColorTableToolDlgBar.h.

Referenced by handleMessage().

CPoint CHSIColorTableToolDlgBar::m_rgbImagePlace[4]

The upper left corners where the RGB images should be painted.

Definition at line 54 of file HSIColorTableToolDlgBar.h.

CPoint CHSIColorTableToolDlgBar::m_segmentedImagePlace[4]

The upper left corners where the segmented images should be painted.

Definition at line 52 of file HSIColorTableToolDlgBar.h.

CSliderCtrl CHSIColorTableToolDlgBar::m_SmaxSlider

Definition at line 73 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CEdit CHSIColorTableToolDlgBar::m_SmaxValue

Definition at line 67 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CSliderCtrl CHSIColorTableToolDlgBar::m_SminSlider

Definition at line 72 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CEdit CHSIColorTableToolDlgBar::m_SminValue

Definition at line 66 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and setSlidersForColorClass().

CButton CHSIColorTableToolDlgBar::m_updateImageFromQueue

Definition at line 62 of file HSIColorTableToolDlgBar.h.

Referenced by DoDataExchange().


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