X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultCompSolid.cpp;h=687b0ea087c94c4c73b15f4ccab4067a6210a473;hb=176403004ff97696f3c0b5f8bdf48692177fb34a;hp=87241ee29c474db6a7a3b7d313c673febfc2c24d;hpb=03b823cbbe43236117bc50c34398f3ce273f729b;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultCompSolid.cpp b/src/Model/Model_ResultCompSolid.cpp index 87241ee29..687b0ea08 100755 --- a/src/Model/Model_ResultCompSolid.cpp +++ b/src/Model/Model_ResultCompSolid.cpp @@ -10,8 +10,6 @@ #include #include #include -#include -#include #include #include #include @@ -32,15 +30,10 @@ Model_ResultCompSolid::~Model_ResultCompSolid() updateSubs(std::shared_ptr()); // erase sub-results } -void Model_ResultCompSolid::initAttributes() +void Model_ResultCompSolid::store(const std::shared_ptr& theShape, + const bool theIsStoreSameShapes) { - DataPtr aData = data(); - aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::typeId()); -} - -void Model_ResultCompSolid::store(const std::shared_ptr& theShape) -{ - ModelAPI_ResultCompSolid::store(theShape); + ModelAPI_ResultCompSolid::store(theShape, theIsStoreSameShapes); updateSubs(theShape); } @@ -60,7 +53,7 @@ void Model_ResultCompSolid::storeModified(const std::shared_ptr& int Model_ResultCompSolid::numberOfSubs(bool forTree) const { - return mySubs.size(); + return int(mySubs.size()); } std::shared_ptr Model_ResultCompSolid::subResult(const int theIndex, @@ -86,7 +79,8 @@ void Model_ResultCompSolid::colorConfigInfo(std::string& theSection, std::string theDefault = DEFAULT_COLOR(); } -bool Model_ResultCompSolid::setDisabled(std::shared_ptr theThis, const bool theFlag) +bool Model_ResultCompSolid::setDisabled(std::shared_ptr theThis, + const bool theFlag) { bool aChanged = ModelAPI_ResultBody::setDisabled(theThis, theFlag); if (aChanged) { // state is changed, so modifications are needed