allcontour.h

来自「随着计算机信息技术的飞速发展」· C头文件 代码 · 共 44 行

H
44
字号
// AllContour.h: interface for the CAllContour class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ALLCONTOUR_H__F8A6EE14_8634_413F_82AD_1FFD1170B94E__INCLUDED_)
#define AFX_ALLCONTOUR_H__F8A6EE14_8634_413F_82AD_1FFD1170B94E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "onecontour.h"
#include "triangulate.h"

class CAllContour  
{
public:
	void CreateAllContour();
	void Initial(CTriangulate *T, double basez, double incz);
	void Initial(CTriangulate *T);
	CAllContour();
	virtual ~CAllContour();
	COneContour *GetContour();
	int GetContourCount();

public:
	void Initial(CTriangulate *T, double startZ, double endZ, double incZ);

private:
	COneContour *contour_;		// 等值线
	int contourcount_;		// 等值线的条数
	CTriangulate *t_;		// 等值线需要三角网

private:
	void SearchMaxMinZ(CTriangulate *T);
	double startz_;	// z值的起始,用户指定或程序搜索
	double incz_;	// z值得增量,用户指定或程序搜索
	double maxz_, minz_; //z值得最大最小值

	double endz_; //等值线线被限制在这两个值之间,且增量为incZ_
};

#endif // !defined(AFX_ALLCONTOUR_H__F8A6EE14_8634_413F_82AD_1FFD1170B94E__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?