a
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
// MediumQ.cpp: implementation of the CMediumQ class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "geomative.h"
|
||||
#include "MediumQ.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[]=__FILE__;
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
CMediumQ::CMediumQ(int iAR): CMedium(iAR)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CMediumQ::~CMediumQ()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool CMediumQ::GenerateSptRecElecVal(int iEAmount, //电极总数---in
|
||||
int* pMaxLevel, //最大层---out
|
||||
int* pPtAmount, //测点总数---out
|
||||
CPtrArray* pSptRecArray //脚本记录集---out
|
||||
) //函数功能:生成脚本电极记录集合
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void CMediumQ::CalculateSptPtLoc(int iMul, //倍数---in
|
||||
CSptRecord* pSptRecord //脚本记录指针---out
|
||||
) //函数功能:计算脚本测点位置
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int CMediumQ::GenSptRecLevel(int iA, int iB, int iM, int iN)
|
||||
{
|
||||
return (int)VAL_ZERO;
|
||||
}
|
||||
|
||||
int CMediumQ::GenSptRecPosInLevel(int iA, int iB, int iM, int iN)
|
||||
{
|
||||
return (int)VAL_ZERO;
|
||||
}
|
||||
|
||||
int CMediumQ::GetMaxLevelByEAmount(int iEAmount)
|
||||
{
|
||||
return (int)VAL_ZERO;
|
||||
}
|
||||
|
||||
float CMediumQ::CalculateDepth(float fA, float fFactor)
|
||||
{
|
||||
return (float)((fabs(fA)/0.5)*fFactor);
|
||||
|
||||
}
|
||||
|
||||
float CMediumQ::CalculateCESptKVal(float fA, float fB, float fX, float fY)
|
||||
{
|
||||
float fK = (float)VAL_ZERO;
|
||||
fK = (float)(VAL_PI * (fA * fA - fB * fB) / (2 * fB));
|
||||
|
||||
return fabs(fK);
|
||||
}
|
||||
Reference in New Issue
Block a user