#include <TFDialog.h>
Public Types | |
IDD = IDD_DIALOG_TF | |
enum | { IDD = IDD_DIALOG_TF } |
Public Member Functions | |
TFDialog (CWnd *pParent=NULL) | |
virtual | ~TFDialog () |
void | isTFUsedForSlices (bool val) |
void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
void | drawHistogram () |
void | drawLine (HDC hdc, CRect aBox, int x, Float_Color aColStart, Float_Color aColEnd) |
afx_msg void | OnBnClickedButtonColor () |
afx_msg void | OnBnClickedButtonColorUpdate () |
afx_msg void | OnBnClickedColorRemove () |
afx_msg void | OnBnClickedButtonPrevIntensityMarker () |
afx_msg void | OnBnClickedButtonNextIntensityMarker () |
afx_msg void | OnBnClickedButtonDelIntensityMarker2 () |
Public Attributes | |
CColorDialog | color_dlg_ |
CColorButton | color_pre |
CColorButton | color_next |
CColorButton | color_prev |
CColorButton | color_del |
COLORREF | def_color [512] |
COLORREF | color |
Float_Color | theColor |
float | histogram_ [512] |
ColorType | theCurrentType |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
TFDialog::TFDialog | ( | CWnd * | pParent = NULL |
) |
TFDialog::~TFDialog | ( | ) | [virtual] |
void TFDialog::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
void TFDialog::drawHistogram | ( | ) |
draws the graph showing the color- and opacitytransfer
void TFDialog::drawLine | ( | HDC | hdc, | |
CRect | aBox, | |||
int | x, | |||
Float_Color | aColStart, | |||
Float_Color | aColEnd | |||
) |
draws a vertical line at given positions
hdc | the drawing context | |
aBox | the box to draw in | |
x | the horizontal position of the line | |
aColStart | start the line from this color | |
aColEnd | end the line before this color | |
isOpacity | indicates that the line should be painted in gray |
void TFDialog::isTFUsedForSlices | ( | bool | val | ) |
void TFDialog::OnBnClickedButtonColor | ( | ) |
void TFDialog::OnBnClickedButtonColorUpdate | ( | ) |
void TFDialog::OnBnClickedButtonDelIntensityMarker2 | ( | ) |
resets the color transfer
void TFDialog::OnBnClickedButtonNextIntensityMarker | ( | ) |
sets the intensity position to the next marker
void TFDialog::OnBnClickedButtonPrevIntensityMarker | ( | ) |
sets the intensity position to the previous marker
void TFDialog::OnBnClickedColorRemove | ( | ) |
void TFDialog::OnHScroll | ( | UINT | nSBCode, | |
UINT | nPos, | |||
CScrollBar * | pScrollBar | |||
) |
BOOL TFDialog::OnInitDialog | ( | ) | [protected, virtual] |
COLORREF TFDialog::color |
CColorDialog TFDialog::color_dlg_ |
COLORREF TFDialog::def_color[512] |
float TFDialog::histogram_[512] |