Salome HOME
refs #561: the draft data model for Strickler table
[modules/hydro.git] / src / HYDROData / HYDROData_River.cxx
index 27be9ea99109af1c31da2b0da07c1be0ba51b113..2bb5cef767d311822810ed892643bf54772fab89 100644 (file)
@@ -1,3 +1,20 @@
+// Copyright (C) 2014-2015  EDF-R&D
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #include "HYDROData_River.h"
 
@@ -23,12 +40,28 @@ HYDROData_River::~HYDROData_River()
 QStringList HYDROData_River::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
 {
   QStringList aResList = dumpObjectCreation( theTreatedObjects );
+  QString aName = GetObjPyName();
 
   // TODO
 
+  aResList << QString( "" );
+  aResList << QString( "%1.Update();" ).arg( aName );
+  aResList << QString( "" );
+
   return aResList;
 }
 
+void HYDROData_River::Update()
+{
+  // TODO
+  HYDROData_NaturalObject::Update();
+}
+
+bool HYDROData_River::IsHas2dPrs() const
+{
+  return true;
+}
+
 TopoDS_Shape HYDROData_River::GetTopShape() const
 {
   // TODO
@@ -41,5 +74,10 @@ TopoDS_Shape HYDROData_River::GetShape3D() const
   return getShape3D();
 }
 
+void HYDROData_River::UpdateLocalCS( double theDx, double theDy )
+{
+  //TODO
+}
+