Salome HOME
Changes for dumping image object to python script.
[modules/hydro.git] / src / HYDROData / HYDROData_Object.cxx
index fe71e385569bfe734eb73ea5afe2c925ca650543..46d5b3a59c819bde53d467624d687d52b17cb8ca 100644 (file)
@@ -3,9 +3,14 @@
 #include <TDataStd_Name.hxx>
 #include <TDataStd_ByteArray.hxx>
 #include <TDataStd_UAttribute.hxx>
+#include <TDataStd_IntegerArray.hxx>
+#include <TDataStd_BooleanArray.hxx>
+#include <TDataStd_RealArray.hxx>
 #include <TDF_CopyLabel.hxx>
 
-static const Standard_GUID GUID_VISIBILITY("d6a715c5-9c86-4adc-8a6c-13188f3ad94b");
+#include <QString>
+#include <QStringList>
+#include <QVariant>
 
 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;