ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/vct.h
Revision: 253
Committed: Tue Jul 13 19:40:46 2010 UTC (14 years, 10 months ago) by francois
Content type: text/plain
File size: 1766 byte(s)
Log Message:
changement de hiearchie et utilisation de ccmake + mise a jour

File Contents

# User Rev Content
1 souaissa 71 //---------------------------------------------------------------------------
2    
3     #ifndef vctH
4     #define vctH
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 "ot_doubleprecision.h"
17     #include "ot_mathematique.h"
18 francois 169 #include <vector>
19 francois 253 #include "ot_tenseur.h"
20 francois 169 #include <ostream>
21 souaissa 71
22     class DLLPORTGEOMETRIE VCT
23     {
24     public:
25     VCT();
26     VCT(VCT& mdd);
27     ~VCT();
28    
29 francois 253 virtual std::vector<OT_VECTEUR_4DD> &get_vecteurs(void) ;
30     virtual std::vector<OT_VECTEUR_4DD> &get_points_controle(void);
31     virtual int get_nb_points(void);
32     virtual OT_TENSEUR* get_tenseur_metrique(void);
33     virtual OT_TENSEUR* get_tenseur_inertie_4d(void);
34     virtual OT_TENSEUR* get_tenseur_inertie_base_locale_4d(void);
35     virtual OT_TENSEUR* get_base_locale_4d(void);
36     virtual OT_VECTEUR_4DD* get_barycentre_4d(void);
37     virtual OT_TENSEUR* get_tenseur_inertie_3d(void);
38     virtual OT_TENSEUR* get_tenseur_inertie_base_locale_3d(void);
39     virtual OT_TENSEUR* get_base_locale_3d(void);
40     virtual OT_VECTEUR_3DD* get_barycentre_3d(void);
41    
42    
43    
44     virtual void enregistrer(std::ostream& ost);
45    
46    
47 souaissa 71 protected:
48 francois 253 void construire_forme_tensorielle(void);
49 souaissa 71
50 francois 253 std::vector<OT_VECTEUR_4DD> lst_points;
51     std::vector<OT_VECTEUR_4DD> lst_vecteurs;
52     OT_TENSEUR *tnsmetrique;
53     OT_TENSEUR *tnsinertie4d;
54     OT_TENSEUR *tnsinertielocal4d;
55     OT_TENSEUR *axeslocaux4d;
56     OT_VECTEUR_4DD *barycentre4d;
57     OT_TENSEUR *tnsinertie3d;
58     OT_TENSEUR *tnsinertielocal3d;
59     OT_TENSEUR *axeslocaux3d;
60     OT_VECTEUR_3DD *barycentre3d;
61 souaissa 71
62     };
63    
64    
65    
66    
67    
68    
69    
70    
71    
72     #endif