Menu

[r124]: / MCELevelControlPrimary.h  Maximize  Restore  History

Download this file

127 lines (108 with data), 3.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#if !defined(AFX_MCELEVELCONTROLPRIMARY_H__7703926F_33D7_4F36_8D7D_E2E995C41B09__INCLUDED_)
#define AFX_MCELEVELCONTROLPRIMARY_H__7703926F_33D7_4F36_8D7D_E2E995C41B09__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
#include "MapSetting2D.h"
#include "TrajectoriesSetting.h"
#include "MCE2DMapPlaneDef.h"
// _MSC_VER > 1000
// MCELevelControlPrimary.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMCELevelControlPrimary dialog
#define WM_EXIT_LC WM_USER + 5
#define WM_APPLY_LC_CHANGES WM_USER + 6
class CMCELevelControlPrimary : public CDialog
{
private:
void ApplyGraphicChanges();
void RefreshLevelValues();
void RefreshScrollValues();
CView* m_pMCEView;
// Construction
public:
CMCELevelControlPrimary(CWnd* pParent = NULL); // standard constructor
CMCELevelControlPrimary(CView* pView); // new modelless constructor
BOOL Create();
float m_fMapMinimum;
float m_fMapMaximum;
float m_fMapMean;
float m_fMapSigma;
// Dialog Data
//{{AFX_DATA(CMCELevelControlPrimary)
enum { IDD = IDD_LEVEL_CONTROL_PRIMARY };
int m_nDropList2DMapDirection;
int m_nDropList2DMapStyle;
CSpinButtonCtrl m_wndSpin_2D_Level;
int m_nLayer1Scroll;
float m_fLayer1Value;
BOOL m_bLayer1Visible;
int m_nLayer2Scroll;
float m_fLayer2Value;
BOOL m_bLayer2Visible;
int m_nLayer3Scroll;
float m_fLayer3Value;
BOOL m_bLayer3Visible;
int m_n2D_map_level;
BOOL m_b2D_map_Visible;
CButton m_bLinearSB;
CButton m_bExponencialSB;
int m_iMapMode;
BOOL m_bReverseNormals;
BOOL m_bSurfaceLikeLines;
BOOL m_bTransparentSurface;
float m_fTransparency_level;
float m_fMapColor[3][3];//[map 123][rgb]
MyRGB m_mshCol1;
MyRGB m_mshCol2;
BOOL m_map_surface;
BOOL m_calculate_trajectories;
int m_traj_nb_traj;
float m_traj_starting_distance;
float m_traj_step_size;
int m_traj_col[3];
float m_traj_max_atom_dist;
int m_color_map_type;
MCE2DMapPlaneDef *m_plane_dialog;
VoxelMap2D *m_2D_voxel_map;
//}}AFX_DATA
// scroll bar parameters
enum { nScrollMin = 0 };
enum { nScrollMax = 100 };
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMCELevelControlPrimary)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CMCELevelControlPrimary)
virtual void OnCancel();
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg void OnApply();
afx_msg void OnClickedOk();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnCheck2();
afx_msg void OnLinearSb();
afx_msg void OnExponencialSb();
afx_msg void OnPowerSb();
//afx_msg void OnPaint();
afx_msg void OnContourLines();
HBRUSH OnCtlColor(CDC* pDC, CWnd *pWnd, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButtonCustom();
afx_msg void OnBnClickedButtonCustomTraj();
afx_msg void OnBnClickedCustomPlane();
//afx_msg void OnBnClickedCancel();
afx_msg void OnStnClickedMapMinimum();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MCELEVELCONTROLPRIMARY_H__7703926F_33D7_4F36_8D7D_E2E995C41B09__INCLUDED_)