ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mtu/src/mg_coarete.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
File size: 2243 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
1 francois 1158 //####//------------------------------------------------------------
2     //####//------------------------------------------------------------
3     //####// MAGiC
4     //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5     //####// Departement de Genie Mecanique - UQTR
6     //####//------------------------------------------------------------
7     //####// MAGIC est un projet de recherche de l equipe ERICCA
8     //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9     //####// http://www.uqtr.ca/ericca
10     //####// http://www.uqtr.ca/
11     //####//------------------------------------------------------------
12     //####//------------------------------------------------------------
13     //####//
14     //####// mg_coarete.cpp
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:55 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 francois 283
23    
24     #include "gestionversion.h"
25     #include "mg_coarete.h"
26    
27    
28    
29     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)
30     {
31     }
32    
33    
34     MG_COARETE::MG_COARETE(class MG_ARETE* mgarete,class MG_BOUCLE* mgboucle,int sens):MG_ELEMENT_COTOPOLOGIQUE(),arete(mgarete),boucle(mgboucle),orientation(sens)
35     {
36     }
37    
38     MG_COARETE::MG_COARETE(class MG_COARETE& mdd):MG_ELEMENT_COTOPOLOGIQUE(),arete(mdd.arete),boucle(mdd.boucle),orientation(mdd.orientation)
39     {
40     }
41    
42    
43     MG_COARETE::~MG_COARETE()
44     {
45     }
46    
47 couturad 906 int MG_COARETE::get_type(void)
48     {
49     return TYPE_ELEMENT_COTOPOLOGIQUE::COARETE;
50     }
51    
52    
53 francois 283 MG_BOUCLE* MG_COARETE::get_boucle(void)
54     {
55     return boucle;
56     }
57    
58     MG_ARETE* MG_COARETE::get_arete(void)
59     {
60     return arete;
61     }
62    
63    
64     void MG_COARETE::change_arete(MG_ARETE* are,int sens)
65     {
66     arete=are;
67     orientation=orientation*sens;
68     }
69    
70    
71     int MG_COARETE::get_orientation(void)
72     {
73     return orientation;
74     }
75    
76 francois 763 void MG_COARETE::enregistrer(std::ostream& o,double version)
77 francois 283 {
78     o << "%" << get_id() << "=COARETE($"<< arete->get_id() << ",$"<<boucle->get_id() << "," << orientation << ");" << std::endl;
79     }
80    
81