1 // File: ModelAPI_AttributeDouble.cxx
3 // Author: Mikhail PONIKAROV
5 #include "Model_AttributeDouble.h"
9 void Model_AttributeDouble::setValue(const double theValue)
11 myReal->Set(theValue);
14 double Model_AttributeDouble::value()
19 Model_AttributeDouble::Model_AttributeDouble(TDF_Label& theLabel)
21 // check the attribute could be already presented in this doc (after load document)
22 if (!theLabel.FindAttribute(TDataStd_Real::GetID(), myReal)) {
23 // create attribute: not initialized by value yet, just zero
24 myReal = TDataStd_Real::Set(theLabel, 0.);