Salome HOME
analyse HYDRO_tests
[modules/hydro.git] / src / HYDROData / HYDROData_LISM.h
1 // Copyright (C) 2014-2015  EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
6 //
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10 // Lesser General Public License for more details.
11 //
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
15 //
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
17 //
18
19 #ifndef HYDROData_LISM_HeaderFile
20 #define HYDROData_LISM_HeaderFile
21
22 #include "HYDROData_Bathymetry.h"
23 #include "HYDROData_Profile.h"
24
25 #include <HYDROData_PolylineXY.h>
26 #include <HYDROData_Entity.h>
27 #include <HYDROData_Stream.h>
28
29 /**\class HYDROData_LISM
30  * \
31  */
32 class HYDROData_LISM : public HYDROData_Bathymetry
33 {
34 protected:
35   /**
36    * Enumeration of tags corresponding to the persistent object parameters.
37    */
38   enum DataTag
39   {
40     DataTag_First = HYDROData_Bathymetry::DataTag_First + 100, ///< first tag, to reserve
41     DataTag_Profiles,
42     DataTag_HaxStep,
43     DataTag_NbProfilePoints,
44     DataTag_HydraulicAxis,    
45     DataTag_LeftBank,
46     DataTag_RightBank,
47     DataTag_LeftBankShape,
48     DataTag_RightBankShape,
49     DataTag_InletShape,
50     DataTag_OutletShape,
51     DataTag_3DShape,
52     DataTag_2DShape 
53   };
54
55 public:
56
57   HYDRODATA_EXPORT HYDROData_LISM();
58   virtual HYDRODATA_EXPORT ~HYDROData_LISM();
59
60   DEFINE_STANDARD_RTTIEXT( HYDROData_LISM, HYDROData_Bathymetry );
61
62   HYDRODATA_EXPORT HYDROData_SequenceOfObjects GetProfiles() const;
63   HYDRODATA_EXPORT void SetProfiles( const HYDROData_SequenceOfObjects& );
64
65   HYDRODATA_EXPORT bool SetLeftBank( const Handle(HYDROData_PolylineXY)& theBank );
66   HYDRODATA_EXPORT Handle(HYDROData_PolylineXY) GetLeftBank() const;
67
68   HYDRODATA_EXPORT bool SetRightBank( const Handle(HYDROData_PolylineXY)& theBank );
69   HYDRODATA_EXPORT Handle(HYDROData_PolylineXY) GetRightBank() const;
70                    
71   HYDRODATA_EXPORT bool SetHydraulicAxis( const Handle(HYDROData_PolylineXY)& theAxis );
72   HYDRODATA_EXPORT Handle(HYDROData_PolylineXY) GetHydraulicAxis() const;
73
74   HYDRODATA_EXPORT int GetNbProfilePoints() const;
75   HYDRODATA_EXPORT void SetNbProfilePoints( int );
76
77   HYDRODATA_EXPORT double GetHaxStep() const;
78   HYDRODATA_EXPORT void SetHaxStep( double );
79
80   HYDRODATA_EXPORT virtual void Update();
81
82   HYDRODATA_EXPORT void GetShapePresentations( HYDROData_Stream::PrsDefinition& prsDef);
83
84
85 };
86
87
88
89
90 #endif