mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3805 Measurement. Double click in view to reset measurement
This commit is contained in:
@@ -59,9 +59,7 @@ void RimMeasurement::setMeasurementMode(bool measurementMode)
|
||||
else
|
||||
{
|
||||
RiuViewerCommands::removePickEventHandlerIfActive(RicMeasurementPickEventHandler::instance());
|
||||
|
||||
m_pointsInDomain.clear();
|
||||
updateView();
|
||||
removeAllPoints();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,6 +88,15 @@ std::vector<cvf::Vec3d> RimMeasurement::pointsInDomain() const
|
||||
return m_pointsInDomain;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimMeasurement::removeAllPoints()
|
||||
{
|
||||
m_pointsInDomain.clear();
|
||||
updateView();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -59,6 +59,8 @@ public:
|
||||
void addPointInDomain(const Vec3d& pointInDomain);
|
||||
std::vector<Vec3d> pointsInDomain() const;
|
||||
|
||||
void removeAllPoints();
|
||||
|
||||
QString label() const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user