#include <Model_ResultConstruction.h>
-#include <ModelAPI_AttributeIntArray.h>
#include <Config_PropManager.h>
#include <GeomAPI_PlanarEdges.h>
#include <GeomAlgoAPI_SketchBuilder.h>
-
-void Model_ResultConstruction::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());
-}
+#include <Events_Loop.h>
+#include <ModelAPI_Events.h>
void Model_ResultConstruction::colorConfigInfo(std::string& theSection, std::string& theName,
std::string& theDefault)
void Model_ResultConstruction::setShape(std::shared_ptr<GeomAPI_Shape> theShape)
{
if (myShape != theShape && (!theShape.get() || !theShape->isEqual(myShape))) {
+ static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_UPDATED);
+ ModelAPI_EventCreator::get()->sendUpdated(data()->owner(), anEvent);
myShape = theShape;
if (theShape.get()) {
myFacesUpToDate = false;
}
myFacesUpToDate = true;
}
- return myFaces.size();
+ return int(myFaces.size());
}
std::shared_ptr<GeomAPI_Face> Model_ResultConstruction::face(const int theIndex)