#include <HSIColorTableToolZoomDlg.h>
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 |
HSIColorTableToolCore * | m_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 () |
Definition at line 28 of file HSIColorTableToolZoomDlg.h.
anonymous enum |
HSIColorTableToolZoomDlg::HSIColorTableToolZoomDlg | ( | CWnd * | pParent = NULL |
) |
Default constructor
Definition at line 15 of file HSIColorTableToolZoomDlg.cpp.
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.
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] |
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.
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().
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().
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().
The index of the zoomed image in the main dialg.
Definition at line 59 of file HSIColorTableToolZoomDlg.h.
Referenced by CHSIColorTableToolDlgBar::OnLButtonDown().
The position of the upper left point of the RGB image.
Definition at line 57 of file HSIColorTableToolZoomDlg.h.
Referenced by editHSIColorRange().
The position of the upper left point of the color classified image.
Definition at line 55 of file HSIColorTableToolZoomDlg.h.
Referenced by editHSIColorRange().
The height of the source image.
Definition at line 47 of file HSIColorTableToolZoomDlg.h.
The width of the source image.
Definition at line 49 of file HSIColorTableToolZoomDlg.h.
Definition at line 66 of file HSIColorTableToolZoomDlg.h.
Referenced by DoDataExchange(), editHSIColorRange(), and OnHsicolortabletoolZoomUndoButton().
The height of the zoomed image.
Definition at line 51 of file HSIColorTableToolZoomDlg.h.
Referenced by editHSIColorRange().
The width of the zoomed image.
Definition at line 53 of file HSIColorTableToolZoomDlg.h.