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 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 }


Member Function Documentation

void dialogbar::OnCheckUseTransfer   [protected]
 

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 }

void dialogbar::OnCheckZoom   [protected]
 

Definition at line 144 of file dialogbar.cpp.

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

00145 {
00146         // TODO: Add your control notification handler code here
00147         slice->SetZoom(!slice->GetZoom());
00148 }

afx_msg int dialogbar::OnCreate LPCREATESTRUCT    lpCreateStruct [protected]
 

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

Definition at line 135 of file dialogbar.cpp.

References Slice::SetPixels(), and slice.

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

afx_msg void dialogbar::OnRadioXy   [protected]
 

void dialogbar::OnRadioXz   [protected]
 

Definition at line 74 of file dialogbar.cpp.

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

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

void dialogbar::OnRadioYz   [protected]
 

Definition at line 85 of file dialogbar.cpp.

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

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

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

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 }


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 30 21:35:44 2003 for 3DVis by doxygen1.3-rc2