X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Image.cxx;h=3556d543d3a04f24ae84648eb63d03f7012a7458;hb=c374597f70481110faa82dc189353d689d66bc0c;hp=3ca786fcff119444b3c9b670332916c862dee999;hpb=90314a195b4d4951ba61a7333cb0de16c253dea9;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Image.cxx b/src/HYDROData/HYDROData_Image.cxx index 3ca786fc..3556d543 100644 --- a/src/HYDROData/HYDROData_Image.cxx +++ b/src/HYDROData/HYDROData_Image.cxx @@ -20,7 +20,6 @@ #include -static const Standard_GUID GUID_MUST_BE_UPDATED("80f2bb81-3873-4631-8ddd-940d2119f000"); static const Standard_GUID GUID_SELF_SPLITTED("997995aa-5c19-40bf-9a60-ab4b70ad04d8"); static const Standard_GUID GUID_HAS_LOCAL_POINTS("FD8841AA-FC44-42fa-B6A7-0F682CCC6F27"); static const Standard_GUID GUID_HAS_GLOBAL_POINTS("330D0E81-742D-4ea3-92D4-484877CFA7C1"); @@ -199,9 +198,9 @@ void HYDROData_Image::Update() if ( !aDocument.IsNull() ) { // Change the states of this and all depended images - MustBeUpdated( true ); + SetToUpdate( true ); HYDROData_Tool::SetMustBeUpdatedImages( aDocument ); - MustBeUpdated( false ); + SetToUpdate( false ); } } @@ -434,7 +433,7 @@ void HYDROData_Image::RemoveAllReferences() SetIsSelfSplitted( false ); } - MustBeUpdated( false ); + SetToUpdate( false ); bool anIsByTwoPoints = IsByTwoPoints(); @@ -730,20 +729,6 @@ QByteArray HYDROData_Image::Args() const return QByteArray(aData, aLen); } -void HYDROData_Image::MustBeUpdated(bool theFlag) -{ - if (theFlag) { - TDataStd_UAttribute::Set(myLab, GUID_MUST_BE_UPDATED); - } else { - myLab.ForgetAttribute(GUID_MUST_BE_UPDATED); - } -} - -bool HYDROData_Image::MustBeUpdated() const -{ - return myLab.IsAttribute(GUID_MUST_BE_UPDATED); -} - void HYDROData_Image::SetIsSelfSplitted(bool theFlag) { if (theFlag) {