📄 node.cpp
字号:
// Node.cpp: implementation of the CNode class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "FiniteElement.h"
#include "Node.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CNode::CNode(int id)
{
Initial();
m_node_id=id;
}
CNode::CNode()
{
Initial();
}
CNode::~CNode()
{
}
void CNode::SetNodeXY(double xpos, double ypos)
{
m_nodexy[0]=xpos;
m_nodexy[1]=ypos;
}
void CNode::SetSupportXY(int t1, int t2)
{
m_supportinfo[0]=t1;
m_supportinfo[1]=t2;
}
void CNode::SetLoadXY(double df1, double df2)
{
m_loadinfo[0]=df1;
m_loadinfo[1]=df2;
}
void CNode::Initial()
{
m_nodexy[0]=0.0f; //节点坐标
m_nodexy[1]=0.0f;
m_displace[0]=0.0f; //节点位移
m_displace[1]=0.0f;
m_supportinfo[0]=0; //支承信息
m_supportinfo[1]=0;
m_loadinfo[0]=0.0f; //荷载信息
m_loadinfo[1]=0.0f;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -