ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/vct_arete.h
Revision: 67
Committed: Tue Mar 25 15:59:01 2008 UTC (17 years, 1 month ago) by souaissa
Content type: text/plain
Original Path: magic/lib/geometrie/geometrie/src/vct_arete.h
File size: 1910 byte(s)
Log Message:
mise en conformité des noms de topologies dans la vectorisation

File Contents

# User Rev Content
1 souaissa 66 //---------------------------------------------------------------------------
2    
3     #ifndef vct_areteH
4     #define vct_areteH
5     //---------------------------------------------------------------------------
6    
7    
8    
9     #ifdef WINDOWS_VERSION
10     #ifdef BUILT_DLL_GEOMETRIE
11     #define DLLPORTGEOMETRIE __declspec(dllexport)
12     #else
13     #define DLLPORTGEOMETRIE __declspec(dllimport)
14     #endif
15     #else
16     #define DLLPORTGEOMETRIE
17     #endif
18    
19     #include <vector.h>
20     #include "tpl_liste_entite.h"
21     #include "ot_doubleprecision.h"
22     #include "vct_element_topologique.h"
23     #include <ostream>
24    
25     class DLLPORTGEOMETRIE VCT_ARETE:public VCT_ELEMENT_TOPOLOGIQUE
26     {
27     public:
28    
29     VCT_ARETE (class MG_ARETE* arete);
30     VCT_ARETE (VCT_ARETE& mdd);
31     virtual ~VCT_ARETE();
32    
33     void get_topo_vectorisation(vector<double2>& lst);
34 souaissa 67 //void get_geo_vectorisation(vector<double2>& lst);
35     //virtual void get_geo_barycentre(double2* xyz);
36 souaissa 66 virtual void get_topo_barycentre(double2* xyz);
37     virtual double2 get_inertie_au_centre_de_masse();
38     virtual double2 get_inertie_au_point(double2* xyz);
39     virtual void enregistrer(std::ostream& o);
40     virtual void get_covariance(double2* cov) ;
41     virtual void get_axes_dinertie(OT_VECTEUR_3D& vp1,OT_VECTEUR_3D& vp2,OT_VECTEUR_3D& vp3);
42     virtual void get_tenseur_inertie_au_cm(double2* tens);
43     virtual void get_tenseur_inertie_au_pt(double2* xyz, double2* tens);
44     virtual void get_tenseur_inertie_base_locale(double2* tens);
45     int get_nb_geo_points();
46     int get_nb_topo_points();
47    
48     friend std::ostream& operator <<(std::ostream& os,const VCT_ARETE& vct_f);
49    
50     protected:
51    
52 souaissa 67 //vector<double2> LISTE_GEO_VECTEUR_ARETE;
53 souaissa 66 vector<double2> LISTE_TOPO_VECTEUR_ARETE;
54     TPL_LISTE_ENTITE<double> nurbs_params;
55     int indx_premier_ptctr;
56 souaissa 67 //int nb_geo_points;
57 souaissa 66 int nb_topo_points;
58    
59 souaissa 67 };
60 souaissa 66
61    
62     DLLPORTGEOMETRIE std::ostream& operator <<(std::ostream& os,const VCT_ARETE& vct_f);
63    
64    
65     #endif