ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/mg_coarete.cpp
Revision: 5
Committed: Tue Jun 12 20:26:34 2007 UTC (17 years, 11 months ago)
Original Path: magic/lib/geometrie/geometrie/src/mg_coarete.cpp
File size: 2004 byte(s)
Log Message:

File Contents

# User Rev Content
1 5 //------------------------------------------------------------
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     // mg_coarete.cpp
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23    
24    
25     #include "gestionversion.h"
26     #include "mg_coarete.h"
27    
28    
29    
30     MG_COARETE::MG_COARETE(unsigned long num,class MG_ARETE* mgarete,class MG_BOUCLE* mgboucle,int sens):MG_ELEMENT_COTOPOLOGIQUE(num),arete(mgarete),boucle(mgboucle),orientation(sens)
31     {
32     }
33    
34    
35     MG_COARETE::MG_COARETE(class MG_ARETE* mgarete,class MG_BOUCLE* mgboucle,int sens):MG_ELEMENT_COTOPOLOGIQUE(),arete(mgarete),boucle(mgboucle),orientation(sens)
36     {
37     }
38    
39     MG_COARETE::MG_COARETE(class MG_COARETE& mdd):MG_ELEMENT_COTOPOLOGIQUE(),arete(mdd.arete),boucle(mdd.boucle),orientation(mdd.orientation)
40     {
41     }
42    
43    
44     MG_COARETE::~MG_COARETE()
45     {
46     }
47    
48     MG_BOUCLE* MG_COARETE::get_boucle(void)
49     {
50     return boucle;
51     }
52    
53     MG_ARETE* MG_COARETE::get_arete(void)
54     {
55     return arete;
56     }
57    
58     int MG_COARETE::get_orientation(void)
59     {
60     return orientation;
61     }
62    
63     void MG_COARETE::enregistrer(std::ostream& o)
64     {
65     o << "%" << get_id() << "=COARETE($"<< arete->get_id() << ",$"<<boucle->get_id() << "," << orientation << ");" << std::endl;
66     }
67    
68