Changeset 311 in pacpusframework for branches/0.0.x


Ignore:
Timestamp:
07/23/14 18:01:08 (10 years ago)
Author:
DHERBOMEZ Gérald
Message:

Add the dllexport/dllimport macro to geodesie functions (for Windows olny)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.0.x/include/Pacpus/PacpusTools/geodesie.h

    r116 r311  
    1919#include <vector>
    2020
     21#include "Pacpus\kernel\PacpusToolsConfig.h"
     22
     23
    2124namespace Geodesie {
    2225
     
    3538/// @todo Documentation
    3639/// @todo Rewrite!
    37 struct Matrice
     40struct PACPUSTOOLS_API Matrice
    3841{
    3942    /// Copy ctor
     
    6669};
    6770
    68 Matrice TransMat(const Matrice A);
    69 
    70 Matrice ProdMat(const Matrice A,const Matrice B);
     71Matrice PACPUSTOOLS_API TransMat(const Matrice A);
     72
     73Matrice PACPUSTOOLS_API ProdMat(const Matrice A,const Matrice B);
    7174void Write(const Matrice A,std::ostream& out);
    7275
    7376////////////////////////////////////////////////////////////////////////
    7477/// @todo Documentation
    75 class Raf98
     78class PACPUSTOOLS_API Raf98
    7679{
    7780public:
     
    99102
    100103////////////////////////////////////////////////////////////////////////
    101 inline double Deg2Rad(double deg) {return deg*M_PI/180.0;}
    102 inline double Rad2Deg(double rad) {return rad*180.0/M_PI;}
     104inline double PACPUSTOOLS_API Deg2Rad(double deg) {return deg*M_PI/180.0;}
     105inline double PACPUSTOOLS_API Rad2Deg(double rad) {return rad*180.0/M_PI;}
    103106////////////////////////////////////////////////////////////////////////
    104107
     
    123126
    124127////////////////////////////////////////////////////////////////////////
    125 void Geographique_2_Lambert93(const Raf98& raf98,double lambda,double phi,double he,Matrice in,double& E,double& N,double& h,Matrice& out);
    126 void Geographique_2_Lambert93(const Raf98& raf98,double lambda,double phi,double he,double& E,double& N,double& h);
    127 void Lambert93_2_Geographique(const Raf98& raf98,double E,double N,double h,double& lambda,double& phi,double& he);
    128 void Lambert93_2_Geographique(const Raf98& raf98,double E,double N,double h,Matrice in,double& lambda,double& phi,double& he,Matrice& out);
     128void PACPUSTOOLS_API Geographique_2_Lambert93(const Raf98& raf98,double lambda,double phi,double he,Matrice in,double& E,double& N,double& h,Matrice& out);
     129void PACPUSTOOLS_API Geographique_2_Lambert93(const Raf98& raf98,double lambda,double phi,double he,double& E,double& N,double& h);
     130void PACPUSTOOLS_API Lambert93_2_Geographique(const Raf98& raf98,double E,double N,double h,double& lambda,double& phi,double& he);
     131void PACPUSTOOLS_API Lambert93_2_Geographique(const Raf98& raf98,double E,double N,double h,Matrice in,double& lambda,double& phi,double& he,Matrice& out);
    129132/// Convert from geographique to ECEF.
    130133/// @param[in] longitude Longitude in radian.
    131134/// @param[in] latitude Latitude in radian.
    132135/// @param[in] he Height in meter.
    133 void Geographique_2_ECEF(double longitude, double latitude, double he, double& x, double& y, double& z);
     136void PACPUSTOOLS_API Geographique_2_ECEF(double longitude, double latitude, double he, double& x, double& y, double& z);
    134137/// Convert from ECEF two ENU.
    135138/// @param[in] lon0 Longitude of the origin in radian.
    136139/// @param[in] lat0 Latitude of the origin in radian.
    137140/// @param[in] he0 Height of the origin in radian.
    138 void ECEF_2_ENU(double x,double y,double z,double& e,double& n,double& u,double lon0,double lat0,double he0);
     141void PACPUSTOOLS_API ECEF_2_ENU(double x,double y,double z,double& e,double& n,double& u,double lon0,double lat0,double he0);
    139142////////////////////////////////////////////////////////////////////////
    140143
    141144///ALGO0001
    142145/// @todo Rename
    143 double LatitueIsometrique(double latitude,double e);
     146double PACPUSTOOLS_API LatitueIsometrique(double latitude,double e);
    144147///ALGO0002
    145148/// @todo Rename
    146 double LatitueIsometrique2Lat(double latitude_iso,double e,double epsilon);
     149double PACPUSTOOLS_API LatitueIsometrique2Lat(double latitude_iso,double e,double epsilon);
    147150
    148151///ALGO0003
    149 void Geo2ProjLambert(
     152void PACPUSTOOLS_API Geo2ProjLambert(
    150153    double lambda,double phi,
    151154    double n, double c,double e,
     
    153156    double& X,double& Y);
    154157///ALGO0004
    155 void Proj2GeoLambert(
     158void PACPUSTOOLS_API Proj2GeoLambert(
    156159    double X,double Y,
    157160    double n, double c,double e,
     
    160163    double& lambda,double& phi);
    161164
    162 double ConvMerApp(double longitude);
     165double PACPUSTOOLS_API ConvMerApp(double longitude);
    163166
    164167/// Converts Cartesian (x, y) coordinates to polar coordinates (r, theta)
Note: See TracChangeset for help on using the changeset viewer.