Click here to Skip to main content
15,880,725 members
Articles / Desktop Programming / MFC

The Diffraction Grating Calculator

Rate me:
Please Sign up or sign in to vote.
4.40/5 (5 votes)
30 Oct 2010GPL38 min read 41.3K   678   6  
An MFC Windows program related to Concave Diffraction Gratings using VTK libraries.
#pragma once

#include "Resource.h"
#include "ObjectList.h"
#include "GratSimulation.h"

// CSelectPlot dialog

class CSelectPlot : public CDialog
{
	DECLARE_DYNAMIC(CSelectPlot)

public:
	CSelectPlot(CWnd* pParent = NULL);   // standard constructor
	virtual ~CSelectPlot();

// Dialog Data
	enum { IDD = IDD_SELECTPLOT };

   static bool m_bIsWindowAnywhere;

   // Objects
   CFocalSpotObj* m_pCurrentSelectionInCombo;

private:
   // Controls
   CButton m_buttonPlotData;
   CComboBox m_comboDataArrays;

   CObjectList* m_pSelectedDataArrays;

protected:
   // Combo operations
   void SetUpComboList();

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
   virtual BOOL OnInitDialog();
   virtual BOOL PreTranslateMessage(MSG* pMsg);
   afx_msg void OnBnClickedButtonPlotData();
   afx_msg void OnCbnSelchangeComboDataArrays();
   afx_msg int  OnCreate(LPCREATESTRUCT lpCreateStruct);
   afx_msg void OnDestroy();
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer (Senior)
Italy Italy
Senior Software Developer in C/C++ and Oracle.
Ex-physicist holding a Ph.D. on x-ray lasers.

Comments and Discussions