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