This repository has been archived on 2022-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
Multichannel-Analyzer/MCA/MCADoc.h
YiHui Liu c356285fe2 add: random signal;
change: update control view
2022-05-30 16:36:01 +08:00

63 lines
1.1 KiB
C++

// MCADoc.h: CMCADoc 类的接口
//
#pragma once
#include <string>
class CMCADoc : public CDocument
{
protected: // 仅从序列化创建
CMCADoc() noexcept;
DECLARE_DYNCREATE(CMCADoc)
// 特性
public:
int m_nChannelNum = 1024;
int *m_nChannelCount;
private:
// reference spectrum
double es_Co60[1024] = {};
double es_Cs137[1024] = {};
double es_Na22[1024] = {};
// 操作
public:
void random_peaks(std::string name);
private:
double uniform();
// 重写
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
#ifdef SHARED_HANDLERS
virtual void InitializeSearchContent();
virtual void OnDrawThumbnail(CDC& dc, LPRECT lprcBounds);
#endif // SHARED_HANDLERS
// 实现
public:
virtual ~CMCADoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
#ifdef SHARED_HANDLERS
// 用于为搜索处理程序设置搜索内容的 Helper 函数
void SetSearchContent(const CString& value);
#endif // SHARED_HANDLERS
};