ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/vct_face.h
Revision: 68
Committed: Tue Mar 25 18:14:28 2008 UTC (17 years, 1 month ago) by souaissa
Content type: text/plain
Original Path: magic/lib/geometrie/geometrie/src/vct_face.h
File size: 1836 byte(s)
Log Message:

File Contents

# User Rev Content
1 souaissa 66 //---------------------------------------------------------------------------
2    
3     #ifndef vct_faceH
4     #define vct_faceH
5     //---------------------------------------------------------------------------
6    
7    
8     #ifdef WINDOWS_VERSION
9     #ifdef BUILT_DLL_GEOMETRIE
10     #define DLLPORTGEOMETRIE __declspec(dllexport)
11     #else
12     #define DLLPORTGEOMETRIE __declspec(dllimport)
13     #endif
14     #else
15     #define DLLPORTGEOMETRIE
16     #endif
17    
18     #include <vector.h>
19    
20     #include "vct_surface.h"
21     #include "vct_arete.h"
22     #include "vct_courbe.h"
23     #include "ot_doubleprecision.h"
24     #include "vct_element_topologique.h"
25     #include "ot_mathematique.h"
26     #include "ot_tenseur.h"
27    
28     class DLLPORTGEOMETRIE VCT_FACE:public VCT_ELEMENT_TOPOLOGIQUE
29     {
30     public:
31    
32     VCT_FACE (class MG_FACE* face);
33     VCT_FACE (VCT_FACE& mdd);
34     virtual ~VCT_FACE();
35    
36 souaissa 68 virtual void get_vectorisation(vector<double2>& lst);
37     virtual OT_TENSEUR get_tenseur_metrique();
38     virtual void get_barycentre(double2* xyz);
39 souaissa 66 virtual void get_covariance(double2* cov);
40     virtual void get_axes_dinertie(OT_VECTEUR_3D& vp1,OT_VECTEUR_3D& vp2,OT_VECTEUR_3D& vp3);
41     virtual void get_tenseur_inertie_au_cm(double2* tens);
42     virtual void get_tenseur_inertie_au_pt(double2* xyz, double2* tens);
43     virtual void get_tenseur_inertie_base_locale(double2* tens);
44     virtual void get_tenseur_inertie_prprt_face(double2* G1G2, double2* tens,const VCT_FACE& vct_f);
45     int get_nb_topo_points();
46 souaissa 68 virtual void enregistrer(std::ostream& o);
47     friend std::ostream& operator <<(std::ostream& o,const VCT_FACE& vct_f);
48    
49 souaissa 66 protected:
50     VCT_SURFACE* vct_surf;
51 souaissa 68 vector<double2> LISTE_VECTEUR_FACE;
52     vector<double2> LISTE_VECTEURS_CONTOURS;
53 souaissa 66 vector<double2> LISTE_POINTS_CTRS;
54 souaissa 68 int nb_points;
55    
56 souaissa 66 };
57    
58    
59     DLLPORTGEOMETRIE std::ostream& operator <<(std::ostream& os,const VCT_FACE& vct_f);
60    
61     #endif