X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultPart.cpp;h=cc1666e5b3a43976ba1d61d718bebbcc69565d1d;hb=2f89053146098946372bae4d1a3fe2e5272ab9e2;hp=98319c4749f33fc524bba9e5ee00662d21a87043;hpb=b324f4d8976eb751b20c447e24c7369a47c3cf2b;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultPart.cpp b/src/Model/Model_ResultPart.cpp index 98319c474..cc1666e5b 100644 --- a/src/Model/Model_ResultPart.cpp +++ b/src/Model/Model_ResultPart.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_ResultPart.cpp // Created: 07 Jul 2014 // Author: Mikhail PONIKAROV @@ -7,21 +9,22 @@ #include #include -boost::shared_ptr Model_ResultPart::partDoc() +std::shared_ptr Model_ResultPart::partDoc() { return data()->document("PartDocument")->value(); } -boost::shared_ptr Model_ResultPart::owner() +std::shared_ptr Model_ResultPart::owner() { - return boost::shared_ptr(); // return empty pointer + return std::shared_ptr(); // return empty pointer } Model_ResultPart::Model_ResultPart() { + setIsConcealed(false); } -void Model_ResultPart::setData(boost::shared_ptr theData) +void Model_ResultPart::setData(std::shared_ptr theData) { ModelAPI_Result::setData(theData); if (theData) { @@ -31,10 +34,10 @@ void Model_ResultPart::setData(boost::shared_ptr theData) void Model_ResultPart::activate() { - boost::shared_ptr aDocRef = data()->document(DOC_REF()); + std::shared_ptr aDocRef = data()->document(DOC_REF()); if (!aDocRef->value()) { // create (or open) a document if it is not yet created - boost::shared_ptr aDoc = document()->subDocument(data()->name()); + std::shared_ptr aDoc = document()->subDocument(data()->name()); if (aDoc) { aDocRef->setValue(aDoc); }