You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/Src/nmNum/nmPlot/nmObjLineMeasureTool.cpp

26 lines
535 B
C++

#include <QPainter>
#include "nmObjLine.h"
#include "nmObjLineMeasureTool.h"
#include "nmDataLogFile.h"
nmObjLineMeasureTool::nmObjLineMeasureTool()
{
setText(tr("nObjLineMeasureTool"));
m_oNot = NMOT_Line_Measure;
nmDataLogFile::getInstance()->writeLog(" nmObjLineMeasureTool ++++++++ " + QString::number(m_oNot));
}
bool nmObjLineMeasureTool::onLeftDown(const QPointF& pt)
{
if (NULL == m_pObj)
{
emit sigMeasureStarted();
m_ptStart = pt;
m_bTracking = true;
return true;
}
return nmObjLineTool::onLeftDown(pt);
}