47 lines
1.5 KiB
C++
47 lines
1.5 KiB
C++
// MediumK.h: interface for the CMediumK class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_MEDIUMK_H__9244B918_CA29_4BB6_8DD1_C67DE4A46A46__INCLUDED_)
|
|
#define AFX_MEDIUMK_H__9244B918_CA29_4BB6_8DD1_C67DE4A46A46__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "Medium.h"
|
|
|
|
class CMediumK : public CMedium
|
|
{
|
|
public:
|
|
void ReSortPoint(CPtrArray *f_ptr);
|
|
int CalculateRecPosInlevel(int iA);
|
|
CMediumK(int iAR);
|
|
virtual ~CMediumK();
|
|
bool GenerateSptRecElecVal(int iEAmount, int* pMaxLevel, int* pPtAmount, CPtrArray* pSptRecArray);
|
|
float CalculateSptKVal(int iA, int iM, int iN);
|
|
float CalculateCESptKVal(float fA, float fB, float fX, float fY);
|
|
|
|
int CalculateSptLevel(int iA, int iM);
|
|
void CalculateSptPtLoc(int iMul, CSptRecord* pSptRecord);
|
|
int GetMaxLevelByEAmount(int iEAmount);
|
|
|
|
int GenSptRecLevel(int iA, int iB, int iM, int iN);
|
|
int GenSptRecPosInLevel(int iA, int iB, int iM, int iN);
|
|
virtual void SetParamVal(const void* pVal)
|
|
{
|
|
m_iMNCtrlMethod = *((int*)pVal);
|
|
m_iMNSpace = *((int*)pVal+1);
|
|
m_iIsolationLayers = *((int*)pVal + 2);
|
|
}
|
|
bool GenerateSptRecElecVal_New(int iEAmount, int* pMaxLevel, int* pPtAmount, CPtrArray* pSptRecArray);
|
|
void CalculateTdPtLoc(const CRect& vRect, const int& iEAmount, int& iMaxLevel, CRect& lRect, int& iSmWidth, int& iSmHeight, CPtrArray* pTdRecArray);
|
|
protected:
|
|
int m_iMNCtrlMethod;
|
|
int m_iMNSpace;
|
|
int m_iIsolationLayers;//Auto模式,隔离层数
|
|
|
|
};
|
|
|
|
#endif // !defined(AFX_MEDIUMK_H__9244B918_CA29_4BB6_8DD1_C67DE4A46A46__INCLUDED_)
|