1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_Result.cpp
4 // Created: 07 Jul 2014
5 // Author: Mikhail PONIKAROV
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>
13 ModelAPI_Result::~ModelAPI_Result()
18 std::shared_ptr<GeomAPI_Shape> ModelAPI_Result::shape()
20 return std::shared_ptr<GeomAPI_Shape>();
23 void ModelAPI_Result::attributeChanged(const std::string& theID)
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);