| 1 |
souaissa |
66 |
//---------------------------------------------------------------------------
|
| 2 |
|
|
|
| 3 |
|
|
#ifndef vct_sommetH
|
| 4 |
|
|
#define vct_sommetH
|
| 5 |
|
|
//---------------------------------------------------------------------------
|
| 6 |
|
|
#ifdef WINDOWS_VERSION
|
| 7 |
|
|
#ifdef BUILT_DLL_GEOMETRIE
|
| 8 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllexport)
|
| 9 |
|
|
#else
|
| 10 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllimport)
|
| 11 |
|
|
#endif
|
| 12 |
|
|
#else
|
| 13 |
|
|
#define DLLPORTGEOMETRIE
|
| 14 |
|
|
#endif
|
| 15 |
|
|
|
| 16 |
|
|
#include <vector.h>
|
| 17 |
|
|
#include "tpl_liste_entite.h"
|
| 18 |
|
|
#include "ot_doubleprecision.h"
|
| 19 |
|
|
#include "vct_element_topologique.h"
|
| 20 |
|
|
#include "ot_mathematique.h"
|
| 21 |
souaissa |
69 |
#include"ot_tenseur.h"
|
| 22 |
|
|
#include "vct.h"
|
| 23 |
souaissa |
66 |
|
| 24 |
|
|
class DLLPORTGEOMETRIE VCT_SOMMET:public VCT_ELEMENT_TOPOLOGIQUE
|
| 25 |
|
|
{
|
| 26 |
|
|
public:
|
| 27 |
|
|
|
| 28 |
|
|
VCT_SOMMET (class MG_SOMMET* face);
|
| 29 |
|
|
VCT_SOMMET (VCT_SOMMET& mdd);
|
| 30 |
|
|
virtual ~VCT_SOMMET();
|
| 31 |
|
|
|
| 32 |
souaissa |
69 |
virtual std::vector<OT_VECTEUR_4DD> &get_vecteurs(void) ;
|
| 33 |
|
|
virtual OT_TENSEUR calcule_tenseur_metrique() ;
|
| 34 |
|
|
virtual OT_VECTEUR_4DD calcule_barycentre(void) ;
|
| 35 |
|
|
virtual OT_TENSEUR calcule_covariance(void);
|
| 36 |
|
|
virtual void calcule_axes_dinertie(OT_VECTEUR_4DD& vp1,OT_VECTEUR_4DD& vp2,OT_VECTEUR_4DD& vp3,OT_VECTEUR_4DD& vp4);
|
| 37 |
|
|
virtual OT_TENSEUR calcule_tenseur_inertie_au_barycentre();
|
| 38 |
|
|
virtual OT_TENSEUR calcule_tenseur_inertie_au_pt(OT_VECTEUR_4DD& xyz);
|
| 39 |
|
|
virtual OT_TENSEUR calcule_tenseur_inertie_base_locale();
|
| 40 |
|
|
virtual void calcule_tenseur_inertie_base_entite(OT_VECTEUR_4DD& G1G2, OT_TENSEUR& tens,VCT& vct_f) ;
|
| 41 |
souaissa |
66 |
virtual void enregistrer(std::ostream& o);
|
| 42 |
souaissa |
69 |
virtual int get_nb_points();
|
| 43 |
|
|
|
| 44 |
souaissa |
66 |
protected:
|
| 45 |
|
|
|
| 46 |
souaissa |
69 |
vector<OT_VECTEUR_4DD> lst_vecteurs;
|
| 47 |
|
|
vector<OT_VECTEUR_4DD> lst_points;
|
| 48 |
|
|
int nb_points;
|
| 49 |
|
|
|
| 50 |
souaissa |
66 |
};
|
| 51 |
|
|
|
| 52 |
|
|
|
| 53 |
|
|
|
| 54 |
|
|
|
| 55 |
|
|
|
| 56 |
|
|
#endif
|