56 lines
907 B
C++
56 lines
907 B
C++
#include "stdafx.h"
|
|
#ifdef TASD
|
|
#include "TBaseWallLine.h"
|
|
|
|
|
|
TBaseWallLine::TBaseWallLine() : m_nWeight(0), m_plLeft(), m_plRight()
|
|
{
|
|
|
|
}
|
|
|
|
TBaseWallLine::~TBaseWallLine()
|
|
{
|
|
|
|
}
|
|
|
|
TBaseWallLine& TBaseWallLine::operator=(const TBaseWallLine& src)
|
|
{
|
|
if (this != &src)
|
|
{
|
|
m_nWeight = src.m_nWeight;
|
|
m_plLeft = src.m_plLeft;
|
|
m_plRight = src.m_plRight;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
void TBaseWallLine::SetLeftLine(const TGGeVisibilityPoly2D& plLeft)
|
|
{
|
|
m_plLeft = plLeft;
|
|
}
|
|
|
|
TGGeVisibilityPoly2D& TBaseWallLine::GetLeftLine()const
|
|
{
|
|
return (TGGeVisibilityPoly2D&)m_plLeft;
|
|
}
|
|
|
|
void TBaseWallLine::SetRightLine(const TGGeVisibilityPoly2D& plRight)
|
|
{
|
|
m_plRight = plRight;
|
|
}
|
|
|
|
TGGeVisibilityPoly2D& TBaseWallLine::GetRightLine()const
|
|
{
|
|
return (TGGeVisibilityPoly2D&)m_plRight;
|
|
}
|
|
|
|
void TBaseWallLine::SetWeight(int nWeight)
|
|
{
|
|
m_nWeight = nWeight;
|
|
}
|
|
int TBaseWallLine::GetWeight() const
|
|
{
|
|
return m_nWeight;
|
|
}
|
|
#endif |