Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom into Dev_1.1.0
[modules/shaper.git] / src / ModelAPI / ModelAPI_Result.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModelAPI_Result.cpp
4 // Created:     07 Jul 2014
5 // Author:      Mikhail PONIKAROV
6
7 #include "ModelAPI_Result.h"
8 #include <ModelAPI_Events.h>
9 #include <ModelAPI_Data.h>
10 #include <ModelAPI_Attribute.h>
11 #include <Events_Loop.h>
12
13 ModelAPI_Result::~ModelAPI_Result()
14 {
15
16 }
17
18 std::shared_ptr<GeomAPI_Shape> ModelAPI_Result::shape()
19 {
20   return std::shared_ptr<GeomAPI_Shape>();
21 }
22
23 void ModelAPI_Result::attributeChanged(const std::string& theID)
24 {
25   static Events_Loop* aLoop = Events_Loop::loop();
26   static Events_ID EVENT_DISP = aLoop->eventByName(EVENT_OBJECT_TO_REDISPLAY);
27   static const ModelAPI_EventCreator* aECreator = ModelAPI_EventCreator::get();
28   aECreator->sendUpdated(data()->attribute(theID)->owner(), EVENT_DISP);
29 }