HSIColorTableToolZoomDlg Class Reference

#include <HSIColorTableToolZoomDlg.h>

List of all members.

Public Types

 IDD = IDD_DIALOG_HSICOLORTABLETOOL_ZOOM
enum  { IDD = IDD_DIALOG_HSICOLORTABLETOOL_ZOOM }

Public Member Functions

void editHSIColorRange (UINT nFlags, CPoint point, int editType)
void setHSIToolCore (HSIColorTableToolCore *hsiToolCore)
 HSIColorTableToolZoomDlg (CWnd *pParent=NULL)

Public Attributes

int m_choosenColor
HSIColorTableToolCorem_hsiToolCore
int m_sourceImageHeight
int m_sourceImageWidth
int m_zoomedImageHeight
int m_zoomedImageWidth
CPoint m_segmentedImagePlace
CPoint m_rgbImagePlace
int m_indexOfZoomedImage
CComboBox m_colorChooser
CButton m_undoButton

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
afx_msg void OnPaint ()
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnSelchangeHsicolortabletoolZoomColorchooser ()
virtual BOOL OnInitDialog ()
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnClose ()
afx_msg void OnHsicolortabletoolZoomUndoButton ()
 DECLARE_MESSAGE_MAP ()


Detailed Description

A dialog with a zoomes RGB- and the color classified image, where the range of a selected color class can be modified by selecting single pixels. The range will be enlarged or reduced depending on the pressed mouse button, so that the HSI color of the selected pixel lies inside/outside this range. It has a multiple undo function.

Author:
Kai Spiess

Definition at line 28 of file HSIColorTableToolZoomDlg.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IDD 

Definition at line 64 of file HSIColorTableToolZoomDlg.h.


Constructor & Destructor Documentation

HSIColorTableToolZoomDlg::HSIColorTableToolZoomDlg ( CWnd *  pParent = NULL  ) 

Default constructor

Definition at line 15 of file HSIColorTableToolZoomDlg.cpp.


Member Function Documentation

HSIColorTableToolZoomDlg::DECLARE_MESSAGE_MAP (  )  [protected]

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

Definition at line 23 of file HSIColorTableToolZoomDlg.cpp.

References IDC_HSICOLORTABLETOOL_ZOOM_COLORCHOOSER, IDC_HSICOLORTABLETOOL_ZOOM_UNDO_BUTTON, m_colorChooser, and m_undoButton.

void HSIColorTableToolZoomDlg::editHSIColorRange ( UINT  nFlags,
CPoint  point,
int  editType 
)

Edits an HSI color range for a selected pixel in the zoomed image.

Parameters:
nFlags The flags of the pressed mouse button.
point The point in the dialog where the mouse button has been pressed.
editType The type of modifiing the color range.

Definition at line 122 of file HSIColorTableToolZoomDlg.cpp.

References HSIColorTableToolCore::doImageSegmentation(), GROW, HSIColorTableToolCore::growHSIColorRange(), HSIColorTableToolCore::hsiImages, Image::image, m_colorChooser, m_hsiToolCore, m_rgbImagePlace, m_segmentedImagePlace, m_undoButton, m_zoomedImageHeight, SHRINK, and HSIColorTableToolCore::shrinkHSIColorRange().

Referenced by OnLButtonDown(), and OnRButtonDown().

void HSIColorTableToolZoomDlg::OnClose (  )  [protected]

Definition at line 115 of file HSIColorTableToolZoomDlg.cpp.

void HSIColorTableToolZoomDlg::OnHsicolortabletoolZoomUndoButton (  )  [protected]

Definition at line 172 of file HSIColorTableToolZoomDlg.cpp.

References m_hsiToolCore, m_undoButton, and HSIColorTableToolCore::undoEditHSIColorRange().

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

Definition at line 47 of file HSIColorTableToolZoomDlg.cpp.

References TRUE.

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

Definition at line 93 of file HSIColorTableToolZoomDlg.cpp.

References editHSIColorRange(), and GROW.

void HSIColorTableToolZoomDlg::OnPaint (  )  [protected]

Definition at line 68 of file HSIColorTableToolZoomDlg.cpp.

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

void HSIColorTableToolZoomDlg::OnRButtonDown ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 99 of file HSIColorTableToolZoomDlg.cpp.

References editHSIColorRange(), and SHRINK.

void HSIColorTableToolZoomDlg::OnSelchangeHsicolortabletoolZoomColorchooser (  )  [protected]

Definition at line 105 of file HSIColorTableToolZoomDlg.cpp.

References m_choosenColor, and m_colorChooser.

void HSIColorTableToolZoomDlg::setHSIToolCore ( HSIColorTableToolCore hsiToolCore  ) 

This sets the a pointer to the core of the HSI color table tool for this dialog.

Parameters:
hsiToolCore The pointer to cor of the HSI color table tool.

Definition at line 110 of file HSIColorTableToolZoomDlg.cpp.

References m_hsiToolCore.

Referenced by CHSIColorTableToolDlgBar::OnLButtonDown().


Member Data Documentation

int HSIColorTableToolZoomDlg::m_choosenColor

The color chooser for color classes.

Definition at line 43 of file HSIColorTableToolZoomDlg.h.

Referenced by OnSelchangeHsicolortabletoolZoomColorchooser().

CComboBox HSIColorTableToolZoomDlg::m_colorChooser

Definition at line 65 of file HSIColorTableToolZoomDlg.h.

Referenced by DoDataExchange(), editHSIColorRange(), CHSIColorTableToolDlgBar::OnLButtonDown(), and OnSelchangeHsicolortabletoolZoomColorchooser().

HSIColorTableToolCore* HSIColorTableToolZoomDlg::m_hsiToolCore

The pointer to the cor of the HSI color table tool.

Definition at line 45 of file HSIColorTableToolZoomDlg.h.

Referenced by editHSIColorRange(), OnHsicolortabletoolZoomUndoButton(), and setHSIToolCore().

int HSIColorTableToolZoomDlg::m_indexOfZoomedImage

The index of the zoomed image in the main dialg.

Definition at line 59 of file HSIColorTableToolZoomDlg.h.

Referenced by CHSIColorTableToolDlgBar::OnLButtonDown().

CPoint HSIColorTableToolZoomDlg::m_rgbImagePlace

The position of the upper left point of the RGB image.

Definition at line 57 of file HSIColorTableToolZoomDlg.h.

Referenced by editHSIColorRange().

CPoint HSIColorTableToolZoomDlg::m_segmentedImagePlace

The position of the upper left point of the color classified image.

Definition at line 55 of file HSIColorTableToolZoomDlg.h.

Referenced by editHSIColorRange().

int HSIColorTableToolZoomDlg::m_sourceImageHeight

The height of the source image.

Definition at line 47 of file HSIColorTableToolZoomDlg.h.

int HSIColorTableToolZoomDlg::m_sourceImageWidth

The width of the source image.

Definition at line 49 of file HSIColorTableToolZoomDlg.h.

CButton HSIColorTableToolZoomDlg::m_undoButton

Definition at line 66 of file HSIColorTableToolZoomDlg.h.

Referenced by DoDataExchange(), editHSIColorRange(), and OnHsicolortabletoolZoomUndoButton().

int HSIColorTableToolZoomDlg::m_zoomedImageHeight

The height of the zoomed image.

Definition at line 51 of file HSIColorTableToolZoomDlg.h.

Referenced by editHSIColorRange().

int HSIColorTableToolZoomDlg::m_zoomedImageWidth

The width of the zoomed image.

Definition at line 53 of file HSIColorTableToolZoomDlg.h.


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