dtriangulationDoc.h
资源名称:package.rar [点击查看]
上传用户:chinasdcnc
上传日期:2022-07-02
资源大小:2702k
文件大小:1k
源码类别:
分形几何
开发平台:
Visual C++
- // dtriangulationDoc.h : CdtriangulationDoc 类的接口
- //
- #pragma once
- #include "point2d.h"
- #include "delaunaytriangulation.h"
- class CdtriangulationDoc : public CDocument
- {
- protected: // 仅从序列化创建
- CdtriangulationDoc();
- DECLARE_DYNCREATE(CdtriangulationDoc)
- // 属性
- public:
- int nPoints;
- Point2d* points;
- DelaunayTriangulation myDT;
- // 操作
- public:
- /**
- * Gets the @c pos point data.
- */
- Point2d* point(int pos) const;
- /**
- * Loads point data from file.
- */
- bool load(const char* filename);
- /**
- * Saves point data into file.
- */
- bool save(const char* filename);
- // 重写
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- // 实现
- public:
- virtual ~CdtriangulationDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // 生成的消息映射函数
- protected:
- DECLARE_MESSAGE_MAP()
- };