Salome HOME
The data model has been rolled back to previous version.
[modules/hydro.git] / src / HYDROData / HYDROData_Lambert93.h
index 47f087541b78d31ab20635a181fc4c8b3fb6a010..b29d145dcc86d33856df5f7299f49f58d6201b70 100755 (executable)
@@ -1,22 +1,45 @@
-\r
-#ifndef HYDROData_Lambert93_HeaderFile\r
-#define HYDROData_Lambert93_HeaderFile\r
-\r
-class HYDROData_Lambert93\r
-{\r
-public:\r
-  static double toRad( double theDeg );\r
-  static double toDeg( double theRad );\r
-\r
-  static void toXY( double theLatitudeDeg, double theLongitudeDeg,\r
-                    double& theX, double& theY );\r
-  static void toGeo( double theX, double theY,\r
-                     double& theLatitudeDeg, double& theLongitudeDeg,\r
-                     double theEps );\r
-private:\r
-  static double calc_rho( double phi );\r
-  static double calc_phi_inv( double rho, double eps );\r
-  static double calc_phi_ign( double rho, double eps );\r
-};\r
-\r
-#endif\r
+#ifndef HYDROData_Lambert93_HeaderFile
+#define HYDROData_Lambert93_HeaderFile
+
+#include <HYDROData.h>
+
+class HYDROData_Lambert93
+{
+public:
+  static double HYDRODATA_EXPORT  toRad( double theDeg );
+  static double HYDRODATA_EXPORT  toDeg( double theRad );
+
+  static void HYDRODATA_EXPORT    toXY( double theLatitudeDeg, double theLongitudeDeg,
+                                        double& theX, double& theY );
+
+  static void HYDRODATA_EXPORT    toGeo( double theX, double theY,
+                                         double& theLatitudeDeg, double& theLongitudeDeg,
+                                         double theEps = 1e-5 );
+
+  static void HYDRODATA_EXPORT    DMSToDeg( int theDeg,
+                                            int theMin,
+                                            double theSec,
+                                            double& theDegOut );
+
+  static void HYDRODATA_EXPORT    DMSToSec( int theDeg,
+                                            int theMin,
+                                            double theSec,
+                                            double& theSecOut );
+
+  static void HYDRODATA_EXPORT    degToDMS( double theDegIn,
+                                            int& theDeg,
+                                            int& theMin,
+                                            double& theSec );
+
+  static void HYDRODATA_EXPORT    secToDMS( double theSecIn,
+                                            int& theDeg,
+                                            int& theMin,
+                                            double& theSec );
+
+private:
+  static double                   calc_rho( double phi );
+  static double                   calc_phi_inv( double rho, double eps );
+  static double                   calc_phi_ign( double rho, double eps );
+};
+
+#endif