#include <Model_ResultBody.h>
#include <Model_BodyBuilder.h>
-#include <ModelAPI_AttributeIntArray.h>
+#include <ModelAPI_ResultCompSolid.h>
#include <ModelAPI_Tools.h>
#include <Config_PropManager.h>
#include <ModelAPI_Events.h>
myConnect = ConnectionNotComputed;
}
-void Model_ResultBody::initAttributes()
-{
- // append the color attribute. It is empty, the attribute will be filled by a request
- DataPtr aData = data();
- aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::typeId());
-}
-
void Model_ResultBody::colorConfigInfo(std::string& theSection, std::string& theName,
std::string& theDefault)
{
if (aResult) { // hidden unit must be redisplayed (hidden)
ModelAPI_EventCreator::get()->sendDeleted(document(), this->groupName());
// redisplay for the viewer (it must be disappeared also)
- static Events_ID EVENT_DISP =
+ static Events_ID EVENT_DISP =
Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY);
ModelAPI_EventCreator::get()->sendUpdated(data()->owner(), EVENT_DISP);
} else { // was not concealed become concealed => delete event