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.
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.
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
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef HYDROData_LISM_HeaderFile
20 #define HYDROData_LISM_HeaderFile
22 #include "HYDROData_Bathymetry.h"
23 #include "HYDROData_Profile.h"
25 #include <HYDROData_PolylineXY.h>
26 #include <HYDROData_Entity.h>
27 #include <HYDROData_Stream.h>
29 /**\class HYDROData_LISM
32 class HYDROData_LISM : public HYDROData_Bathymetry
36 * Enumeration of tags corresponding to the persistent object parameters.
40 DataTag_First = HYDROData_Bathymetry::DataTag_First + 100, ///< first tag, to reserve
43 DataTag_NbProfilePoints,
44 DataTag_HydraulicAxis,
47 DataTag_LeftBankShape,
48 DataTag_RightBankShape,
57 HYDRODATA_EXPORT HYDROData_LISM();
58 virtual HYDRODATA_EXPORT ~HYDROData_LISM();
60 DEFINE_STANDARD_RTTIEXT( HYDROData_LISM, HYDROData_Bathymetry );
62 HYDRODATA_EXPORT HYDROData_SequenceOfObjects GetProfiles() const;
63 HYDRODATA_EXPORT void SetProfiles( const HYDROData_SequenceOfObjects& );
65 HYDRODATA_EXPORT bool SetLeftBank( const Handle(HYDROData_PolylineXY)& theBank );
66 HYDRODATA_EXPORT Handle(HYDROData_PolylineXY) GetLeftBank() const;
68 HYDRODATA_EXPORT bool SetRightBank( const Handle(HYDROData_PolylineXY)& theBank );
69 HYDRODATA_EXPORT Handle(HYDROData_PolylineXY) GetRightBank() const;
71 HYDRODATA_EXPORT bool SetHydraulicAxis( const Handle(HYDROData_PolylineXY)& theAxis );
72 HYDRODATA_EXPORT Handle(HYDROData_PolylineXY) GetHydraulicAxis() const;
74 HYDRODATA_EXPORT int GetNbProfilePoints() const;
75 HYDRODATA_EXPORT void SetNbProfilePoints( int );
77 HYDRODATA_EXPORT double GetHaxStep() const;
78 HYDRODATA_EXPORT void SetHaxStep( double );
80 HYDRODATA_EXPORT virtual void Update();
82 HYDRODATA_EXPORT void GetShapePresentations( HYDROData_Stream::PrsDefinition& prsDef);