4 Star 0 Fork 2

leegoobin/AutoPHS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
PHSBasepointSetting.cpp 4.24 KB
一键复制 编辑 原始数据 按行查看 历史
uksoft 提交于 2014-11-26 16:31 . VSS代码移植到Git
// PHSBasepointSetting.cpp: implementation of the PHSBasepointSetting class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "PHSBasepointSetting.h"
#include "modphscal.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
PHSBasepointSetting::PHSBasepointSetting()
{
m_nStyle = -1;
}
PHSBasepointSetting::~PHSBasepointSetting()
{
}
BOOL PHSBasepointSetting::InitSetting()
{
return TRUE;
}
BOOL PHSBasepointSetting::SaveSetting()
{
return TRUE;
}
//暠움넹당츰냔
CString PHSBasepointSetting::GetFrameName()
{
return modPHScal::Ax;
}
void PHSBasepointSetting::SetFrameName(const CString& strName)
{
modPHScal::Ax = strName;
}
//샘듐잚謹,0깊刻連솥,1깊刻데딤,2깊刻崗딤
INT PHSBasepointSetting::GetBasePointStyle()
{
return m_nStyle;
}
void PHSBasepointSetting::SetBasePointStyle(INT nStyle)
{
m_nStyle = nStyle;
}
//璘柬暠X麟깃
LONG PHSBasepointSetting::GetCenterXOfLeftView()
{
return modPHScal::VX_pt0x;
}
void PHSBasepointSetting::SetCenterXOfLeftView(LONG lX)
{
modPHScal::VX_pt0x = lX;
}
//璘柬暠Y麟깃
LONG PHSBasepointSetting::GetCenterYOfLeftView()
{
return modPHScal::VX_pt0y;
}
void PHSBasepointSetting::SetCenterYOfLeftView(LONG lY)
{
modPHScal::VX_pt0y = lY;
}
//塘柬暠X麟깃
LONG PHSBasepointSetting::GetCenterXOfRightView()
{
return modPHScal::VZ_pt0x;
}
void PHSBasepointSetting::SetCenterXOfRightView(LONG lX)
{
modPHScal::VZ_pt0x = lX;
}
//塘柬暠Y麟깃
LONG PHSBasepointSetting::GetCenterYOfRightView()
{
return modPHScal::VX_pt0y;
}
void PHSBasepointSetting::SetCenterYOfRightView(LONG lY)
{
modPHScal::VX_pt0y = lY;
}
//鬧姦욥塘苟신X麟깃
LONG PHSBasepointSetting::GetRightBottomXOfNote()
{
return modPHScal::pt1x;
}
void PHSBasepointSetting::SetRightBottomXOfNote(LONG lX)
{
modPHScal::pt1x = lX;
}
//鬧姦욥塘苟신Y麟깃
LONG PHSBasepointSetting::GetRightBottomYOfNote()
{
return modPHScal::pt1y;
}
void PHSBasepointSetting::SetRightBottomYOfNote(LONG lY)
{
modPHScal::pt1y = lY;
}
//쥐숭헌데塘苟신X麟깃
LONG PHSBasepointSetting::GetRightBottomXOfPartList()
{
return modPHScal::pt2x;
}
void PHSBasepointSetting::SetRightBottomXOfPartList(LONG lX)
{
modPHScal::pt2x = lX;
}
//쥐숭헌데塘苟신Y麟깃
LONG PHSBasepointSetting::GetRightBottomYOfPartList()
{
return modPHScal::pt2y;
}
void PHSBasepointSetting::SetRightBottomYOfPartList(LONG lY)
{
modPHScal::pt2y = lY;
}
//潼뵐貫盧깊塘신X麟깃
LONG PHSBasepointSetting::GetRightTopXOfLoadAndDisp()
{
return modPHScal::pt3x;
}
void PHSBasepointSetting::SetRightTopXOfLoadAndDisp(LONG lX)
{
modPHScal::pt3x = lX;
}
//潼뵐貫盧깊塘신Y麟깃
LONG PHSBasepointSetting::GetRightTopYOfLoadAndDisp()
{
return modPHScal::pt3y;
}
void PHSBasepointSetting::SetRightTopYOfLoadAndDisp(LONG lY)
{
modPHScal::pt3y = lY;
}
LONG PHSBasepointSetting::GetDimOffset()
{
return modPHScal::giDimOffset;
}
void PHSBasepointSetting::SetDimOffset(LONG lOffset)
{
modPHScal::giDimOffset = lOffset;
}
LONG PHSBasepointSetting::GetAttDOffsetX()
{
return modPHScal::giAttDxOffsetX;
}
void PHSBasepointSetting::SetAttDOffsetX(LONG lX)
{
modPHScal::giAttDxOffsetX = lX;
modPHScal::giAttDzOffsetX = modPHScal::giAttDxOffsetX;
}
LONG PHSBasepointSetting::GetAttDOffsetY()
{
return modPHScal::giAttDOffsetY;
}
void PHSBasepointSetting::SetAttDOffsetY(LONG lY)
{
modPHScal::giAttDOffsetY = lY;
}
LONG PHSBasepointSetting::GetPt0X()
{
return modPHScal::Pt0X;
}
void PHSBasepointSetting::SetPt0X(LONG lX)
{
modPHScal::Pt0X = lX;
}
void PHSBasepointSetting::SetBasePointStyle(INT nSupportStyle, BOOL HasPartList)
{
INT nStyle = 0;
if(HasPartList)
{
switch(nSupportStyle)
{
case 0:
nStyle = PHSBasepointSetting::eSUPPORTLIST;
break;
case 1:
nStyle = PHSBasepointSetting::eSINGLEHANGERLIST;
break;
case 2:
nStyle = PHSBasepointSetting::eDOUBLEHANGERLIST;
break;
}
}
else
{
switch(nSupportStyle)
{
case 0:
nStyle = PHSBasepointSetting::eSUPPORTNOLIST;
break;
case 1:
nStyle = PHSBasepointSetting::eSINGLEHANGERNOLIST;
break;
case 2:
nStyle = PHSBasepointSetting::eDOUBLEHANGERNOLIST;
break;
}
}
m_nStyle = nStyle;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/uesoft/AutoPHS.git
git@gitee.com:uesoft/AutoPHS.git
uesoft
AutoPHS
AutoPHS
CAE

搜索帮助

D67c1975 1850385 1daf7b77 1850385