#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 28 of file dialogbar.cpp. References m_dCheckedButton.
00029 : CDialogBar(/*dialogbar::IDD, pParent*/) 00030 { 00031 //{{AFX_DATA_INIT(dialogbar) 00032 // NOTE: the ClassWizard will add member initialization here 00033 //}}AFX_DATA_INIT 00034 00035 m_dCheckedButton = 0; 00036 } |
|
|
Definition at line 150 of file dialogbar.cpp. References Slice::GetTransfer(), Slice::SetPixels(), Slice::SetTransfer(), and slice.
00151 {
00152 if (((CMy3dvisApp *)AfxGetApp())->transferFunction == NULL) {
00153 ((CButton *)GetDlgItem(IDC_CHECK_USE_TRANSFER))->SetCheck(FALSE);
00154 return;
00155 }
00156 // TODO: Add your control notification handler code here
00157 slice->SetTransfer(!slice->GetTransfer());
00158 slice->SetPixels(data3D, -1);
00159 }
|
|
|
Definition at line 144 of file dialogbar.cpp. References Slice::GetZoom(), Slice::SetZoom(), and slice.
|
|
|
|
|
||||||||||||||||
|
Definition at line 135 of file dialogbar.cpp. References Slice::SetPixels(), and slice.
|
|
|
|
|
|
Definition at line 74 of file dialogbar.cpp. References m_dCheckedButton, Slice::SetPixels(), Slice::SetType(), slice, and Slice::XZ.
|
|
|
Definition at line 85 of file dialogbar.cpp. References m_dCheckedButton, Slice::SetPixels(), Slice::SetType(), slice, and Slice::YZ.
|
|
||||||||||||
|
Definition at line 96 of file dialogbar.cpp. References Slice::GetSliceNumber(), IDC_RADIO_XY, IDC_RADIO_XZ, IDC_RADIO_YZ, Slice::SetPixels(), and slice.
00097 {
00098 CDialogBar::OnShowWindow(bShow, nStatus);
00099
00100 // TODO: Add your message handler code here
00101 if (!bShow || !slice) {
00102 ((CSliderCtrl *)GetDlgItem(IDC_SLICE_DEPTH))->SetPos(0);
00103 return;
00104 }
00105
00106 int button;
00107
00108 switch (m_dCheckedButton) {
00109 case 0:
00110 button = IDC_RADIO_XY;
00111 break;
00112 case 1:
00113 button = IDC_RADIO_XZ;
00114 break;
00115 case 2:
00116 button = IDC_RADIO_YZ;
00117 break;
00118 }
00119 ((CButton *)GetDlgItem(button))->SetCheck(1);
00120
00121
00122 int num = slice->GetSliceNumber();
00123 if (num == -1)
00124 return;
00125
00126
00127 CSliderCtrl *sc = (CSliderCtrl *)GetDlgItem(IDC_SLICE_DEPTH);
00128 sc->SetRange(0, num, TRUE);
00129
00130 slice->SetPixels(data3D, 0);
00131 }
|
|
|
Definition at line 15 of file dialogbar.h. Referenced by dialogbar(), OnRadioXz(), and OnRadioYz(). |
1.3-rc2