mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
#3805 Measurement. Double click in view to reset measurement
This commit is contained in:
1 parent
d6f4962ed7
commit
21403f4161
8 files changed
+170
-3
No files matched your search
@@ -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