X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultConstruction.cpp;h=a882b99d6a9ad5dc41bd8b318e2432d301c4e1de;hb=45400ecc7d183dd2d2edb875bdb36f8fc031bc2c;hp=11cf883cd60908c0915e0fbf373948d640b0cf24;hpb=f4870a6999547ac314abbe4fd5da1803f5ec9841;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultConstruction.cpp b/src/Model/Model_ResultConstruction.cpp index 11cf883cd..a882b99d6 100644 --- a/src/Model/Model_ResultConstruction.cpp +++ b/src/Model/Model_ResultConstruction.cpp @@ -10,6 +10,8 @@ #include #include #include +#include +#include void Model_ResultConstruction::initAttributes() { @@ -29,6 +31,8 @@ void Model_ResultConstruction::colorConfigInfo(std::string& theSection, std::str void Model_ResultConstruction::setShape(std::shared_ptr 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; @@ -44,11 +48,9 @@ std::shared_ptr Model_ResultConstruction::shape() Model_ResultConstruction::Model_ResultConstruction() { - myIsDisabled = true; // by default it is not initialized and false to be after created myIsInHistory = true; myIsInfinite = false; myFacesUpToDate = false; - setIsConcealed(false); } void Model_ResultConstruction::setIsInHistory(const bool isInHistory) @@ -74,7 +76,7 @@ int Model_ResultConstruction::facesNum() } myFacesUpToDate = true; } - return myFaces.size(); + return int(myFaces.size()); } std::shared_ptr Model_ResultConstruction::face(const int theIndex) @@ -91,3 +93,8 @@ void Model_ResultConstruction::setInfinite(const bool theInfinite) { myIsInfinite = theInfinite; } + +void Model_ResultConstruction::setIsConcealed(const bool theValue) +{ + // do nothing: the construction element is never consealed +}