Main Page   Class Hierarchy   Compound List   File List   Compound Members  

MyHistoDialog.h

00001 #if !defined(AFX_MYHISTODIALOG_H__3BDFBC4F_FE75_4131_BA1D_88603C28FAF6__INCLUDED_)
00002 #define AFX_MYHISTODIALOG_H__3BDFBC4F_FE75_4131_BA1D_88603C28FAF6__INCLUDED_
00003 
00004 #include "HistoData.h"
00005 #include "HistoDataStream.h"
00006 #include "gl/gl.h"
00007 #include "gl/glu.h"
00008 
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif // _MSC_VER > 1000
00012 // MyHistoDialog.h : header file
00013 //
00014 
00016 // MyHistoDialog dialog
00017 
00019 class MyHistoDialog : public CDialog
00020 {
00021 // Construction
00022 public:
00024         void SetMinMaxScalar(float minScalar, float maxScalar);
00026         void SetScalarType(int scalarType);
00028         void UpdateGraphs();
00030         void UpdateData();
00031 
00033         int m_IntervNum;
00034 
00036         int m_ScalarType;
00037 
00039         char m_Title[100];
00040 
00042         void InitDataStreams(CObList *list);
00043 
00044         // Histogram data for different regions and modes.
00045         CHistoData m_HistoData[DEF_HISTOIMG_NUM];
00046 
00048         CHistoDataStream m_HistoDataStream[DEF_HISTOIMG_NUM];
00049 
00050         MyHistoDialog(CWnd* pParent = NULL);
00051 
00052 private:
00053         CFrameWnd * GetFrame(int index);
00054         DrawHisto(int index, GLubyte *barColor, int bkColor);
00055 // Dialog Data
00056         //{{AFX_DATA(MyHistoDialog)
00057         enum { IDD = IDD_HISTODIALOG };
00058                 // NOTE: the ClassWizard will add data members here
00059         //}}AFX_DATA
00060 
00061 
00062 // Overrides
00063         // ClassWizard generated virtual function overrides
00064         //{{AFX_VIRTUAL(MyHistoDialog)
00065         protected:
00066         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00067         //}}AFX_VIRTUAL
00068 
00069 // Implementation
00070 protected:
00071 
00072         // Generated message map functions
00073         //{{AFX_MSG(MyHistoDialog)
00074         afx_msg void OnPaint();
00075         virtual BOOL OnInitDialog();
00076         //}}AFX_MSG
00077         DECLARE_MESSAGE_MAP()
00078 };
00079 
00080 //{{AFX_INSERT_LOCATION}}
00081 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00082 
00083 #endif // !defined(AFX_MYHISTODIALOG_H__3BDFBC4F_FE75_4131_BA1D_88603C28FAF6__INCLUDED_)

Generated on Fri Aug 9 10:12:39 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002