]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROData/HYDROData_River.cxx
Salome HOME
The model acces is done by label instead of object.
[modules/hydro.git] / src / HYDROData / HYDROData_River.cxx
1
2 #include "HYDROData_River.h"
3
4 #include "HYDROData_Document.h"
5
6 #include <TopoDS_Shape.hxx>
7
8 #include <QStringList>
9
10 #define PYTHON_RIVER_ID "KIND_RIVER"
11
12 IMPLEMENT_STANDARD_HANDLE(HYDROData_River,HYDROData_NaturalObject)
13 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_River,HYDROData_NaturalObject)
14
15
16 HYDROData_River::HYDROData_River()
17 : HYDROData_NaturalObject()
18 {
19 }
20
21 HYDROData_River::~HYDROData_River()
22 {
23 }
24
25 QStringList HYDROData_River::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
26 {
27   QStringList aResList;
28
29   Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myLab );
30   if ( aDocument.IsNull() )
31     return aResList;
32
33   QString aDocName = aDocument->GetDocPyName();
34   QString aRiverName = GetName();
35
36   aResList << QString( "%1 = %2.CreateObject( %3 );" )
37               .arg( aRiverName ).arg( aDocName ).arg( PYTHON_RIVER_ID );
38   aResList << QString( "%1.SetName( \"%2\" );" )
39               .arg( aRiverName ).arg( aRiverName );
40   aResList << QString( "" );
41
42   // TODO
43
44   return aResList;
45 }
46
47 TopoDS_Shape HYDROData_River::GetTopShape() const
48 {
49   // TODO
50   return getTopShape();
51 }
52
53 TopoDS_Shape HYDROData_River::GetShape3D() const
54 {
55   // TODO
56   return getShape3D();
57 }
58
59
60