ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mtu/src/mg_coface.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
File size: 2191 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_coface.cpp
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:53 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 francois 283
23    
24     #include "gestionversion.h"
25     #include "mg_coface.h"
26    
27    
28    
29     MG_COFACE::MG_COFACE(unsigned long num,class MG_FACE* mgface,class MG_COQUILLE* mgcoq,int sens):MG_ELEMENT_COTOPOLOGIQUE(num),face(mgface),coquille(mgcoq),orientation(sens)
30     {
31     }
32    
33    
34     MG_COFACE::MG_COFACE(class MG_FACE* mgface,class MG_COQUILLE* mgcoq,int sens):MG_ELEMENT_COTOPOLOGIQUE(),face(mgface),coquille(mgcoq),orientation(sens)
35     {
36     }
37    
38     MG_COFACE::MG_COFACE(class MG_COFACE& mdd):MG_ELEMENT_COTOPOLOGIQUE(),face(mdd.face),coquille(mdd.coquille),orientation(mdd.orientation)
39     {
40     }
41    
42    
43     MG_COFACE::~MG_COFACE()
44     {
45     }
46    
47 couturad 906 int MG_COFACE::get_type(void)
48     {
49     return TYPE_ELEMENT_COTOPOLOGIQUE::COFACE;
50     }
51    
52    
53 francois 283 MG_COQUILLE* MG_COFACE::get_coquille(void)
54     {
55     return coquille;
56     }
57    
58     MG_FACE* MG_COFACE::get_face(void)
59     {
60     return face;
61     }
62    
63     void MG_COFACE::change(MG_FACE* f,int ori)
64     {
65     face=f;
66     orientation=ori;
67     }
68    
69     int MG_COFACE::get_orientation(void)
70     {
71     return orientation;
72     }
73    
74 francois 763 void MG_COFACE::enregistrer(std::ostream& o,double version)
75 francois 283 {
76     o << "%" << get_id() << "=COFACE($"<< face->get_id() << ",$"<<coquille->get_id() << "," << orientation << ");" << std::endl;
77     }
78    
79    
80