OneContour.h
资源名称:08.zip [点击查看]
上传用户:ynjin1970
上传日期:2014-10-13
资源大小:6438k
文件大小:1k
源码类别:
中间件编程
开发平台:
Visual C++
- // Contour.h: interface for the COneContour class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CONTOUR_H__1A402A48_1C4B_4F27_9DBD_719CF9D260D9__INCLUDED_)
- #define AFX_CONTOUR_H__1A402A48_1C4B_4F27_9DBD_719CF9D260D9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Triangulate.h"
- #include "GlobalFunctions.h"
- class COneContour
- {
- public:
- COneContour(CTriangulate *T, double z);
- virtual ~COneContour();
- private:
- void SearchZValuePointsOfTris();
- public:
- int GetSegCount();
- double GetZValue();
- int * GetAfterPointsCount();
- XYZ ** GetAfterPoints();
- int * GetPointsCount();
- XYZ ** GetPoints();
- COneContour();
- void Initial(CTriangulate *T, double z, int smoothmethod = 0);
- void CreateContour();
- // void SetSmoothMethod( int method) { smoothmethod_ = method; };
- private:
- double epsilon;
- CTriangulate *T;
- XYZ *points_[1024]; // 找到的三角形的等值线点(未平滑插值)
- int pointscount_[1024];
- XYZ *afterpoints_[1024]; // 插值后形成的等值点
- int afterpointscount_[1024];
- int smoothmethod_; // 平滑方法,具体的平滑方法待定
- double zvalue;
- int segsum_; // 保存在一个指针内的等值线段的数量
- };
- #endif // !defined(AFX_CONTOUR_H__1A402A48_1C4B_4F27_9DBD_719CF9D260D9__INCLUDED_)