[TD]add section line marks for simple section

This commit is contained in:
wandererfan
2022-11-13 17:05:00 -05:00
committed by WandererFan
parent 93133040e8
commit 26d7fe14e1
6 changed files with 96 additions and 50 deletions

View File

@@ -123,31 +123,6 @@ using namespace TechDraw;
using namespace std;
using DU = DrawUtil;
//class to store geometry of points where the section line changes direction
ChangePoint::ChangePoint(QPointF location, QPointF preDirection, QPointF postDirection)
{
m_location = location;
m_preDirection = preDirection;
m_postDirection = postDirection;
}
ChangePoint::ChangePoint(gp_Pnt location, gp_Dir preDirection, gp_Dir postDirection)
{
m_location.setX(location.X());
m_location.setY(location.Y());
m_preDirection.setX(preDirection.X());
m_preDirection.setY(preDirection.Y());
m_postDirection.setX(postDirection.X());
m_postDirection.setY(postDirection.Y());
}
void ChangePoint::scale(double scaleFactor)
{
m_location = m_location * scaleFactor;
m_preDirection = m_preDirection * scaleFactor;
m_postDirection = m_postDirection * scaleFactor;
}
//===========================================================================
// DrawComplexSection
//===========================================================================