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