#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_)