diff Samples/Common/MeasureTrackers.cpp @ 645:1e9ed656318e

Merge + ongoing measure work
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 13 May 2019 15:12:56 +0200
parents f939f449482c 104c379f3f1b
children
line wrap: on
line diff
--- a/Samples/Common/MeasureTrackers.cpp	Fri May 10 16:15:55 2019 +0200
+++ b/Samples/Common/MeasureTrackers.cpp	Mon May 13 15:12:56 2019 +0200
@@ -17,15 +17,15 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  **/
-
-#include "MeasureTrackers.h"
+
+#include "MeasureTrackers.h"
 #include <Core/OrthancException.h>
-
-using namespace Orthanc;
-
-namespace OrthancStone
-{
-
+
+using namespace Orthanc;
+
+namespace OrthancStone
+{
+
   CreateMeasureTracker::CreateMeasureTracker(
     Scene2D&                        scene,
     std::vector<TrackerCommandPtr>& undoStack,
@@ -35,20 +35,20 @@
     , undoStack_(undoStack)
     , measureTools_(measureTools)
     , commitResult_(true)
-  {
-  }
-
-  void CreateMeasureTracker::Cancel()
-  {
-    commitResult_ = false;
-    active_ = false;
-  }
+  {
+  }
+
+  void CreateMeasureTracker::Cancel()
+  {
+    commitResult_ = false;
+    active_ = false;
+  }
 
   bool CreateMeasureTracker::IsActive() const
   {
     return active_;
   }
-
+
   CreateMeasureTracker::~CreateMeasureTracker()
   {
     // if the tracker completes successfully, we add the command
@@ -60,8 +60,6 @@
     else
       command_->Undo();
   }
-  
+}
 
-}
-
-
+