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

volumebar Class Reference

#include <volumebar.h>

List of all members.

Public Methods

 volumebar ()

Protected Methods

virtual void DoDataExchange (CDataExchange *pDX)
afx_msg void OnButtonRenderVolume ()
afx_msg void OnRadioVolumeNn ()
afx_msg void OnRadioVolumeTri ()
afx_msg void OnShowWindow (BOOL bShow, UINT nStatus)
afx_msg void OnUpdateButtonRenderVolume (CCmdUI *pCmdUI)

Private Types

enum  { IDD = IDR_VOLUMEFRAME }

Private Attributes

float m_fVolumeStepLength
int m_dRenderType


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
IDD 

Definition at line 18 of file volumebar.h.

00018 { IDD = IDR_VOLUMEFRAME };


Constructor & Destructor Documentation

volumebar::volumebar  
 

Definition at line 27 of file volumebar.cpp.

References m_dRenderType, m_fVolumeStepLength, and NN.

00028         : CDialog(volumebar::IDD, pParent)
00029         : CDialogBar()
00030 {
00031         //{{AFX_DATA_INIT(volumebar)
00032         m_fVolumeStepLength = 1.0f;
00033         //}}AFX_DATA_INIT
00034 
00035         
00036         m_dRenderType = NN;
00037 }


Member Function Documentation

void volumebar::DoDataExchange CDataExchange *    pDX [protected, virtual]
 

Definition at line 40 of file volumebar.cpp.

00041 {
00042 //      CDialog::DoDataExchange(pDX);
00043         //{{AFX_DATA_MAP(volumebar)
00044         DDX_Text(pDX, IDC_EDIT_STEP_LENGTH, m_fVolumeStepLength);
00045         DDV_MinMaxFloat(pDX, m_fVolumeStepLength, 1.f, 10.f);
00046         //}}AFX_DATA_MAP
00047 }

void volumebar::OnButtonRenderVolume   [protected]
 

Definition at line 108 of file volumebar.cpp.

References Raycaster::Raycast(), and raycaster.

00109 {
00110         // TODO: Add your control notification handler code here
00111         if (!raycaster)
00112                 return;
00113         
00114 //      raycaster->UpdateSize();
00115         raycaster->Raycast();
00116         
00117 }

void volumebar::OnRadioVolumeNn   [protected]
 

Definition at line 68 of file volumebar.cpp.

References m_dRenderType, NN, raycaster, and Raycaster::SetRaytype().

00069 {
00070         // TODO: Add your control notification handler code here
00071         if (!raycaster)
00072                 return;
00073 
00074         raycaster->SetRaytype(NN);
00075         m_dRenderType = NN;
00076 }

void volumebar::OnRadioVolumeTri   [protected]
 

Definition at line 78 of file volumebar.cpp.

References m_dRenderType, raycaster, Raycaster::SetRaytype(), and TRI.

00079 {
00080         // TODO: Add your control notification handler code here
00081         if (!raycaster)
00082                 return;
00083 
00084         raycaster->SetRaytype(TRI);
00085         m_dRenderType = TRI;
00086 }

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

Definition at line 88 of file volumebar.cpp.

References IDC_RADIO_VOLUME_NN, IDC_RADIO_VOLUME_TRI, NN, and TRI.

00089 {
00090         CDialogBar::OnShowWindow(bShow, nStatus);
00091         
00092         UpdateData(FALSE);
00093 
00094         // TODO: Add your message handler code here
00095         int button;
00096         switch (m_dRenderType) {
00097                 case NN:
00098                         button = IDC_RADIO_VOLUME_NN;
00099                         break;
00100                 case TRI:
00101                         button = IDC_RADIO_VOLUME_TRI;
00102                         break;
00103         }
00104         ((CButton *)GetDlgItem(button))->SetCheck(1);
00105 }

afx_msg void volumebar::OnUpdateButtonRenderVolume CCmdUI *    pCmdUI [protected]
 


Member Data Documentation

int volumebar::m_dRenderType [private]
 

Definition at line 23 of file volumebar.h.

Referenced by OnRadioVolumeNn(), OnRadioVolumeTri(), and volumebar().

float volumebar::m_fVolumeStepLength [private]
 

Definition at line 19 of file volumebar.h.

Referenced by volumebar().


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