#include <dialogbar.h>
Public Types | |
| enum | { IDD = IDR_MAINFRAME } |
Public Methods | |
| dialogbar () | |
Protected Methods | |
| afx_msg void | OnRadioXy () |
| afx_msg void | OnRadioXz () |
| afx_msg void | OnRadioYz () |
| afx_msg void | OnShowWindow (BOOL bShow, UINT nStatus) |
| afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
| afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
| afx_msg void | OnCheckZoom () |
| afx_msg void | OnCheckUseTransfer () |
Private Attributes | |
| int | m_dCheckedButton |
|
|
Definition at line 25 of file dialogbar.h.
00025 { IDD = IDR_MAINFRAME };
|
|
|
Definition at line 24 of file dialogbar.cpp. References m_dCheckedButton.
00025 : CDialogBar(/*dialogbar::IDD, pParent*/) 00026 { 00027 //{{AFX_DATA_INIT(dialogbar) 00028 // NOTE: the ClassWizard will add member initialization here 00029 //}}AFX_DATA_INIT 00030 00031 m_dCheckedButton = 0; 00032 } |
|
|
Definition at line 146 of file dialogbar.cpp. References Slice::GetTransfer(), Slice::SetPixels(), Slice::SetTransfer(), and slice.
00147 {
00148 if (((CMy3dvisApp *)AfxGetApp())->transferFunction == NULL) {
00149 ((CButton *)GetDlgItem(IDC_CHECK_USE_TRANSFER))->SetCheck(FALSE);
00150 return;
00151 }
00152 // TODO: Add your control notification handler code here
00153 slice->SetTransfer(!slice->GetTransfer());
00154 slice->SetPixels(data3D, -1);
00155 }
|
|
|
Definition at line 140 of file dialogbar.cpp. References Slice::GetZoom(), Slice::SetZoom(), and slice.
|
|
|
|
|
||||||||||||||||
|
Definition at line 131 of file dialogbar.cpp. References Slice::SetPixels(), and slice.
|
|
|
|
|
|
Definition at line 70 of file dialogbar.cpp. References m_dCheckedButton, Slice::SetPixels(), Slice::SetType(), slice, and Slice::XZ.
|
|
|
Definition at line 81 of file dialogbar.cpp. References m_dCheckedButton, Slice::SetPixels(), Slice::SetType(), slice, and Slice::YZ.
|
|
||||||||||||
|
Definition at line 92 of file dialogbar.cpp. References Slice::GetSliceNumber(), IDC_RADIO_XY, IDC_RADIO_XZ, IDC_RADIO_YZ, Slice::SetPixels(), and slice.
00093 {
00094 CDialogBar::OnShowWindow(bShow, nStatus);
00095
00096 // TODO: Add your message handler code here
00097 if (!bShow || !slice) {
00098 ((CSliderCtrl *)GetDlgItem(IDC_SLICE_DEPTH))->SetPos(0);
00099 return;
00100 }
00101
00102 int button;
00103
00104 switch (m_dCheckedButton) {
00105 case 0:
00106 button = IDC_RADIO_XY;
00107 break;
00108 case 1:
00109 button = IDC_RADIO_XZ;
00110 break;
00111 case 2:
00112 button = IDC_RADIO_YZ;
00113 break;
00114 }
00115 ((CButton *)GetDlgItem(button))->SetCheck(1);
00116
00117
00118 int num = slice->GetSliceNumber();
00119 if (num == -1)
00120 return;
00121
00122
00123 CSliderCtrl *sc = (CSliderCtrl *)GetDlgItem(IDC_SLICE_DEPTH);
00124 sc->SetRange(0, num, TRUE);
00125
00126 slice->SetPixels(data3D, 0);
00127 }
|
|
|
Definition at line 15 of file dialogbar.h. Referenced by dialogbar(), OnRadioXz(), and OnRadioYz(). |
1.3-rc2