Salome HOME
refs #1331: automatic test for profiles points in GUI
[modules/hydro.git] / src / HYDROPy / HYDROData_Bathymetry.sip
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 %ExportedHeaderCode
20 #include <HYDROData_Bathymetry.h>
21 %End
22
23 class HYDROData_Bathymetry : public HYDROData_IAltitudeObject
24 {
25 %ConvertToSubClassCode
26     switch ( sipCpp->GetKind() )
27     {
28       case KIND_BATHYMETRY:
29         sipClass = sipClass_HYDROData_Bathymetry;
30         break;
31
32       default:
33         // We don't recognise the type.
34         sipClass = NULL;
35     }
36 %End
37
38 public:
39   struct AltitudePoint
40   {
41     double X;
42     double Y;
43     double Z;
44   };
45   typedef std::vector<HYDROData_Bathymetry::AltitudePoint> AltitudePoints;
46
47
48 %TypeHeaderCode
49 #include <HYDROData_Bathymetry.h>
50 %End
51
52 public:      
53   virtual void SetAltitudePoints( const HYDROData_Bathymetry::AltitudePoints& );
54   HYDROData_Bathymetry::AltitudePoints GetAltitudePoints() const;
55
56   void RemoveAltitudePoints();
57
58 public:
59   void SetAltitudesInverted( const bool theIsInverted, const bool theIsUpdate = true );
60   bool IsAltitudesInverted() const;
61
62   bool ImportFromFiles( const QStringList& theFileNames );
63   bool ImportFromFile( const QString& theFileName );
64
65 protected:
66   HYDROData_Bathymetry();
67   ~HYDROData_Bathymetry();
68 };
69
70