44 lines
1.5 KiB
C++
44 lines
1.5 KiB
C++
// MediumZA.h: interface for the CMediumZA class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_MEDIUMZA_H__406682E6_B146_47EE_8A16_CB6937ADD808__INCLUDED_)
|
|
#define AFX_MEDIUMZA_H__406682E6_B146_47EE_8A16_CB6937ADD808__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "Medium3D.h"
|
|
#include "scriptor.h"
|
|
|
|
class CMediumZA : public CMedium3D
|
|
{
|
|
public:
|
|
void SaveScr();
|
|
float CalculateCESptKVal(float fA, float fB, float fX, float fY);
|
|
int GetMaxLevelByEAmount(int iEAmount);
|
|
int GenSptRecPosInLevel(int iA, int iB, int iM, int iN);
|
|
int GenSptRecLevel(int iA, int iB, int iM, int iN);
|
|
void CalculateSptPtLoc(int iMul, CSptRecord* pSptRecord);
|
|
bool GenerateSptRecElecVal(int iEAmount, int* pMaxLevel, int* pPtAmount, CPtrArray* pSptRecArray);
|
|
void SetPointCPosition(char *f_type, int f_x, int f_y);
|
|
CMediumZA(int iAR);
|
|
virtual ~CMediumZA();
|
|
//3D脚本接口
|
|
void create();//创建脚本
|
|
void SetRect(int x0, int y0, int x1, int y1); //设置矩形大小
|
|
void setZone(bool enable, int zonec, int *zonev); //设置需要生成测点的象限
|
|
BOOL setPoleStart(int startpole); //设置测点的起始位置
|
|
BOOL generate(); //执行脚本生成
|
|
int getPoleStart(); //获取起始电极
|
|
int getPoleCount(); //获取电极总数
|
|
struct _rect * getRect(); //获取矩阵
|
|
|
|
private:
|
|
// struct _scriptor *m_scr;
|
|
struct _rect m_rect;
|
|
};
|
|
|
|
#endif // !defined(AFX_MEDIUMZA_H__406682E6_B146_47EE_8A16_CB6937ADD808__INCLUDED_)
|