Salome HOME
Issue #412: Crash on delete sketch line with constraints
[modules/shaper.git] / src / ModelAPI / ModelAPI_Result.cpp
index 0968507029e8fd55ad477471aa6006306fa73477..d435920149f5dc4e44a33c7421caae8750c59771 100644 (file)
@@ -1,19 +1,29 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModelAPI_Result.cpp
 // Created:     07 Jul 2014
 // Author:      Mikhail PONIKAROV
 
 #include "ModelAPI_Result.h"
+#include <ModelAPI_Events.h>
+#include <ModelAPI_Data.h>
+#include <ModelAPI_Attribute.h>
+#include <Events_Loop.h>
 
-bool ModelAPI_Result::isConcealed() {
-  return myIsConcealed;
-}
+ModelAPI_Result::~ModelAPI_Result()
+{
 
-void ModelAPI_Result::setIsConcealed(const bool theValue) {
-  myIsConcealed = theValue;
 }
 
-ModelAPI_Result::ModelAPI_Result() {
+std::shared_ptr<GeomAPI_Shape> ModelAPI_Result::shape()
+{
+  return std::shared_ptr<GeomAPI_Shape>();
 }
 
-ModelAPI_Result::~ModelAPI_Result() {
+void ModelAPI_Result::attributeChanged(const std::string& theID)
+{
+  static Events_Loop* aLoop = Events_Loop::loop();
+  static Events_ID EVENT_DISP = aLoop->eventByName(EVENT_OBJECT_TO_REDISPLAY);
+  static const ModelAPI_EventCreator* aECreator = ModelAPI_EventCreator::get();
+  aECreator->sendUpdated(data()->attribute(theID)->owner(), EVENT_DISP);
 }