+void HYDROData_Bathymetry::SetFilePath( const TCollection_AsciiString& theFilePath )
+{
+ TDataStd_AsciiString::Set( myLab.FindChild( DataTag_FilePath ), theFilePath );
+}
+
+TCollection_AsciiString HYDROData_Bathymetry::GetFilePath() const
+{
+ TCollection_AsciiString aRes;
+
+ TDF_Label aLabel = myLab.FindChild( DataTag_FilePath, false );
+ if ( !aLabel.IsNull() )
+ {
+ Handle(TDataStd_AsciiString) anAsciiStr;
+ if ( aLabel.FindAttribute( TDataStd_AsciiString::GetID(), anAsciiStr ) )
+ aRes = anAsciiStr->Get();
+ }
+
+ return aRes;
+}
+
+void HYDROData_Bathymetry::SetAltitudesInverted( const bool theIsInverted,
+ const bool theIsUpdate )
+{
+ bool anIsAltitudesInverted = IsAltitudesInverted();
+ if ( anIsAltitudesInverted == theIsInverted )
+ return;
+
+ TDataStd_Integer::Set( myLab.FindChild( DataTag_AltitudesInverted ), (Standard_Integer)theIsInverted );
+
+ SetToUpdate( true );
+
+ if ( !theIsUpdate )
+ return;
+
+ // Update altitude points
+ AltitudePoints anAltitudePoints = GetAltitudePoints();
+ if ( anAltitudePoints.IsEmpty() )
+ return;
+
+ AltitudePoints::Iterator anIter( anAltitudePoints );
+ for ( ; anIter.More(); anIter.Next() )
+ {
+ AltitudePoint& aPoint = anIter.ChangeValue();
+ aPoint.SetZ( aPoint.Z() * -1 );
+ }
+
+ SetAltitudePoints( anAltitudePoints );
+}
+
+bool HYDROData_Bathymetry::IsAltitudesInverted() const
+{
+ bool aRes = false;
+
+ TDF_Label aLabel = myLab.FindChild( DataTag_AltitudesInverted, false );
+ if ( !aLabel.IsNull() )
+ {
+ Handle(TDataStd_Integer) anIntVal;
+ if ( aLabel.FindAttribute( TDataStd_Integer::GetID(), anIntVal ) )
+ aRes = (bool)anIntVal->Get();
+ }
+
+ return aRes;
+}
+
+bool HYDROData_Bathymetry::ImportFromFile( const TCollection_AsciiString& theFileName )