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