X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHYDROData%2FHYDROData_Object.cxx;h=46d5b3a59c819bde53d467624d687d52b17cb8ca;hb=5f8ad21d6ab7bf0a438ff106c073a582d7198bd8;hp=fe71e385569bfe734eb73ea5afe2c925ca650543;hpb=94f079c9197f9655e023e5047feffea452b4a1fe;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Object.cxx b/src/HYDROData/HYDROData_Object.cxx index fe71e385..46d5b3a5 100644 --- a/src/HYDROData/HYDROData_Object.cxx +++ b/src/HYDROData/HYDROData_Object.cxx @@ -3,9 +3,14 @@ #include #include #include +#include +#include +#include #include -static const Standard_GUID GUID_VISIBILITY("d6a715c5-9c86-4adc-8a6c-13188f3ad94b"); +#include +#include +#include IMPLEMENT_STANDARD_HANDLE(HYDROData_Object,MMgt_TShared) IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Object,MMgt_TShared) @@ -31,18 +36,19 @@ void HYDROData_Object::SetName(const QString& theName) TDataStd_Name::Set(myLab, TCollection_ExtendedString(theName.toLatin1().constData())); } -bool HYDROData_Object::GetVisibility() const +QStringList HYDROData_Object::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const { - return myLab.IsAttribute(GUID_VISIBILITY); + QStringList anEmptyList; + return anEmptyList; } -void HYDROData_Object::SetVisibility(bool theState) +void HYDROData_Object::Update( const bool theIsForce ) { - if (theState) { - TDataStd_UAttribute::Set(myLab, GUID_VISIBILITY); - } else { - myLab.ForgetAttribute(GUID_VISIBILITY); - } +} + +QVariant HYDROData_Object::GetDataVariant() +{ + return QVariant(); } bool HYDROData_Object::IsRemoved() const @@ -100,7 +106,7 @@ void HYDROData_Object::SaveByteArray(const int theTag, } } -const char* HYDROData_Object::ByteArray(const int theTag, int& theLen) +const char* HYDROData_Object::ByteArray(const int theTag, int& theLen) const { TDF_Label aLab = theTag == 0 ? myLab : myLab.FindChild(theTag); Handle(TDataStd_ByteArray) aData;