Main Page   Class Hierarchy   Compound List   File List   Compound Members  

MyHisto1Dialog.h

00001 #if !defined(AFX_MYHISTO1DIALOG_H__03A1B6A9_600A_4B1B_849E_89A4006A4AB5__INCLUDED_)
00002 #define AFX_MYHISTO1DIALOG_H__03A1B6A9_600A_4B1B_849E_89A4006A4AB5__INCLUDED_
00003 #include "MyContTransfPropDialog.h"     // Added by ClassView
00004 #include "HistoData.h"
00005 
00006 #if _MSC_VER > 1000
00007 #pragma once
00008 #endif // _MSC_VER > 1000
00009 // MyHisto1Dialog.h : header file
00010 //
00011 
00013 // MyHisto1Dialog dialog
00014 
00016 class MyHisto1Dialog : public CDialog
00017 {
00018 // Construction
00019 public:
00021         static void MapValue2Color_3(GLubyte *rgba, GLubyte *minRGBA, GLubyte *middleRGBA, 
00022                                                                  GLubyte *maxRGBA,float value, float minValue, 
00023                                                                  float middlePos, float maxValue);
00024         
00026         static void MapValue2Color(GLubyte *rgba, GLubyte *minRGBA, GLubyte *maxRGBA,
00027                                                            float value, float minValue,float maxValue);
00028 
00030         void DrawContTransfHisto();
00032         void DrawRegHisto();
00033 
00035         void SetHistoData(CHistoData *histoData);
00036 
00038         MyHisto1Dialog(CWnd* pParent = NULL);
00039 
00041         CHistoData * m_HistoData;
00042 
00044         ContTransfProp m_ContProp[DEF_CONTTRANSFVALUES_NUM];
00045 
00047         bool m_IsRegions;
00049         int m_BarColors[DEF_REGIONS_NUM+1];
00051         float m_Pos[DEF_REGIONS_NUM + 1];
00053         float m_InterPos;
00054 
00055 private:
00056         void DrawColorRect(int index);
00057         CFrameWnd * GetFrame(int index);
00058         void InitBarColors();
00059 // Dialog Data
00060         //{{AFX_DATA(MyHisto1Dialog)
00061         enum { IDD = IDD_HISTO1_DIALOG };
00062                 // NOTE: the ClassWizard will add data members here
00063         //}}AFX_DATA
00064 
00065 
00066 // Overrides
00067         // ClassWizard generated virtual function overrides
00068         //{{AFX_VIRTUAL(MyHisto1Dialog)
00069         protected:
00070         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00071         //}}AFX_VIRTUAL
00072 
00073 // Implementation
00074 protected:
00075 
00076         // Generated message map functions
00077         //{{AFX_MSG(MyHisto1Dialog)
00078         afx_msg void OnPaint();
00079         //}}AFX_MSG
00080         DECLARE_MESSAGE_MAP()
00081 };
00082 
00083 //{{AFX_INSERT_LOCATION}}
00084 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00085 
00086 #endif // !defined(AFX_MYHISTO1DIALOG_H__03A1B6A9_600A_4B1B_849E_89A4006A4AB5__INCLUDED_)

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