Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

dialogbar Class Reference

#include <dialogbar.h>

List of all members.

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


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 25 of file dialogbar.h.

00025 { IDD = IDR_MAINFRAME };


Constructor & Destructor Documentation

dialogbar::dialogbar  
 

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 }


Member Function Documentation

void dialogbar::OnCheckUseTransfer   [protected]
 

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 }

void dialogbar::OnCheckZoom   [protected]
 

Definition at line 140 of file dialogbar.cpp.

References Slice::GetZoom(), Slice::SetZoom(), and slice.

00141 {
00142         // TODO: Add your control notification handler code here
00143         slice->SetZoom(!slice->GetZoom());
00144 }

afx_msg int dialogbar::OnCreate LPCREATESTRUCT    lpCreateStruct [protected]
 

void dialogbar::OnHScroll UINT    nSBCode,
UINT    nPos,
CScrollBar *    pScrollBar
[protected]
 

Definition at line 131 of file dialogbar.cpp.

References Slice::SetPixels(), and slice.

00132 {
00133         // TODO: Add your message handler code here and/or call default
00134         int pos = ((CSliderCtrl *)pScrollBar)->GetPos();
00135         slice->SetPixels(data3D, pos);
00136 
00137         CDialogBar::OnHScroll(nSBCode, nPos, pScrollBar);
00138 }

afx_msg void dialogbar::OnRadioXy   [protected]
 

void dialogbar::OnRadioXz   [protected]
 

Definition at line 70 of file dialogbar.cpp.

References m_dCheckedButton, Slice::SetPixels(), Slice::SetType(), slice, and Slice::XZ.

00071 {
00072         // TODO: Add your control notification handler code here
00073         if (!slice)
00074                 return;
00075 
00076         slice->SetType(slice->XZ);
00077         slice->SetPixels(data3D, -1);
00078         m_dCheckedButton = 1;
00079 }

void dialogbar::OnRadioYz   [protected]
 

Definition at line 81 of file dialogbar.cpp.

References m_dCheckedButton, Slice::SetPixels(), Slice::SetType(), slice, and Slice::YZ.

00082 {
00083         // TODO: Add your control notification handler code here
00084         if (!slice)
00085                 return;
00086 
00087         slice->SetType(slice->YZ);
00088         slice->SetPixels(data3D, -1);
00089         m_dCheckedButton = 2;
00090 }

void dialogbar::OnShowWindow BOOL    bShow,
UINT    nStatus
[protected]
 

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 }


Member Data Documentation

int dialogbar::m_dCheckedButton [private]
 

Definition at line 15 of file dialogbar.h.

Referenced by dialogbar(), OnRadioXz(), and OnRadioYz().


The documentation for this class was generated from the following files:
Generated on Thu Jan 23 12:32:16 2003 by doxygen1.3-rc2