ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/step/src/stedgecurve.cpp
Revision: 283
Committed: Tue Sep 13 21:11:20 2011 UTC (13 years, 8 months ago) by francois
File size: 1876 byte(s)
Log Message:
structure de l'écriture

File Contents

# User Rev Content
1 francois 283 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuilli�re et Vincent FRANCOIS
5     // D�partement de G�nie M�canique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du d�partement
8     // de g�nie m�canique de l'Universit� du Qu�bec �
9     // Trois Rivi�res
10     // Les librairies ne peuvent �tre utilis�es sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // stedgecurve.cpp
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H24
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23    
24    
25     #include "gestionversion.h"
26    
27     #include <string.h>
28     #include "st_ident.h"
29     #include "stedgecurve.h"
30     #include "st_gestionnaire.h"
31    
32    
33    
34     ST_EDGE_CURVE::ST_EDGE_CURVE(long LigneCourante,std::string idori,long som1,long som2,long curve,int sens):ST_IDENTIFICATEUR(LigneCourante,idori),id_curve(curve),id_sommet1(som1),id_sommet2(som2),orientation(sens)
35     {
36     }
37    
38    
39    
40     long ST_EDGE_CURVE::get_id_curve(void)
41     {
42     return id_curve;
43     }
44     long ST_EDGE_CURVE::get_id_sommet1(void)
45     {
46     return id_sommet1;
47     }
48     long ST_EDGE_CURVE::get_id_sommet2(void)
49     {
50     return id_sommet2;
51     }
52     int ST_EDGE_CURVE::get_orientation(void)
53     {
54     return orientation;
55     }
56    
57    
58     void ST_EDGE_CURVE::est_util(ST_GESTIONNAIRE* gest)
59     {
60     util=true;
61     gest->lst_courbe.getid(id_curve)->est_util(gest);
62     gest->lst_vertex.getid(id_sommet1)->est_util(gest);
63     gest->lst_vertex.getid(id_sommet2)->est_util(gest);
64     }