diff Framework/Widgets/WorldSceneWidget.cpp @ 61:ca644004d2ee wasm

MAJOR - removal of Start/Stop and observers in IWidget
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 May 2017 17:55:13 +0200
parents d2adc6189a95
children 298f375dcb68
line wrap: on
line diff
--- a/Framework/Widgets/WorldSceneWidget.cpp	Wed May 10 16:10:47 2017 +0200
+++ b/Framework/Widgets/WorldSceneWidget.cpp	Wed May 10 17:55:13 2017 +0200
@@ -282,26 +282,10 @@
 
   void WorldSceneWidget::SetInteractor(IWorldSceneInteractor& interactor)
   {
-    if (IsStarted())
-    {
-      throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls);
-    }
-
     interactor_ = &interactor;
   }
 
 
-  void WorldSceneWidget::Start()
-  {
-    SetSceneExtent(view_);
-    
-    WidgetBase::Start();
-
-    ViewChangeFunctor functor(view_);
-    observers_.Notify(this, functor);
-  }
-      
-
   void WorldSceneWidget::SetDefaultView()
   {
     SetSceneExtent(view_);