Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide connection of new features in SALOME module
[modules/shaper.git]
/
src
/
Model
/
Model_AttributeReference.cpp
diff --git
a/src/Model/Model_AttributeReference.cpp
b/src/Model/Model_AttributeReference.cpp
index 105639b742fdda4b3b8b17887361e436875b2ff3..adcfe4ab46e0b1d62d038f8408dd7568a029afe7 100644
(file)
--- a/
src/Model/Model_AttributeReference.cpp
+++ b/
src/Model/Model_AttributeReference.cpp
@@
-11,7
+11,7
@@
using namespace std;
using namespace std;
-void Model_AttributeReference::setValue(
boost::shared_ptr<ModelAPI_Feature>
theFeature)
+void Model_AttributeReference::setValue(
FeaturePtr
theFeature)
{
if (value() != theFeature) {
boost::shared_ptr<Model_Data> aData =
{
if (value() != theFeature) {
boost::shared_ptr<Model_Data> aData =
@@
-19,7
+19,7
@@
void Model_AttributeReference::setValue(boost::shared_ptr<ModelAPI_Feature> theF
if (myRef.IsNull()) {
boost::shared_ptr<Model_Data> aMyData =
boost::dynamic_pointer_cast<Model_Data>(owner()->data());
if (myRef.IsNull()) {
boost::shared_ptr<Model_Data> aMyData =
boost::dynamic_pointer_cast<Model_Data>(owner()->data());
- TDF_Reference::Set(aMyData->label(), aData->label());
+
myRef =
TDF_Reference::Set(aMyData->label(), aData->label());
} else {
myRef->Set(aData->label());
}
} else {
myRef->Set(aData->label());
}
@@
-30,7
+30,7
@@
void Model_AttributeReference::setValue(boost::shared_ptr<ModelAPI_Feature> theF
}
}
}
}
-
boost::shared_ptr<ModelAPI_Feature>
Model_AttributeReference::value()
+
FeaturePtr
Model_AttributeReference::value()
{
if (!myRef.IsNull()) {
boost::shared_ptr<Model_Document> aDoc =
{
if (!myRef.IsNull()) {
boost::shared_ptr<Model_Document> aDoc =
@@
-41,7
+41,7
@@
boost::shared_ptr<ModelAPI_Feature> Model_AttributeReference::value()
}
}
// not initialized
}
}
// not initialized
- return
boost::shared_ptr<ModelAPI_Feature>
();
+ return
FeaturePtr
();
}
Model_AttributeReference::Model_AttributeReference(TDF_Label& theLabel)
}
Model_AttributeReference::Model_AttributeReference(TDF_Label& theLabel)